public abstract static class MetricInfo.Builder extends Object
MetricInfo
objects.Modifier and Type | Method and Description |
---|---|
abstract MetricInfo |
build()
Creates a
MetricInfo object for this builder. |
abstract MetricInfo.Builder |
setDescription(String description)
Sets an optional description for this metric.
|
abstract MetricInfo.Builder |
setFilter(String filter)
Sets an advanced logs filter.
|
abstract MetricInfo.Builder |
setName(String name)
Sets the name of the metric.
|
public abstract MetricInfo.Builder setName(String name)
severe-errors
. Metric identifiers are limited
to 1000 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.public abstract MetricInfo.Builder setDescription(String description)
public abstract MetricInfo.Builder setFilter(String filter)
logName=projects/my-projectid/logs/syslog AND severity>=ERROR
.public abstract MetricInfo build()
MetricInfo
object for this builder.Copyright © 2019 Google LLC. All rights reserved.