The metadata contains:
Name: (Required) The name of the metric.Description: (Optional) A human readable description of the metric.Unit: (Optional) The unit of the metric. The unit may be any unit specified as a String or one specified
in MetricUnits.| Modifier and Type | Method and Description |
|---|---|
| public static MetadataBuilder | |
| public static MetadataBuilder | |
| public Optional | |
| public String | Returns: the descriptionReturns the description of the metric if set, otherwise this method returns the empty |
| public String | |
| public String | Returns: the unitReturns the unit of this metric if set, otherwise this method returns |
| public Optional |
| builder | back to summary |
|---|---|
| public static MetadataBuilder builder() Returns a new builder
| |
| builder | back to summary |
|---|---|
| public static MetadataBuilder builder(Metadata metadata) Returns a new builder with the
| |
| description | back to summary |
|---|---|
| public Optional | |
| getDescription | back to summary |
|---|---|
| public String getDescription() Returns the description of the metric if set, otherwise this method returns the empty
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the metric name.
| |
| getUnit | back to summary |
|---|---|
| public String getUnit() Returns the unit of this metric if set, otherwise this method returns
| |
| unit | back to summary |
|---|---|
| public Optional | |