Skip to content

Latest commit

 

History

History
69 lines (52 loc) · 1.69 KB

File metadata and controls

69 lines (52 loc) · 1.69 KB

Fastly::InsightsApi

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

Methods

Note

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

Method HTTP request Description
get_log_insights GET /observability/log-insights Retrieve log insights

get_log_insights()

get_log_insights(opts): <GetLogInsightsResponse> # Retrieve log insights

Retrieves statistics from sampled log records.

Examples

api_instance = Fastly::InsightsApi.new
opts = {
    visualization: 'top-url-by-bandwidth', # String | 
    service_id: '1jlmtMz1ncwA0KC3TBGD0X', # String | 
    start: '2024-01-01T14:30:23Z', # String | 
    _end: '2024-01-05T14:30:23Z', # String | 
    pops: 'pops_example', # String | 
    domain: 'domain_example', # String | 
    domain_exact_match: true, # Boolean | 
    limit: 8.14, # Float | 
}

begin
  # Retrieve log insights
  result = api_instance.get_log_insights(opts)
  p result
rescue Fastly::ApiError => e
  puts "Error when calling InsightsApi->get_log_insights: #{e}"
end

Options

Name Type Description Notes
visualization String
service_id String
start String
_end String
pops String [optional]
domain String [optional]
domain_exact_match Boolean [optional]
limit Float [optional]

Return type

GetLogInsightsResponse

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