Interface OciMetricsSupport.NameFormatter
-
- Enclosing class:
- OciMetricsSupport
public static interface OciMetricsSupport.NameFormatter
Prescribes behavior for formatting metric names for use by OCI.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default String
format(MetricID metricId, String suffix, Metadata metadata)
Formats a metric name for OCI.
-
-
-
Method Detail
-
format
default String format(MetricID metricId, String suffix, Metadata metadata)
Formats a metric name for OCI.The default implementation creates an OCI metric name with this format:
metric-name[_suffix][_units]
where_suffix
is omitted if the caller passes a null suffix, and_units
is omitted if the metrics metadata does not have units set or, in translating the units for OCI, the result is blank.- Parameters:
metricId
-MetricID
of the metric being formattedsuffix
- name suffix to append to the recorded metric name (e.g, "total"); can be nullmetadata
- metric metadata describing the metric- Returns:
- the formatted metric name
-
-