Skip to content

Distinguish Chat's insert and copy events and update Grafana #8

@satomic

Description

@satomic

in metrics API Get Copilot metrics for a team, total_chat_insertion_events and total_chat_copy_events are 2 field.

"copilot_ide_chat": {
      "total_engaged_users": 13,
      "editors": [
        {
          "name": "vscode",
          "total_engaged_users": 13,
          "models": [
            {
              "name": "default",
              "is_custom_model": false,
              "custom_model_training_date": null,
              "total_engaged_users": 12,
              "total_chats": 45,
              "total_chat_insertion_events": 12,
              "total_chat_copy_events": 16
            },
            {
              "name": "a-custom-model",
              "is_custom_model": true,
              "custom_model_training_date": "2024-02-01",
              "total_engaged_users": 1,
              "total_chats": 10,
              "total_chat_insertion_events": 11,
              "total_chat_copy_events": 3
            }
          ]
        }
      ]
    }

This needs to be reflected in the visualization, not just an accept data which just sum of the 2 types of events.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions