Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.51 KB

StatsApi.md

File metadata and controls

49 lines (31 loc) · 1.51 KB

StatsApi

Note

All URIs are relative to https://api.fastly.com

Method HTTP request Description
get_service_stats GET /service/{service_id}/stats/summary Get stats for a service

get_service_stats

Get the stats from a service for a block of time. This lists all stats by PoP location, starting with AMS. This call requires parameters to select block of time to query. Use either a timestamp range (using start_time and end_time) or a specified month/year combo (using month and year).

let cfg = &Configuration::default();
let params = GetServiceStatsParams {
    // parameters
};
get_service_stats(cfg, params)

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
month Option<String> 2-digit month.
year Option<String> 4-digit year.
start_time Option<i32> Epoch timestamp. Limits the results returned.
end_time Option<i32> Epoch timestamp. Limits the results returned.

Return type

crate::models::Stats

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]