Class Monitoring

public sealed class Monitoring : Protobuf.IMessage<Monitoring>, Protobuf.IBufferMessage

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

Inheritance

Object > Monitoring

Namespace

Google.Api

Assembly

Google.Api.CommonProtos.dll

Constructors

Monitoring()

public Monitoring()

Monitoring(Monitoring)

public Monitoring(Monitoring other)
Parameter
TypeNameDescription
Monitoringother

Fields

ConsumerDestinationsFieldNumber

public const int ConsumerDestinationsFieldNumber = 2

Field number for the "consumer_destinations" field.

Field Value
TypeDescription
Int32

ProducerDestinationsFieldNumber

public const int ProducerDestinationsFieldNumber = 1

Field number for the "producer_destinations" field.

Field Value
TypeDescription
Int32

Properties

ConsumerDestinations

public Protobuf.Collections.RepeatedField<Monitoring.Types.MonitoringDestination> ConsumerDestinations { get; }

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.

Property Value
TypeDescription
Protobuf.Collections.RepeatedField<Monitoring.Types.MonitoringDestination>

Descriptor

public static Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
TypeDescription
Protobuf.Reflection.MessageDescriptor

Parser

public static Protobuf.MessageParser<Monitoring> Parser { get; }
Property Value
TypeDescription
Protobuf.MessageParser<Monitoring>

ProducerDestinations

public Protobuf.Collections.RepeatedField<Monitoring.Types.MonitoringDestination> ProducerDestinations { get; }

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.

Property Value
TypeDescription
Protobuf.Collections.RepeatedField<Monitoring.Types.MonitoringDestination>

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public Monitoring Clone()
Returns
TypeDescription
Monitoring

Equals(Monitoring)

public bool Equals(Monitoring other)
Parameter
TypeNameDescription
Monitoringother
Returns
TypeDescription
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
TypeNameDescription
Objectother
Returns
TypeDescription
Boolean

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

MergeFrom(Monitoring)

public void MergeFrom(Monitoring other)
Parameter
TypeNameDescription
Monitoringother

MergeFrom(Protobuf.CodedInputStream)

public void MergeFrom(Protobuf.CodedInputStream input)
Parameter
TypeNameDescription
Protobuf.CodedInputStreaminput

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(Protobuf.CodedOutputStream)

public void WriteTo(Protobuf.CodedOutputStream output)
Parameter
TypeNameDescription
Protobuf.CodedOutputStreamoutput

Implements