MetricState constructor
- Input<
String?> ? bucketName, - Input<
MetricBucketOptions?> ? bucketOptions, - Input<
String?> ? deletionPolicy, - Input<
String?> ? description, - Input<
bool?> ? disabled, - Input<
String?> ? filter, - Input<
Map< ? labelExtractors,String, String> ?> - Input<
MetricMetricDescriptor?> ? metricDescriptor, - Input<
String?> ? name, - Input<
String?> ? project, - Input<
String?> ? valueExtractor,
Creates a new MetricState.
bucketName The resource name of the Log Bucket that owns the Log Metric. Only Log Buckets in projects
bucketOptions The bucketOptions are required when the logs-based metric is using a DISTRIBUTION value type and it
deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
description A description of this metric, which is used in documentation. The maximum length of the
disabled If set to True, then this metric is disabled and it does not generate any points.
filter An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-filters) which
labelExtractors A map from a label key string to an extractor expression which is used to extract data from a log
metricDescriptor The optional metric descriptor associated with the logs-based metric.
name The client-assigned metric identifier. Examples - "errorCount", "nginx/requests".
project The ID of the project in which the resource belongs.
valueExtractor A valueExtractor is required when using a distribution logs-based metric to extract the values to
Implementation
const MetricState({
this.bucketName,
this.bucketOptions,
this.deletionPolicy,
this.description,
this.disabled,
this.filter,
this.labelExtractors,
this.metricDescriptor,
this.name,
this.project,
this.valueExtractor,
});