public static final class AlertPolicy.Condition.LogMatch extends com.google.protobuf.GeneratedMessageV3 implements AlertPolicy.Condition.LogMatchOrBuilder
A condition type that checks whether a log message in the [scoping project](https://cloud.google.com/monitoring/api/v3#project_name) satisfies the given filter. Logs from other projects in the metrics scope are not evaluated.Protobuf type
google.monitoring.v3.AlertPolicy.Condition.LogMatch| Modifier and Type | Class and Description |
|---|---|
static class |
AlertPolicy.Condition.LogMatch.Builder
A condition type that checks whether a log message in the [scoping
project](https://cloud.google.com/monitoring/api/v3#project_name)
satisfies the given filter.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
FILTER_FIELD_NUMBER |
static int |
LABEL_EXTRACTORS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabelExtractors(String key)
Optional.
|
boolean |
equals(Object obj) |
static AlertPolicy.Condition.LogMatch |
getDefaultInstance() |
AlertPolicy.Condition.LogMatch |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getFilter()
Required.
|
com.google.protobuf.ByteString |
getFilterBytes()
Required.
|
Map<String,String> |
getLabelExtractors()
Deprecated.
|
int |
getLabelExtractorsCount()
Optional.
|
Map<String,String> |
getLabelExtractorsMap()
Optional.
|
String |
getLabelExtractorsOrDefault(String key,
String defaultValue)
Optional.
|
String |
getLabelExtractorsOrThrow(String key)
Optional.
|
com.google.protobuf.Parser<AlertPolicy.Condition.LogMatch> |
getParserForType() |
int |
getSerializedSize() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static AlertPolicy.Condition.LogMatch.Builder |
newBuilder() |
static AlertPolicy.Condition.LogMatch.Builder |
newBuilder(AlertPolicy.Condition.LogMatch prototype) |
AlertPolicy.Condition.LogMatch.Builder |
newBuilderForType() |
protected AlertPolicy.Condition.LogMatch.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AlertPolicy.Condition.LogMatch |
parseDelimitedFrom(InputStream input) |
static AlertPolicy.Condition.LogMatch |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Condition.LogMatch |
parseFrom(byte[] data) |
static AlertPolicy.Condition.LogMatch |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Condition.LogMatch |
parseFrom(ByteBuffer data) |
static AlertPolicy.Condition.LogMatch |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Condition.LogMatch |
parseFrom(com.google.protobuf.ByteString data) |
static AlertPolicy.Condition.LogMatch |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Condition.LogMatch |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AlertPolicy.Condition.LogMatch |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Condition.LogMatch |
parseFrom(InputStream input) |
static AlertPolicy.Condition.LogMatch |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AlertPolicy.Condition.LogMatch> |
parser() |
AlertPolicy.Condition.LogMatch.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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 FILTER_FIELD_NUMBER
public static final int LABEL_EXTRACTORS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getFilter()
Required. A logs-based filter. See [Advanced Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries) for how this filter should be constructed.
string filter = 1 [(.google.api.field_behavior) = REQUIRED];getFilter in interface AlertPolicy.Condition.LogMatchOrBuilderpublic com.google.protobuf.ByteString getFilterBytes()
Required. A logs-based filter. See [Advanced Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries) for how this filter should be constructed.
string filter = 1 [(.google.api.field_behavior) = REQUIRED];getFilterBytes in interface AlertPolicy.Condition.LogMatchOrBuilderpublic int getLabelExtractorsCount()
AlertPolicy.Condition.LogMatchOrBuilderOptional. A map from a label key to an extractor expression, which is used to extract the value for this label key. Each entry in this map is a specification for how data should be extracted from log entries that match `filter`. Each combination of extracted values is treated as a separate rule for the purposes of triggering notifications. Label keys and corresponding values can be used in notifications generated by this condition. Please see [the documentation on logs-based metric `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
map<string, string> label_extractors = 2;getLabelExtractorsCount in interface AlertPolicy.Condition.LogMatchOrBuilderpublic boolean containsLabelExtractors(String key)
Optional. A map from a label key to an extractor expression, which is used to extract the value for this label key. Each entry in this map is a specification for how data should be extracted from log entries that match `filter`. Each combination of extracted values is treated as a separate rule for the purposes of triggering notifications. Label keys and corresponding values can be used in notifications generated by this condition. Please see [the documentation on logs-based metric `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
map<string, string> label_extractors = 2;containsLabelExtractors in interface AlertPolicy.Condition.LogMatchOrBuilder@Deprecated public Map<String,String> getLabelExtractors()
getLabelExtractorsMap() instead.getLabelExtractors in interface AlertPolicy.Condition.LogMatchOrBuilderpublic Map<String,String> getLabelExtractorsMap()
Optional. A map from a label key to an extractor expression, which is used to extract the value for this label key. Each entry in this map is a specification for how data should be extracted from log entries that match `filter`. Each combination of extracted values is treated as a separate rule for the purposes of triggering notifications. Label keys and corresponding values can be used in notifications generated by this condition. Please see [the documentation on logs-based metric `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
map<string, string> label_extractors = 2;getLabelExtractorsMap in interface AlertPolicy.Condition.LogMatchOrBuilderpublic String getLabelExtractorsOrDefault(String key, String defaultValue)
Optional. A map from a label key to an extractor expression, which is used to extract the value for this label key. Each entry in this map is a specification for how data should be extracted from log entries that match `filter`. Each combination of extracted values is treated as a separate rule for the purposes of triggering notifications. Label keys and corresponding values can be used in notifications generated by this condition. Please see [the documentation on logs-based metric `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
map<string, string> label_extractors = 2;getLabelExtractorsOrDefault in interface AlertPolicy.Condition.LogMatchOrBuilderpublic String getLabelExtractorsOrThrow(String key)
Optional. A map from a label key to an extractor expression, which is used to extract the value for this label key. Each entry in this map is a specification for how data should be extracted from log entries that match `filter`. Each combination of extracted values is treated as a separate rule for the purposes of triggering notifications. Label keys and corresponding values can be used in notifications generated by this condition. Please see [the documentation on logs-based metric `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
map<string, string> label_extractors = 2;getLabelExtractorsOrThrow in interface AlertPolicy.Condition.LogMatchOrBuilderpublic 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 AlertPolicy.Condition.LogMatch parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Condition.LogMatch parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Condition.LogMatch parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Condition.LogMatch parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Condition.LogMatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Condition.LogMatch parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Condition.LogMatch parseFrom(InputStream input) throws IOException
IOExceptionpublic static AlertPolicy.Condition.LogMatch parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AlertPolicy.Condition.LogMatch parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AlertPolicy.Condition.LogMatch parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AlertPolicy.Condition.LogMatch parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AlertPolicy.Condition.LogMatch parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AlertPolicy.Condition.LogMatch.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AlertPolicy.Condition.LogMatch.Builder newBuilder()
public static AlertPolicy.Condition.LogMatch.Builder newBuilder(AlertPolicy.Condition.LogMatch prototype)
public AlertPolicy.Condition.LogMatch.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AlertPolicy.Condition.LogMatch.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AlertPolicy.Condition.LogMatch getDefaultInstance()
public static com.google.protobuf.Parser<AlertPolicy.Condition.LogMatch> parser()
public com.google.protobuf.Parser<AlertPolicy.Condition.LogMatch> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AlertPolicy.Condition.LogMatch getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.