Skip to main content

gen_ai_usage_by_department

Retrieves Gen AI usage by department, grouped by departments and applications. Supports filtering by specific applications and different metric types (Volume, Transactions, Users).

Arguments​

NameDescription
start_time - Long!The start of the time range in Unix milliseconds.
end_time - Long!The end of the time range in Unix milliseconds.
metric_type - GenAIMetricType!The metric type to aggregate (BY_VOLUME, BY_TRANSACTIONS, or BY_USERS).
apps - [String!]List of specific applications to include in the analysis.
QUERY
query GENERATIVE_AI {
GENERATIVE_AI {
  gen_ai_usage_by_department(start_time: "123456789", end_time: "123456789", metric_type: BY_VOLUME, apps: ["example_apps"]) {
    entries {
      id
      name
      total
      entries {
        name
        total
      }
    }
    obfuscated
  }
}
}
RESPONSE
{
"data": {
  "GENERATIVE_AI": {
    "gen_ai_usage_by_department": {
  "entries": [{
    "id": 123,
    "name": "example_value",
    "total": 123,
    "entries": [{
      "name": "example_value",
      "total": 123
    }]
  }],
  "obfuscated": true
}
  }
}
}