public class MetricInfo extends Object implements Serializable
filter()).| Modifier and Type | Class and Description |
|---|---|
static class |
MetricInfo.Builder
A builder for
MetricInfo objects. |
| Modifier and Type | Method and Description |
|---|---|
static MetricInfo.Builder |
builder(String name,
String filter)
Returns a builder for
MetricInfo objects given the name of the metric and its filter. |
String |
description()
Returns an optional description for this metric.
|
boolean |
equals(Object obj) |
String |
filter()
Returns an advanced logs filter.
|
int |
hashCode() |
String |
name()
Returns the name of the metric.
|
static MetricInfo |
of(String name,
String filter)
Creates a
MetricInfo object given the name of the metric and its filter. |
MetricInfo.Builder |
toBuilder()
Returns a builder for this
MetricInfo object. |
String |
toString() |
public 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 String description()
public String filter()
logName=projects/my-projectid/logs/syslog AND severity>=ERROR.public MetricInfo.Builder toBuilder()
MetricInfo object.public static MetricInfo.Builder builder(String name, String filter)
MetricInfo objects given the name of the metric and its filter.public static MetricInfo of(String name, String filter)
MetricInfo object given the name of the metric and its filter.Copyright © 2016 Google. All rights reserved.