SingleMetricBaselineInner Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. fluent. models. SingleMetricBaselineInner
- com.
Implements
public final class SingleMetricBaselineInner
implements JsonSerializable<SingleMetricBaselineInner>
The baseline results of a single metric.
Constructor Summary
Constructor | Description |
---|---|
SingleMetricBaselineInner() |
Creates an instance of Single |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Time |
baselines()
Get the baselines property: The baseline for each time series that was queried. |
static
Single |
fromJson(JsonReader jsonReader)
Reads an instance of Single |
String |
id()
Get the id property: The metric baseline Id. |
Duration |
interval()
Get the interval property: The interval (window size) for which the metric data was returned in. |
String |
name()
Get the name property: The name of the metric for which the baselines were retrieved. |
String |
namespace()
Get the namespace property: The namespace of the metrics been queried. |
String |
timespan()
Get the timespan property: The timespan for which the data was retrieved. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The resource type of the metric baseline resource. |
void |
validate()
Validates the instance. |
Single |
withBaselines(List<TimeSeriesBaseline> baselines)
Set the baselines property: The baseline for each time series that was queried. |
Single |
withId(String id)
Set the id property: The metric baseline Id. |
Single |
withInterval(Duration interval)
Set the interval property: The interval (window size) for which the metric data was returned in. |
Single |
withName(String name)
Set the name property: The name of the metric for which the baselines were retrieved. |
Single |
withNamespace(String namespace)
Set the namespace property: The namespace of the metrics been queried. |
Single |
withTimespan(String timespan)
Set the timespan property: The timespan for which the data was retrieved. |
Single |
withType(String type)
Set the type property: The resource type of the metric baseline resource. |
Methods inherited from java.lang.Object
Constructor Details
SingleMetricBaselineInner
public SingleMetricBaselineInner()
Creates an instance of SingleMetricBaselineInner class.
Method Details
baselines
public List
Get the baselines property: The baseline for each time series that was queried.
Returns:
fromJson
public static SingleMetricBaselineInner fromJson(JsonReader jsonReader)
Reads an instance of SingleMetricBaselineInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The metric baseline Id.
Returns:
interval
public Duration interval()
Get the interval property: The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made.
Returns:
name
public String name()
Get the name property: The name of the metric for which the baselines were retrieved.
Returns:
namespace
public String namespace()
Get the namespace property: The namespace of the metrics been queried.
Returns:
timespan
public String timespan()
Get the timespan property: The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested.
Returns:
toJson
type
public String type()
Get the type property: The resource type of the metric baseline resource.
Returns:
validate
public void validate()
Validates the instance.
withBaselines
public SingleMetricBaselineInner withBaselines(List
Set the baselines property: The baseline for each time series that was queried.
Parameters:
Returns:
withId
public SingleMetricBaselineInner withId(String id)
Set the id property: The metric baseline Id.
Parameters:
Returns:
withInterval
public SingleMetricBaselineInner withInterval(Duration interval)
Set the interval property: The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made.
Parameters:
Returns:
withName
public SingleMetricBaselineInner withName(String name)
Set the name property: The name of the metric for which the baselines were retrieved.
Parameters:
Returns:
withNamespace
public SingleMetricBaselineInner withNamespace(String namespace)
Set the namespace property: The namespace of the metrics been queried.
Parameters:
Returns:
withTimespan
public SingleMetricBaselineInner withTimespan(String timespan)
Set the timespan property: The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested.
Parameters:
Returns:
withType
public SingleMetricBaselineInner withType(String type)
Set the type property: The resource type of the metric baseline resource.
Parameters:
Returns:
Applies to
Azure SDK for Java