google_api_service_usage v0.6.0 GoogleApi.ServiceUsage.V1.Model.Monitoring View Source
Monitoring configuration of the service.
The example below shows how to configure monitored resources and metrics
for monitoring. In the example, a monitored resource and two metrics are
defined. The library.googleapis.com/book/returned_count
metric is sent
to both producer and consumer projects, whereas the
library.googleapis.com/book/overdue_count
metric is only sent to the
consumer project.
monitored_resources:
- type: library.googleapis.com/branch
labels:
- key: /city
description: The city where the library branch is located in.
- key: /name
description: The name of the branch.
metrics:
- name: library.googleapis.com/book/returned_count
metric_kind: DELTA
value_type: INT64
labels:
- key: /customer_id
- name: library.googleapis.com/book/overdue_count
metric_kind: GAUGE
value_type: INT64
labels:
- key: /customer_id
monitoring:
producer_destinations:
- monitored_resource: library.googleapis.com/branch
metrics:
- library.googleapis.com/book/returned_count
consumer_destinations:
- monitored_resource: library.googleapis.com/branch
metrics:
- library.googleapis.com/book/returned_count
- library.googleapis.com/book/overdue_count
Attributes
consumerDestinations
(type:list(GoogleApi.ServiceUsage.V1.Model.MonitoringDestination.t)
, default:nil
) - Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resouce type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.producerDestinations
(type:list(GoogleApi.ServiceUsage.V1.Model.MonitoringDestination.t)
, default:nil
) - Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resouce type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Link to this type
t()
View Sourcet() :: %GoogleApi.ServiceUsage.V1.Model.Monitoring{ consumerDestinations: [ GoogleApi.ServiceUsage.V1.Model.MonitoringDestination.t() ], producerDestinations: [ GoogleApi.ServiceUsage.V1.Model.MonitoringDestination.t() ] }
Link to this section Functions
Unwrap a decoded JSON object into its complex fields.