Show / Hide Table of Contents

Class Monitoring

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
System.Object
Monitoring
Implements
IMessage<Monitoring>
IMessage
System.IEquatable<Monitoring>
IDeepCloneable<Monitoring>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Api
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class Monitoring : IMessage<Monitoring>, IMessage, IEquatable<Monitoring>, IDeepCloneable<Monitoring>

Constructors

Monitoring()

Declaration
public Monitoring()

Monitoring(Monitoring)

Declaration
public Monitoring(Monitoring other)
Parameters
Type Name Description
Monitoring other

Fields

ConsumerDestinationsFieldNumber

Field number for the "consumer_destinations" field.

Declaration
public const int ConsumerDestinationsFieldNumber = 2
Field Value
Type Description
System.Int32

ProducerDestinationsFieldNumber

Field number for the "producer_destinations" field.

Declaration
public const int ProducerDestinationsFieldNumber = 1
Field Value
Type Description
System.Int32

Properties

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.

Declaration
public RepeatedField<Monitoring.Types.MonitoringDestination> ConsumerDestinations { get; }
Property Value
Type Description
RepeatedField<Monitoring.Types.MonitoringDestination>

Descriptor

Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
MessageDescriptor

Parser

Declaration
public static MessageParser<Monitoring> Parser { get; }
Property Value
Type Description
MessageParser<Monitoring>

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.

Declaration
public RepeatedField<Monitoring.Types.MonitoringDestination> ProducerDestinations { get; }
Property Value
Type Description
RepeatedField<Monitoring.Types.MonitoringDestination>

Methods

CalculateSize()

Declaration
public int CalculateSize()
Returns
Type Description
System.Int32
Implements
IMessage.CalculateSize()

Clone()

Declaration
public Monitoring Clone()
Returns
Type Description
Monitoring
Implements
IDeepCloneable<T>.Clone()

Equals(Monitoring)

Declaration
public bool Equals(Monitoring other)
Parameters
Type Name Description
Monitoring other
Returns
Type Description
System.Boolean
Implements
System.IEquatable<T>.Equals(T)

Equals(Object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
System.Object other
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

MergeFrom(Monitoring)

Declaration
public void MergeFrom(Monitoring other)
Parameters
Type Name Description
Monitoring other
Implements
IMessage<T>.MergeFrom(T)

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Implements
IMessage.MergeFrom(CodedInputStream)

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output
Implements
IMessage.WriteTo(CodedOutputStream)

Explicit Interface Implementations

IMessage.Descriptor

Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor
Implements
IMessage.Descriptor
Back to top