Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 2.4 KB

WholePlatformDdosHistoricalApi.md

File metadata and controls

59 lines (42 loc) · 2.4 KB

Fastly::WholePlatformDdosHistoricalApi

require 'fastly'
api_instance = Fastly::WholePlatformDdosHistoricalApi.new

Methods

Note

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()

get_platform_ddos_historical(opts): <PlatformDdosResponse> # Get historical DDoS metrics for the entire Fastly platform

Fetches historical DDoS metrics for the entire Fastly platform.

Examples

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

Options

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']

Return type

PlatformDdosResponse

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