Package com.google.monitoring.v3
Interface AlertPolicy.Condition.LogMatchOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AlertPolicy.Condition.LogMatch
,AlertPolicy.Condition.LogMatch.Builder
- Enclosing class:
- AlertPolicy.Condition
public static interface AlertPolicy.Condition.LogMatchOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabelExtractors(String key)
Optional.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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getFilter
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];
- Returns:
- The filter.
-
getFilterBytes
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];
- Returns:
- The bytes for filter.
-
getLabelExtractorsCount
int getLabelExtractorsCount()
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
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;
-
getLabelExtractors
@Deprecated Map<String,String> getLabelExtractors()
Deprecated.UsegetLabelExtractorsMap()
instead.
-
getLabelExtractorsMap
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;
-
getLabelExtractorsOrDefault
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;
-
getLabelExtractorsOrThrow
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;
-
-