public final class DiagnosticMetricSet extends Object
| Constructor and Description |
|---|
DiagnosticMetricSet() |
| Modifier and Type | Method and Description |
|---|---|
OffsetDateTime |
endTime()
Get the endTime property: End time of the period.
|
String |
name()
Get the name property: Name of the metric.
|
OffsetDateTime |
startTime()
Get the startTime property: Start time of the period.
|
String |
timeGrain()
Get the timeGrain property: Presented time grain.
|
String |
unit()
Get the unit property: Metric's unit.
|
void |
validate()
Validates the instance.
|
List<DiagnosticMetricSample> |
values()
Get the values property: Collection of metric values for the selected period based on the
{Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}.
|
DiagnosticMetricSet |
withEndTime(OffsetDateTime endTime)
Set the endTime property: End time of the period.
|
DiagnosticMetricSet |
withName(String name)
Set the name property: Name of the metric.
|
DiagnosticMetricSet |
withStartTime(OffsetDateTime startTime)
Set the startTime property: Start time of the period.
|
DiagnosticMetricSet |
withTimeGrain(String timeGrain)
Set the timeGrain property: Presented time grain.
|
DiagnosticMetricSet |
withUnit(String unit)
Set the unit property: Metric's unit.
|
DiagnosticMetricSet |
withValues(List<DiagnosticMetricSample> values)
Set the values property: Collection of metric values for the selected period based on the
{Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}.
|
public String name()
public DiagnosticMetricSet withName(String name)
name - the name value to set.public String unit()
public DiagnosticMetricSet withUnit(String unit)
unit - the unit value to set.public OffsetDateTime startTime()
public DiagnosticMetricSet withStartTime(OffsetDateTime startTime)
startTime - the startTime value to set.public OffsetDateTime endTime()
public DiagnosticMetricSet withEndTime(OffsetDateTime endTime)
endTime - the endTime value to set.public String timeGrain()
public DiagnosticMetricSet withTimeGrain(String timeGrain)
timeGrain - the timeGrain value to set.public List<DiagnosticMetricSample> values()
public DiagnosticMetricSet withValues(List<DiagnosticMetricSample> values)
values - the values value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.