name property

  1. @TagNumber.new(1)
String get name

Required. The client-assigned metric identifier. Examples: "error_count", "nginx/requests".

Metric identifiers are limited to 100 characters and can include only the following characters: A-Z, a-z, 0-9, and the special characters _-.,+!*',()%/. The forward-slash character (/) denotes a hierarchy of name pieces, and it cannot be the first character of the name.

This field is the [METRIC_ID] part of a metric resource name in the format "projects/PROJECT_ID/metrics/METRIC_ID". Example: If the resource name of a metric is "projects/my-project/metrics/nginx%2Frequests", this field's value is "nginx/requests".

Implementation

@$pb.TagNumber(1)
$core.String get name => $_getSZ(0);
  1. @TagNumber.new(1)
set name (String value)

Implementation

@$pb.TagNumber(1)
set name($core.String value) => $_setString(0, value);