public final class Monitoring extends com.google.protobuf.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/num_overdue` metric is only sent to the
consumer project.
monitored_resources:
- type: library.googleapis.com/Branch
display_name: "Library Branch"
description: "A branch of a library."
launch_stage: GA
labels:
- key: resource_container
description: "The Cloud container (ie. project id) for the Branch."
- key: location
description: "The location of the library branch."
- key: branch_id
description: "The id of the branch."
metrics:
- name: library.googleapis.com/book/returned_count
display_name: "Books Returned"
description: "The count of books that have been returned."
launch_stage: GA
metric_kind: DELTA
value_type: INT64
unit: "1"
labels:
- key: customer_id
description: "The id of the customer."
- name: library.googleapis.com/book/num_overdue
display_name: "Books Overdue"
description: "The current number of overdue books."
launch_stage: GA
metric_kind: GAUGE
value_type: INT64
unit: "1"
labels:
- key: customer_id
description: "The id of the customer."
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/num_overdue
Protobuf 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 |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONSUMER_DESTINATIONS_FIELD_NUMBER |
static int |
PRODUCER_DESTINATIONS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(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.
|
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.
|
List<? extends Monitoring.MonitoringDestinationOrBuilder> |
getConsumerDestinationsOrBuilderList()
Monitoring configurations for sending metrics to the consumer project.
|
static Monitoring |
getDefaultInstance() |
Monitoring |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.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.
|
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.
|
List<? extends Monitoring.MonitoringDestinationOrBuilder> |
getProducerDestinationsOrBuilderList()
Monitoring configurations for sending metrics to the producer project.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Monitoring.Builder |
newBuilder() |
static Monitoring.Builder |
newBuilder(Monitoring prototype) |
Monitoring.Builder |
newBuilderForType() |
protected Monitoring.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Monitoring |
parseDelimitedFrom(InputStream input) |
static Monitoring |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Monitoring |
parseFrom(byte[] data) |
static Monitoring |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Monitoring |
parseFrom(ByteBuffer data) |
static Monitoring |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Monitoring |
parseFrom(com.google.protobuf.ByteString data) |
static Monitoring |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Monitoring |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Monitoring |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Monitoring |
parseFrom(InputStream input) |
static Monitoring |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Monitoring> |
parser() |
Monitoring.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PRODUCER_DESTINATIONS_FIELD_NUMBER
public static final int CONSUMER_DESTINATIONS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public List<Monitoring.MonitoringDestination> getProducerDestinationsList()
Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource 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 MonitoringOrBuilderpublic List<? extends Monitoring.MonitoringDestinationOrBuilder> getProducerDestinationsOrBuilderList()
Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource 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 MonitoringOrBuilderpublic int getProducerDestinationsCount()
Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource 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 MonitoringOrBuilderpublic Monitoring.MonitoringDestination getProducerDestinations(int index)
Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource 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 MonitoringOrBuilderpublic Monitoring.MonitoringDestinationOrBuilder getProducerDestinationsOrBuilder(int index)
Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource 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 MonitoringOrBuilderpublic List<Monitoring.MonitoringDestination> getConsumerDestinationsList()
Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource 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 MonitoringOrBuilderpublic List<? extends Monitoring.MonitoringDestinationOrBuilder> getConsumerDestinationsOrBuilderList()
Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource 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 MonitoringOrBuilderpublic int getConsumerDestinationsCount()
Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource 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 MonitoringOrBuilderpublic Monitoring.MonitoringDestination getConsumerDestinations(int index)
Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource 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 MonitoringOrBuilderpublic Monitoring.MonitoringDestinationOrBuilder getConsumerDestinationsOrBuilder(int index)
Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource 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 MonitoringOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Monitoring parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Monitoring parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Monitoring parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Monitoring parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Monitoring parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Monitoring parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Monitoring parseFrom(InputStream input) throws IOException
IOExceptionpublic static Monitoring parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Monitoring parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Monitoring parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Monitoring parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Monitoring parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Monitoring.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Monitoring.Builder newBuilder()
public static Monitoring.Builder newBuilder(Monitoring prototype)
public Monitoring.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Monitoring.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Monitoring getDefaultInstance()
public static com.google.protobuf.Parser<Monitoring> parser()
public com.google.protobuf.Parser<Monitoring> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Monitoring getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2021 Google LLC. All rights reserved.