public static interface AlertPolicy.Condition.LogMatchOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
containsLabelExtractors(String key)
public abstract 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
valueExtractors
for syntax and examples.
map<string, string> label_extractors = 2;
| Name | Description |
| key | String |
| Type | Description |
| boolean |
getFilter()
public abstract String getFilter()Required. A logs-based filter. See Advanced Logs Queries for how this filter should be constructed.
string filter = 1 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| String | The filter. |
getFilterBytes()
public abstract ByteString getFilterBytes()Required. A logs-based filter. See Advanced Logs Queries for how this filter should be constructed.
string filter = 1 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| ByteString | The bytes for filter. |
getLabelExtractors()
public abstract Map<String,String> getLabelExtractors()Use #getLabelExtractorsMap() instead.
| Type | Description |
| Map<String,String> |
getLabelExtractorsCount()
public abstract 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
valueExtractors
for syntax and examples.
map<string, string> label_extractors = 2;
| Type | Description |
| int |
getLabelExtractorsMap()
public abstract 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
valueExtractors
for syntax and examples.
map<string, string> label_extractors = 2;
| Type | Description |
| Map<String,String> |
getLabelExtractorsOrDefault(String key, String defaultValue)
public abstract 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
valueExtractors
for syntax and examples.
map<string, string> label_extractors = 2;
| Name | Description |
| key | String |
| defaultValue | String |
| Type | Description |
| String |
getLabelExtractorsOrThrow(String key)
public abstract 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
valueExtractors
for syntax and examples.
map<string, string> label_extractors = 2;
| Name | Description |
| key | String |
| Type | Description |
| String |