MetricMetricDescriptor class
Constructors
-
MetricMetricDescriptor({Input<String?>? displayName, Input<List<MetricMetricDescriptorLabel>?>? labels, required Input<String> metricKind, Input<String?>? unit, required Input<String> valueType})
-
Creates a new MetricMetricDescriptor.
displayName A concise name for the metric, which can be displayed in user interfaces. Use sentence case
labels The set of labels that can be used to describe a specific instance of this metric type. For
metricKind Whether the metric records instantaneous values, changes to a value, etc.
unit The unit in which the metric value is reported. It is only applicable if the valueType is
valueType Whether the measurement is an integer, a floating-point number, etc.
const
-
MetricMetricDescriptor.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
displayName
→ Input<String?>?
-
A concise name for the metric, which can be displayed in user interfaces. Use sentence case
without an ending period, for example "Request count". This field is optional but it is
recommended to be set for any metrics associated with user-visible concepts, such as Quota.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
labels
→ Input<List<MetricMetricDescriptorLabel>?>?
-
The set of labels that can be used to describe a specific instance of this metric type. For
example, the appengine.googleapis.com/http/server/response_latencies metric type has a label
for the HTTP response code, response_code, so you can look at latencies for successful responses
or just for responses that failed.
Structure is documented below.
final
-
metricKind
→ Input<String>
-
Whether the metric records instantaneous values, changes to a value, etc.
Some combinations of metricKind and valueType might not be supported.
For counter metrics, set this to DELTA.
Possible values are:
DELTA, GAUGE, CUMULATIVE.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
unit
→ Input<String?>?
-
The unit in which the metric value is reported. It is only applicable if the valueType is
INT64, DOUBLE, or DISTRIBUTION. The supported units are a subset of
The Unified Code for Units of Measure standard
final
-
valueType
→ Input<String>
-
Whether the measurement is an integer, a floating-point number, etc.
Some combinations of metricKind and valueType might not be supported.
For counter metrics, set this to INT64.
Possible values are:
BOOL, INT64, DOUBLE, STRING, DISTRIBUTION, MONEY.
final