require 'fastly'
api_instance = Fastly::WholePlatformDdosHistoricalApi.newNote
All URIs are relative to https://api.fastly.com
| Method | HTTP request | Description |
|---|---|---|
| get_platform_ddos_historical | GET /metrics/platform/ddos | Get historical DDoS metrics for the entire Fastly platform |
get_platform_ddos_historical(opts): <PlatformDdosResponse> # Get historical DDoS metrics for the entire Fastly platformFetches historical DDoS metrics for the entire Fastly platform.
api_instance = Fastly::WholePlatformDdosHistoricalApi.new
opts = {
start: '2021-08-01T00:00:00.000Z', # String | A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided `downsample` value.
_end: '2020-08-02T00:00:00.000Z', # String | A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided `downsample` value.
downsample: 'hour', # String | Duration of sample windows.
}
begin
# Get historical DDoS metrics for the entire Fastly platform
result = api_instance.get_platform_ddos_historical(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling WholePlatformDdosHistoricalApi->get_platform_ddos_historical: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| start | String | A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided downsample value. |
[optional] |
| _end | String | A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided downsample value. |
[optional] |
| downsample | String | Duration of sample windows. | [optional][default to 'hour'] |