final case class Monitoring(producerDestinations: Seq[MonitoringDestination] = _root_.scala.Seq.empty, consumerDestinations: Seq[MonitoringDestination] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[Monitoring] with Product with Serializable
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
- producerDestinations
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.
- consumerDestinations
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.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- Monitoring
- Product
- Equals
- Updatable
- GeneratedMessage
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Monitoring(producerDestinations: Seq[MonitoringDestination] = _root_.scala.Seq.empty, consumerDestinations: Seq[MonitoringDestination] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = ...)
- producerDestinations
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.
- consumerDestinations
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.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllConsumerDestinations(__vs: Iterable[MonitoringDestination]): Monitoring
- def addAllProducerDestinations(__vs: Iterable[MonitoringDestination]): Monitoring
- def addConsumerDestinations(__vs: MonitoringDestination*): Monitoring
- def addProducerDestinations(__vs: MonitoringDestination*): Monitoring
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearConsumerDestinations: Monitoring
- def clearProducerDestinations: Monitoring
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
companion: Monitoring.type
- Definition Classes
- Monitoring → GeneratedMessage
- val consumerDestinations: Seq[MonitoringDestination]
- def discardUnknownFields: Monitoring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getField(__field: FieldDescriptor): PValue
- Definition Classes
- Monitoring → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- Monitoring → GeneratedMessage
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val producerDestinations: Seq[MonitoringDestination]
-
def
serializedSize: Int
- Definition Classes
- Monitoring → GeneratedMessage
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
-
final
def
toByteString: ByteString
- Definition Classes
- GeneratedMessage
-
final
def
toPMessage: PMessage
- Definition Classes
- GeneratedMessage
-
def
toProtoString: String
- Definition Classes
- Monitoring → GeneratedMessage
- val unknownFields: UnknownFieldSet
-
def
update(ms: (Lens[Monitoring, Monitoring]) ⇒ Mutation[Monitoring]*): Monitoring
- Definition Classes
- Updatable
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def withConsumerDestinations(__v: Seq[MonitoringDestination]): Monitoring
- def withProducerDestinations(__v: Seq[MonitoringDestination]): Monitoring
- def withUnknownFields(__v: UnknownFieldSet): Monitoring
-
final
def
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- Monitoring → GeneratedMessage
-
final
def
writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage