require 'fastly'
api_instance = Fastly::ObservabilityCustomDashboardsApi.new
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
create_dashboard | POST /observability/dashboards | Create a new dashboard |
delete_dashboard | DELETE /observability/dashboards/{dashboard_id} | Delete an existing dashboard |
get_dashboard | GET /observability/dashboards/{dashboard_id} | Retrieve a dashboard by ID |
list_dashboards | GET /observability/dashboards | List all custom dashboards |
update_dashboard | PATCH /observability/dashboards/{dashboard_id} | Update an existing dashboard |
create_dashboard(opts): <Dashboard> # Create a new dashboard
Create a new dashboard
api_instance = Fastly::ObservabilityCustomDashboardsApi.new
opts = {
create_dashboard_request: Fastly::CreateDashboardRequest.new({name: 'name_example'}), # CreateDashboardRequest |
}
begin
# Create a new dashboard
result = api_instance.create_dashboard(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ObservabilityCustomDashboardsApi->create_dashboard: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
create_dashboard_request | CreateDashboardRequest | [optional] |
[Back to top] [Back to API list] [Back to README]
delete_dashboard(opts) # Delete an existing dashboard
Delete an existing dashboard
api_instance = Fastly::ObservabilityCustomDashboardsApi.new
opts = {
dashboard_id: '2eGFXF4F4kTxd4gU39Bg3e', # String |
}
begin
# Delete an existing dashboard
api_instance.delete_dashboard(opts)
rescue Fastly::ApiError => e
puts "Error when calling ObservabilityCustomDashboardsApi->delete_dashboard: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
dashboard_id | String |
nil (empty response body)
[Back to top] [Back to API list] [Back to README]
get_dashboard(opts): <Dashboard> # Retrieve a dashboard by ID
Retrieve a dashboard by ID
api_instance = Fastly::ObservabilityCustomDashboardsApi.new
opts = {
dashboard_id: '2eGFXF4F4kTxd4gU39Bg3e', # String |
}
begin
# Retrieve a dashboard by ID
result = api_instance.get_dashboard(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ObservabilityCustomDashboardsApi->get_dashboard: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
dashboard_id | String |
[Back to top] [Back to API list] [Back to README]
list_dashboards: <ListDashboardsResponse> # List all custom dashboards
List all custom dashboards
api_instance = Fastly::ObservabilityCustomDashboardsApi.new
begin
# List all custom dashboards
result = api_instance.list_dashboards
p result
rescue Fastly::ApiError => e
puts "Error when calling ObservabilityCustomDashboardsApi->list_dashboards: #{e}"
end
This endpoint does not need any parameter.
[Back to top] [Back to API list] [Back to README]
update_dashboard(opts): <Dashboard> # Update an existing dashboard
Update an existing dashboard
api_instance = Fastly::ObservabilityCustomDashboardsApi.new
opts = {
dashboard_id: '2eGFXF4F4kTxd4gU39Bg3e', # String |
update_dashboard_request: Fastly::UpdateDashboardRequest.new, # UpdateDashboardRequest |
}
begin
# Update an existing dashboard
result = api_instance.update_dashboard(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ObservabilityCustomDashboardsApi->update_dashboard: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
dashboard_id | String | ||
update_dashboard_request | UpdateDashboardRequest | [optional] |