Skip to main content

location

Displays data about the web traffic of your organization's locations.

Arguments​

NameDescription
start_time - Long!The time frame start time.
end_time - Long!The time frame end time.
traffic_unit - WebTrafficUnits!Transactions or Bytes as the unit of data.
include_trend - Boolean= falseOptional:To include trend data.
trend_interval - TrendIntervalConditional Optional:Trend interval to be specified if including trend data.
QUERY
query WEB_TRAFFIC {
WEB_TRAFFIC {
  location(start_time: "123456789", end_time: "123456789", traffic_unit: TRANSACTIONS, include_trend: true, trend_interval: DAY) {
    entries(limit: 10, order_by: [{ name: ASC, total: ASC }], filter_by: { name: { in: ["AWS"] } }) {
      name
      total
      trend {
        trend_start_time
        trend_interval
        trend_values
      }
    }
    obfuscated
  }
}
}
RESPONSE
{
"data": {
  "WEB_TRAFFIC": {
    "location": {
  "entries": [{
    "name": "example_value",
    "total": 123,
    "trend": {
      "trend_start_time": 123,
      "trend_interval": 123,
      "trend_values": 123
    }
  }],
  "obfuscated": true
}
  }
}
}