public final class OperationMetricDimension extends Object
| Constructor and Description |
|---|
OperationMetricDimension() |
| Modifier and Type | Method and Description |
|---|---|
String |
displayName()
Get the displayName property: The display name of the metric dimension.
|
String |
name()
Get the name property: The name of the dimension for the metric.
|
Boolean |
toBeExportedForShoebox()
Get the toBeExportedForShoebox property: Whether the dimension should be exported to Azure Monitor.
|
void |
validate()
Validates the instance.
|
OperationMetricDimension |
withDisplayName(String displayName)
Set the displayName property: The display name of the metric dimension.
|
OperationMetricDimension |
withName(String name)
Set the name property: The name of the dimension for the metric.
|
OperationMetricDimension |
withToBeExportedForShoebox(Boolean toBeExportedForShoebox)
Set the toBeExportedForShoebox property: Whether the dimension should be exported to Azure Monitor.
|
public String name()
public OperationMetricDimension withName(String name)
name - the name value to set.public String displayName()
public OperationMetricDimension withDisplayName(String displayName)
displayName - the displayName value to set.public Boolean toBeExportedForShoebox()
public OperationMetricDimension withToBeExportedForShoebox(Boolean toBeExportedForShoebox)
toBeExportedForShoebox - the toBeExportedForShoebox value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.