public final class Monitoring extends GeneratedMessageV3 implements MonitoringOrBuilder
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_countProtobuf type
google.api.Monitoring
Modifier and Type | Class and Description |
---|---|
static class |
Monitoring.Builder
Monitoring configuration of the service.
|
static class |
Monitoring.MonitoringDestination
Configuration of a specific monitoring destination (the producer project
or the consumer project).
|
static interface |
Monitoring.MonitoringDestinationOrBuilder |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
CONSUMER_DESTINATIONS_FIELD_NUMBER |
static int |
PRODUCER_DESTINATIONS_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Monitoring.MonitoringDestination |
getConsumerDestinations(int index)
Monitoring configurations for sending metrics to the consumer project.
|
int |
getConsumerDestinationsCount()
Monitoring configurations for sending metrics to the consumer project.
|
java.util.List<Monitoring.MonitoringDestination> |
getConsumerDestinationsList()
Monitoring configurations for sending metrics to the consumer project.
|
Monitoring.MonitoringDestinationOrBuilder |
getConsumerDestinationsOrBuilder(int index)
Monitoring configurations for sending metrics to the consumer project.
|
java.util.List<? extends Monitoring.MonitoringDestinationOrBuilder> |
getConsumerDestinationsOrBuilderList()
Monitoring configurations for sending metrics to the consumer project.
|
static Monitoring |
getDefaultInstance() |
Monitoring |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Parser<Monitoring> |
getParserForType() |
Monitoring.MonitoringDestination |
getProducerDestinations(int index)
Monitoring configurations for sending metrics to the producer project.
|
int |
getProducerDestinationsCount()
Monitoring configurations for sending metrics to the producer project.
|
java.util.List<Monitoring.MonitoringDestination> |
getProducerDestinationsList()
Monitoring configurations for sending metrics to the producer project.
|
Monitoring.MonitoringDestinationOrBuilder |
getProducerDestinationsOrBuilder(int index)
Monitoring configurations for sending metrics to the producer project.
|
java.util.List<? extends Monitoring.MonitoringDestinationOrBuilder> |
getProducerDestinationsOrBuilderList()
Monitoring configurations for sending metrics to the producer project.
|
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Monitoring.Builder |
newBuilder() |
static Monitoring.Builder |
newBuilder(Monitoring prototype) |
Monitoring.Builder |
newBuilderForType() |
protected Monitoring.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static Monitoring |
parseDelimitedFrom(java.io.InputStream input) |
static Monitoring |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Monitoring |
parseFrom(byte[] data) |
static Monitoring |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Monitoring |
parseFrom(java.nio.ByteBuffer data) |
static Monitoring |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Monitoring |
parseFrom(ByteString data) |
static Monitoring |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Monitoring |
parseFrom(CodedInputStream input) |
static Monitoring |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Monitoring |
parseFrom(java.io.InputStream input) |
static Monitoring |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Monitoring> |
parser() |
Monitoring.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int PRODUCER_DESTINATIONS_FIELD_NUMBER
public static final int CONSUMER_DESTINATIONS_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public java.util.List<Monitoring.MonitoringDestination> getProducerDestinationsList()
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.
repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
getProducerDestinationsList
in interface MonitoringOrBuilder
public java.util.List<? extends Monitoring.MonitoringDestinationOrBuilder> getProducerDestinationsOrBuilderList()
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.
repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
getProducerDestinationsOrBuilderList
in interface MonitoringOrBuilder
public int getProducerDestinationsCount()
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.
repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
getProducerDestinationsCount
in interface MonitoringOrBuilder
public Monitoring.MonitoringDestination getProducerDestinations(int index)
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.
repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
getProducerDestinations
in interface MonitoringOrBuilder
public Monitoring.MonitoringDestinationOrBuilder getProducerDestinationsOrBuilder(int index)
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.
repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;
getProducerDestinationsOrBuilder
in interface MonitoringOrBuilder
public java.util.List<Monitoring.MonitoringDestination> getConsumerDestinationsList()
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.
repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
getConsumerDestinationsList
in interface MonitoringOrBuilder
public java.util.List<? extends Monitoring.MonitoringDestinationOrBuilder> getConsumerDestinationsOrBuilderList()
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.
repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
getConsumerDestinationsOrBuilderList
in interface MonitoringOrBuilder
public int getConsumerDestinationsCount()
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.
repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
getConsumerDestinationsCount
in interface MonitoringOrBuilder
public Monitoring.MonitoringDestination getConsumerDestinations(int index)
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.
repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
getConsumerDestinations
in interface MonitoringOrBuilder
public Monitoring.MonitoringDestinationOrBuilder getConsumerDestinationsOrBuilder(int index)
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.
repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
getConsumerDestinationsOrBuilder
in interface MonitoringOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Monitoring parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Monitoring parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Monitoring parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Monitoring parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Monitoring parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Monitoring parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Monitoring parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Monitoring parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Monitoring parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Monitoring parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Monitoring parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Monitoring parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Monitoring.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Monitoring.Builder newBuilder()
public static Monitoring.Builder newBuilder(Monitoring prototype)
public Monitoring.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Monitoring.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Monitoring getDefaultInstance()
public static Parser<Monitoring> parser()
public Parser<Monitoring> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Monitoring getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder