Package com.pulumi.gcp.logging
Class MetricArgs
- java.lang.Object
-
- com.pulumi.resources.InputArgs
-
- com.pulumi.resources.ResourceArgs
-
- com.pulumi.gcp.logging.MetricArgs
-
public final class MetricArgs extends com.pulumi.resources.ResourceArgs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MetricArgs.Builder
-
Field Summary
Fields Modifier and Type Field Description static MetricArgs
Empty
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<com.pulumi.core.Output<java.lang.String>>
bucketName()
java.util.Optional<com.pulumi.core.Output<MetricBucketOptionsArgs>>
bucketOptions()
static MetricArgs.Builder
builder()
static MetricArgs.Builder
builder(MetricArgs defaults)
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
description()
java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>
disabled()
com.pulumi.core.Output<java.lang.String>
filter()
java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>>
labelExtractors()
java.util.Optional<com.pulumi.core.Output<MetricMetricDescriptorArgs>>
metricDescriptor()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
name()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
project()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
valueExtractor()
-
-
-
Field Detail
-
Empty
public static final MetricArgs Empty
-
-
Method Detail
-
bucketName
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> bucketName()
- Returns:
- The resource name of the Log Bucket that owns the Log Metric. Only Log Buckets in projects are supported. The bucket has to be in the same project as the metric.
-
bucketOptions
public java.util.Optional<com.pulumi.core.Output<MetricBucketOptionsArgs>> bucketOptions()
- Returns:
- The bucketOptions are required when the logs-based metric is using a DISTRIBUTION value type and it describes the bucket boundaries used to create a histogram of the extracted values. Structure is documented below.
-
description
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> description()
- Returns:
- A description of this metric, which is used in documentation. The maximum length of the description is 8000 characters.
-
disabled
public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> disabled()
- Returns:
- If set to True, then this metric is disabled and it does not generate any points.
-
filter
public com.pulumi.core.Output<java.lang.String> filter()
- Returns:
- An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-filters) which is used to match log entries. ***
-
labelExtractors
public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>> labelExtractors()
- Returns:
- A map from a label key string to an extractor expression which is used to extract data from a log entry field and assign as the label value. Each label key specified in the LabelDescriptor must have an associated extractor expression in this map. The syntax of the extractor expression is the same as for the valueExtractor field.
-
metricDescriptor
public java.util.Optional<com.pulumi.core.Output<MetricMetricDescriptorArgs>> metricDescriptor()
- Returns:
- The optional metric descriptor associated with the logs-based metric. If unspecified, it uses a default metric descriptor with a DELTA metric kind, INT64 value type, with no labels and a unit of "1". Such a metric counts the number of log entries matching the filter expression. Structure is documented below.
-
name
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> name()
- Returns:
- The client-assigned metric identifier. Examples - "error_count", "nginx/requests". Metric identifiers are limited to 100 characters and can include only the following characters A-Z, a-z, 0-9, and the special characters _-.,+!*',()%/. The forward-slash character (/) denotes a hierarchy of name pieces, and it cannot be the first character of the name.
-
project
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> project()
- Returns:
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
-
valueExtractor
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> valueExtractor()
- Returns:
- A valueExtractor is required when using a distribution logs-based metric to extract the values to record from a log entry. Two functions are supported for value extraction - EXTRACT(field) or REGEXP_EXTRACT(field, regex). The argument are 1. field - The name of the log entry field from which the value is to be extracted. 2. regex - A regular expression using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax) with a single capture group to extract data from the specified log entry field. The value of the field is converted to a string before applying the regex. It is an error to specify a regex that does not include exactly one capture group.
-
builder
public static MetricArgs.Builder builder()
-
builder
public static MetricArgs.Builder builder(MetricArgs defaults)
-
-