require 'fastly'
api_instance = Fastly::InsightsApi.newNote
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(opts): <GetLogInsightsResponse> # Retrieve log insightsRetrieves statistics from sampled log records.
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| 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] |