Package com.pulumi.gcp.monitoring.inputs
Class MetricDescriptorState
- java.lang.Object
-
- com.pulumi.resources.InputArgs
-
- com.pulumi.resources.ResourceArgs
-
- com.pulumi.gcp.monitoring.inputs.MetricDescriptorState
-
public final class MetricDescriptorState extends com.pulumi.resources.ResourceArgs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MetricDescriptorState.Builder
-
Field Summary
Fields Modifier and Type Field Description static MetricDescriptorState
Empty
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetricDescriptorState.Builder
builder()
static MetricDescriptorState.Builder
builder(MetricDescriptorState defaults)
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
description()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
displayName()
java.util.Optional<com.pulumi.core.Output<java.util.List<MetricDescriptorLabelArgs>>>
labels()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
launchStage()
java.util.Optional<com.pulumi.core.Output<MetricDescriptorMetadataArgs>>
metadata()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
metricKind()
java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>>
monitoredResourceTypes()
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>>
type()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
unit()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
valueType()
-
-
-
Field Detail
-
Empty
public static final MetricDescriptorState Empty
-
-
Method Detail
-
description
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> description()
- Returns:
- A detailed description of the metric, which can be used in documentation.
-
displayName
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> displayName()
- Returns:
- 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
public java.util.Optional<com.pulumi.core.Output<java.util.List<MetricDescriptorLabelArgs>>> labels()
- Returns:
- 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. Structure is documented below.
-
launchStage
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> launchStage()
- Returns:
- The launch stage of the metric definition. Possible values are: `LAUNCH_STAGE_UNSPECIFIED`, `UNIMPLEMENTED`, `PRELAUNCH`, `EARLY_ACCESS`, `ALPHA`, `BETA`, `GA`, `DEPRECATED`.
-
metadata
public java.util.Optional<com.pulumi.core.Output<MetricDescriptorMetadataArgs>> metadata()
- Returns:
- Metadata which can be used to guide usage of the metric. Structure is documented below.
-
metricKind
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> metricKind()
- Returns:
- Whether the metric records instantaneous values, changes to a value, etc. Some combinations of metricKind and valueType might not be supported. Possible values are: `METRIC_KIND_UNSPECIFIED`, `GAUGE`, `DELTA`, `CUMULATIVE`.
-
monitoredResourceTypes
public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> monitoredResourceTypes()
- Returns:
- 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
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> name()
- Returns:
- The resource name of the metric descriptor.
-
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.
-
type
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> type()
- Returns:
- 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 relative_metric_name is 100. All user-defined metric types have the DNS name custom.googleapis.com, external.googleapis.com, or logging.googleapis.com/user/.
-
unit
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> unit()
- Returns:
- The units in which the metric value is reported. It is only applicable if the valueType is INT64, DOUBLE, or DISTRIBUTION. The unit defines the representation of the stored metric values. Different systems may scale the values to be more easily displayed (so a value of 0.02KBy might be displayed as 20By, and a value of 3523KBy might be displayed as 3.5MBy). However, if the unit is KBy, then the value of the metric is always in thousands of bytes, no matter how it may be displayed. If you want a custom metric to record the exact number of CPU-seconds used by a job, you can create an INT64 CUMULATIVE metric whose unit is s{CPU} (or equivalently 1s{CPU} or just s). If the job uses 12,005 CPU-seconds, then the value is written as 12005. Alternatively, if you want a custom metric to record data in a more granular way, you can create a DOUBLE CUMULATIVE metric whose unit is ks{CPU}, and then write the value 12.005 (which is 12005/1000), or use Kis{CPU} and write 11.723 (which is 12005/1024). The supported units are a subset of The Unified Code for Units of Measure standard. More info can be found in the API documentation (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors).
-
valueType
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> valueType()
- Returns:
- Whether the measurement is an integer, a floating-point number, etc. Some combinations of metricKind and valueType might not be supported. Possible values are: `BOOL`, `INT64`, `DOUBLE`, `STRING`, `DISTRIBUTION`.
-
builder
public static MetricDescriptorState.Builder builder()
-
builder
public static MetricDescriptorState.Builder builder(MetricDescriptorState defaults)
-
-