Class DataFeedGranularity
java.lang.Object
com.azure.ai.metricsadvisor.administration.models.DataFeedGranularity
The DataFeedGranularity model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the granularity amount of the time series.Get the granularity of the time series.setCustomGranularityValue(int customGranularityValue) Set the granularity amount, if granularity is custom, it is required.setGranularityType(DataFeedGranularityType granularityType) Set the granularity level of the time series.
-
Constructor Details
-
DataFeedGranularity
public DataFeedGranularity()Create a new instance of DataFeedGranularity.
-
-
Method Details
-
getGranularityType
Get the granularity of the time series.- Returns:
- the granularity type of the time series.
-
getCustomGranularityValue
Get the granularity amount of the time series.- Returns:
- the granularity amount of the time series.
-
setCustomGranularityValue
Set the granularity amount, if granularity is custom, it is required.- Parameters:
customGranularityValue- the granularity amount value, if granularity is custom, it is required.- Returns:
- the DataFeedGranularity object itself.
-
setGranularityType
Set the granularity level of the time series.- Parameters:
granularityType- the granularity level of the time series.- Returns:
- the DataFeedGranularity object itself.
-