Class SingleMetricBaselineInner
- java.lang.Object
-
- com.azure.resourcemanager.monitor.fluent.models.SingleMetricBaselineInner
-
public class SingleMetricBaselineInner extends Object
The baseline results of a single metric.
-
-
Constructor Summary
Constructors Constructor Description SingleMetricBaselineInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TimeSeriesBaseline>baselines()Get the baselines property: The baseline for each time series that was queried.Stringid()Get the id property: The metric baseline Id.Durationinterval()Get the interval property: The interval (window size) for which the metric data was returned in.Stringname()Get the name property: The name of the metric for which the baselines were retrieved.Stringnamespace()Get the namespace property: The namespace of the metrics been queried.Stringtimespan()Get the timespan property: The timespan for which the data was retrieved.Stringtype()Get the type property: The resource type of the metric baseline resource.voidvalidate()Validates the instance.SingleMetricBaselineInnerwithBaselines(List<TimeSeriesBaseline> baselines)Set the baselines property: The baseline for each time series that was queried.SingleMetricBaselineInnerwithId(String id)Set the id property: The metric baseline Id.SingleMetricBaselineInnerwithInterval(Duration interval)Set the interval property: The interval (window size) for which the metric data was returned in.SingleMetricBaselineInnerwithName(String name)Set the name property: The name of the metric for which the baselines were retrieved.SingleMetricBaselineInnerwithNamespace(String namespace)Set the namespace property: The namespace of the metrics been queried.SingleMetricBaselineInnerwithTimespan(String timespan)Set the timespan property: The timespan for which the data was retrieved.SingleMetricBaselineInnerwithType(String type)Set the type property: The resource type of the metric baseline resource.
-
-
-
Method Detail
-
id
public String id()
Get the id property: The metric baseline Id.- Returns:
- the id value.
-
withId
public SingleMetricBaselineInner withId(String id)
Set the id property: The metric baseline Id.- Parameters:
id- the id value to set.- Returns:
- the SingleMetricBaselineInner object itself.
-
type
public String type()
Get the type property: The resource type of the metric baseline resource.- Returns:
- the type value.
-
withType
public SingleMetricBaselineInner withType(String type)
Set the type property: The resource type of the metric baseline resource.- Parameters:
type- the type value to set.- Returns:
- the SingleMetricBaselineInner object itself.
-
name
public String name()
Get the name property: The name of the metric for which the baselines were retrieved.- Returns:
- the name value.
-
withName
public SingleMetricBaselineInner withName(String name)
Set the name property: The name of the metric for which the baselines were retrieved.- Parameters:
name- the name value to set.- Returns:
- the SingleMetricBaselineInner object itself.
-
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:
- the timespan value.
-
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:
timespan- the timespan value to set.- Returns:
- the SingleMetricBaselineInner object itself.
-
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:
- the interval value.
-
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:
interval- the interval value to set.- Returns:
- the SingleMetricBaselineInner object itself.
-
namespace
public String namespace()
Get the namespace property: The namespace of the metrics been queried.- Returns:
- the namespace value.
-
withNamespace
public SingleMetricBaselineInner withNamespace(String namespace)
Set the namespace property: The namespace of the metrics been queried.- Parameters:
namespace- the namespace value to set.- Returns:
- the SingleMetricBaselineInner object itself.
-
baselines
public List<TimeSeriesBaseline> baselines()
Get the baselines property: The baseline for each time series that was queried.- Returns:
- the baselines value.
-
withBaselines
public SingleMetricBaselineInner withBaselines(List<TimeSeriesBaseline> baselines)
Set the baselines property: The baseline for each time series that was queried.- Parameters:
baselines- the baselines value to set.- Returns:
- the SingleMetricBaselineInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-