Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
get_service_level_usage | GET /billing/v3/service-usage-metrics | Retrieve service-level usage metrics for a product. |
get_usage_metrics | GET /billing/v3/usage-metrics | Get monthly usage metrics |
Returns product usage, broken down by service.
let cfg = &Configuration::default();
let params = GetServiceLevelUsageParams {
// parameters
};
get_service_level_usage(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
product_id | String | The product identifier for the metrics returned (e.g., cdn_usage ). This field is not required for CSV requests. |
[required] | |
usage_type_name | String | The usage type name for the metrics returned (e.g., North America Requests ). This field is not required for CSV requests. |
[required] | |
start_month | Option<String> | |||
end_month | Option<String> | |||
limit | Option<String> | Number of results per page. The maximum is 100. | [default to 5] | |
cursor | Option<String> | Cursor value from the next_cursor field of a previous response, used to retrieve the next page. To request the first page, this should be empty. |
crate::models::Serviceusagemetrics
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Returns monthly usage metrics for customer by product.
let cfg = &Configuration::default();
let params = GetUsageMetricsParams {
// parameters
};
get_usage_metrics(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
start_month | Option<String> | |||
end_month | Option<String> |
- Content-Type: Not defined
- Accept: application/json