Skip to main content

gen_ai_insights_to_location

Retrieves Gen AI transaction lineage data grouped by location with detailed breakdown Provides comprehensive insights with pagination support for location-based analysis

Response

Returns LocationInsightsResponse

Arguments​

NameDescription
start_time - Long!The start time of the query window, as a Unix timestamp.
end_time - Long!The end time of the query window, as a Unix timestamp.
filter - LocationInsightsFilter
aggregate - [Aggregate]The field on which to perform the aggregation. The aggregation operation to perform.
group_type - LocationInsightsGroupDefines the data group. Possible values are LOCATION, APPLICATION, USER
page_size - IntThe page size for pagination (defaults to 100)
page_number - IntThe page number for pagination (defaults to 0)
QUERY
query GENERATIVE_AI {
GENERATIVE_AI {
  gen_ai_insights_to_location(start_time: "123456789", end_time: "123456789", filter: { app_name: "Slack", location_id: 10, search_text: "example" }, aggregate: [{ on: TRANSACTIONS, op: SUM }], group_type: LOCATION, page_size: 10, page_number: 10) {
    entries {
      id
      name
      total
      is_name_l10n_tag
      entries {
        name
        total
      }
      department_id
      total_transactions
      total_volume
    }
    obfuscated
    weblog_time
  }
}
}
RESPONSE
{
"data": {
  "GENERATIVE_AI": {
    "gen_ai_insights_to_location": {
  "entries": [{
    "id": 123,
    "name": "example_value",
    "total": 123,
    "is_name_l10n_tag": true,
    "entries": [{
      "name": "example_value",
      "total": 123
    }]
  }],
  "obfuscated": true,
  "weblog_time": 123
}
  }
}
}