Package com.google.monitoring.v3
Class AlertPolicy.Condition.LogMatch
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.monitoring.v3.AlertPolicy.Condition.LogMatch
-
- All Implemented Interfaces:
AlertPolicy.Condition.LogMatchOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
- Enclosing class:
- AlertPolicy.Condition
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 typegoogle.monitoring.v3.AlertPolicy.Condition.LogMatch
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static int
FILTER_FIELD_NUMBER
static int
LABEL_EXTRACTORS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.MapField
internalGetMapField(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(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 AlertPolicy.Condition.LogMatch
parseFrom(ByteBuffer data)
static AlertPolicy.Condition.LogMatch
parseFrom(ByteBuffer data, 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)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
FILTER_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABEL_EXTRACTORS_FIELD_NUMBER
public static final int LABEL_EXTRACTORS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getFilter
public 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];
- Specified by:
getFilter
in interfaceAlertPolicy.Condition.LogMatchOrBuilder
- Returns:
- The filter.
-
getFilterBytes
public 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];
- Specified by:
getFilterBytes
in interfaceAlertPolicy.Condition.LogMatchOrBuilder
- Returns:
- The bytes for filter.
-
getLabelExtractorsCount
public int getLabelExtractorsCount()
Description copied from interface:AlertPolicy.Condition.LogMatchOrBuilder
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;
- Specified by:
getLabelExtractorsCount
in interfaceAlertPolicy.Condition.LogMatchOrBuilder
-
containsLabelExtractors
public 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;
- Specified by:
containsLabelExtractors
in interfaceAlertPolicy.Condition.LogMatchOrBuilder
-
getLabelExtractors
@Deprecated public Map<String,String> getLabelExtractors()
Deprecated.UsegetLabelExtractorsMap()
instead.- Specified by:
getLabelExtractors
in interfaceAlertPolicy.Condition.LogMatchOrBuilder
-
getLabelExtractorsMap
public 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;
- Specified by:
getLabelExtractorsMap
in interfaceAlertPolicy.Condition.LogMatchOrBuilder
-
getLabelExtractorsOrDefault
public 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;
- Specified by:
getLabelExtractorsOrDefault
in interfaceAlertPolicy.Condition.LogMatchOrBuilder
-
getLabelExtractorsOrThrow
public 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;
- Specified by:
getLabelExtractorsOrThrow
in interfaceAlertPolicy.Condition.LogMatchOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AlertPolicy.Condition.LogMatch parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlertPolicy.Condition.LogMatch parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlertPolicy.Condition.LogMatch parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlertPolicy.Condition.LogMatch parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlertPolicy.Condition.LogMatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlertPolicy.Condition.LogMatch parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlertPolicy.Condition.LogMatch parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AlertPolicy.Condition.LogMatch parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AlertPolicy.Condition.LogMatch parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AlertPolicy.Condition.LogMatch parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AlertPolicy.Condition.LogMatch parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AlertPolicy.Condition.LogMatch parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AlertPolicy.Condition.LogMatch.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AlertPolicy.Condition.LogMatch.Builder newBuilder()
-
newBuilder
public static AlertPolicy.Condition.LogMatch.Builder newBuilder(AlertPolicy.Condition.LogMatch prototype)
-
toBuilder
public AlertPolicy.Condition.LogMatch.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AlertPolicy.Condition.LogMatch.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AlertPolicy.Condition.LogMatch getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AlertPolicy.Condition.LogMatch> parser()
-
getParserForType
public com.google.protobuf.Parser<AlertPolicy.Condition.LogMatch> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AlertPolicy.Condition.LogMatch getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-