MetricDescriptorState constructor
- Input<
String?> ? deletionPolicy, - Input<
String?> ? description, - Input<
String?> ? displayName, - Input<
List< ? labels,MetricDescriptorLabel> ?> - Input<
String?> ? launchStage, - Input<
MetricDescriptorMetadata?> ? metadata, - Input<
String?> ? metricKind, - Input<
List< ? monitoredResourceTypes,String> ?> - Input<
String?> ? name, - Input<
String?> ? project, - Input<
String?> ? type, - Input<
String?> ? unit, - Input<
String?> ? valueType,
Creates a new MetricDescriptorState.
deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
description A detailed description of the metric, which can be used in documentation.
displayName A concise name for the metric, which can be displayed in user interfaces. Use sentence case without an ending period, for example "Request count".
labels The set of labels that can be used to describe a specific instance of this metric type. In order to delete a label, the entire resource must be deleted, then created with the desired labels.
launchStage The launch stage of the metric definition.
metadata Metadata which can be used to guide usage of the metric.
metricKind Whether the metric records instantaneous values, changes to a value, etc. Some combinations of metricKind and valueType might not be supported.
monitoredResourceTypes If present, then a time series, which is identified partially by a metric type and a MonitoredResourceDescriptor, that is associated with this metric type can only be associated with one of the monitored resource types listed here. This field allows time series to be associated with the intersection of this metric type and the monitored resource types in this list.
name The resource name of the metric descriptor.
project The ID of the project in which the resource belongs.
type The metric type, including its DNS name prefix. The type is not URL-encoded. All service defined metrics must be prefixed with the service name, in the format of {service name}/{relative metric name}, such as cloudsql.googleapis.com/database/cpu/utilization. The relative metric name must have only upper and lower-case letters, digits, '/' and underscores '_' are allowed. Additionally, the maximum number of characters allowed for the relativeMetricName is 100. All user-defined metric types have the DNS name custom.googleapis.com, external.googleapis.com, or logging.googleapis.com/user/.
unit The units in which the metric value is reported. It is only applicable if the
valueType Whether the measurement is an integer, a floating-point number, etc. Some combinations of metricKind and valueType might not be supported.
Implementation
const MetricDescriptorState({
this.deletionPolicy,
this.description,
this.displayName,
this.labels,
this.launchStage,
this.metadata,
this.metricKind,
this.monitoredResourceTypes,
this.name,
this.project,
this.type,
this.unit,
this.valueType,
});