com.pulumi.googlenative.monitoring.v3.outputs.LogMatchResponse Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.googlenative.monitoring.v3.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
@CustomType
public final class LogMatchResponse {
/**
* @return A logs-based filter. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries) for how this filter should be constructed.
*
*/
private String filter;
/**
* @return 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 (https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
*
*/
private Map labelExtractors;
private LogMatchResponse() {}
/**
* @return A logs-based filter. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries) for how this filter should be constructed.
*
*/
public String filter() {
return this.filter;
}
/**
* @return 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 (https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
*
*/
public Map labelExtractors() {
return this.labelExtractors;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LogMatchResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String filter;
private Map labelExtractors;
public Builder() {}
public Builder(LogMatchResponse defaults) {
Objects.requireNonNull(defaults);
this.filter = defaults.filter;
this.labelExtractors = defaults.labelExtractors;
}
@CustomType.Setter
public Builder filter(String filter) {
this.filter = Objects.requireNonNull(filter);
return this;
}
@CustomType.Setter
public Builder labelExtractors(Map labelExtractors) {
this.labelExtractors = Objects.requireNonNull(labelExtractors);
return this;
}
public LogMatchResponse build() {
final var o = new LogMatchResponse();
o.filter = filter;
o.labelExtractors = labelExtractors;
return o;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy