MetricState constructor

const MetricState({
  1. Input<String?>? bucketName,
  2. Input<MetricBucketOptions?>? bucketOptions,
  3. Input<String?>? deletionPolicy,
  4. Input<String?>? description,
  5. Input<bool?>? disabled,
  6. Input<String?>? filter,
  7. Input<Map<String, String>?>? labelExtractors,
  8. Input<MetricMetricDescriptor?>? metricDescriptor,
  9. Input<String?>? name,
  10. Input<String?>? project,
  11. 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,
});