public class ReportingRule
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ReportingRule.LabelTest
LabelSupporter defines a method that determines if a metric is supported
|
static interface |
ReportingRule.MetricTest
MetricSupporter defines a method that determines is a metric is supported
|
| Modifier and Type | Method and Description |
|---|---|
static ReportingRule |
fromKnownInputs(java.lang.String[] logs,
java.util.Set<java.lang.String> metricNames,
java.util.Set<java.lang.String> labelNames)
'Constructor' that uses names of known
KnownMetrics and KnownLabels. |
static ReportingRule |
fromService(com.google.api.Service s)
'Constructor' that uses a
Service. |
KnownLabels[] |
getLabels() |
java.lang.String[] |
getLogs() |
KnownMetrics[] |
getMetrics() |
public static ReportingRule fromService(com.google.api.Service s)
Service.s - the Service whose metric, labels and logs configurations are used to
configure the ReportingRuleReportingRulepublic static ReportingRule fromKnownInputs(@Nullable java.lang.String[] logs, @Nullable java.util.Set<java.lang.String> metricNames, @Nullable java.util.Set<java.lang.String> labelNames)
KnownMetrics and KnownLabels.
Names that don't correspond to actual instances are ignored, as are instances where there is
not yet an update function that will modify a ReportRequestlogs - the logs for which entries will be added ReportRequestsmetricNames - the names of the KnownMetrics to uselabelNames - the names of the KnownLabels to useReportingRulepublic java.lang.String[] getLogs()
logs for which entries will be added ReportRequestspublic KnownMetrics[] getMetrics()
KnownMetrics used to add metrics to ReportRequestspublic KnownLabels[] getLabels()
KnownLabels used to add labels to ReportRequests