MetricDescriptor constructor
MetricDescriptor({
- String? name,
- Iterable<
LabelDescriptor> ? labels, - MetricDescriptor_MetricKind? metricKind,
- MetricDescriptor_ValueType? valueType,
- String? unit,
- String? description,
- String? displayName,
- String? type,
- MetricDescriptor_MetricDescriptorMetadata? metadata,
- LaunchStage? launchStage,
Implementation
factory MetricDescriptor({
$core.String? name,
$core.Iterable<$2.LabelDescriptor>? labels,
MetricDescriptor_MetricKind? metricKind,
MetricDescriptor_ValueType? valueType,
$core.String? unit,
$core.String? description,
$core.String? displayName,
$core.String? type,
MetricDescriptor_MetricDescriptorMetadata? metadata,
$4.LaunchStage? launchStage,
}) {
final _result = create();
if (name != null) {
_result.name = name;
}
if (labels != null) {
_result.labels.addAll(labels);
}
if (metricKind != null) {
_result.metricKind = metricKind;
}
if (valueType != null) {
_result.valueType = valueType;
}
if (unit != null) {
_result.unit = unit;
}
if (description != null) {
_result.description = description;
}
if (displayName != null) {
_result.displayName = displayName;
}
if (type != null) {
_result.type = type;
}
if (metadata != null) {
_result.metadata = metadata;
}
if (launchStage != null) {
_result.launchStage = launchStage;
}
return _result;
}