Class RequestRateByIntervalInput
java.lang.Object
com.azure.resourcemanager.compute.models.LogAnalyticsInputBase
com.azure.resourcemanager.compute.models.RequestRateByIntervalInput
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LogAnalyticsInputBase>
Api request input for LogAnalytics getRequestRateByInterval Api.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RequestRateByIntervalInput class. -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestRateByIntervalInputfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RequestRateByIntervalInput from the JsonReader.Get the intervalLength property: Interval value in minutes used to create LogAnalytics call rate logs.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBlobContainerSasUri(String blobContainerSasUri) Set the blobContainerSasUri property: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to.withFromTime(OffsetDateTime fromTime) Set the fromTime property: From time of the query.withGroupByClientApplicationId(Boolean groupByClientApplicationId) Set the groupByClientApplicationId property: Group query result by Client Application ID.withGroupByOperationName(Boolean groupByOperationName) Set the groupByOperationName property: Group query result by Operation Name.withGroupByResourceName(Boolean groupByResourceName) Set the groupByResourceName property: Group query result by Resource Name.withGroupByThrottlePolicy(Boolean groupByThrottlePolicy) Set the groupByThrottlePolicy property: Group query result by Throttle Policy applied.withGroupByUserAgent(Boolean groupByUserAgent) Set the groupByUserAgent property: Group query result by User Agent.withIntervalLength(IntervalInMins intervalLength) Set the intervalLength property: Interval value in minutes used to create LogAnalytics call rate logs.withToTime(OffsetDateTime toTime) Set the toTime property: To time of the query.Methods inherited from class com.azure.resourcemanager.compute.models.LogAnalyticsInputBase
blobContainerSasUri, fromTime, groupByClientApplicationId, groupByOperationName, groupByResourceName, groupByThrottlePolicy, groupByUserAgent, toTimeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RequestRateByIntervalInput
public RequestRateByIntervalInput()Creates an instance of RequestRateByIntervalInput class.
-
-
Method Details
-
intervalLength
Get the intervalLength property: Interval value in minutes used to create LogAnalytics call rate logs.- Returns:
- the intervalLength value.
-
withIntervalLength
Set the intervalLength property: Interval value in minutes used to create LogAnalytics call rate logs.- Parameters:
intervalLength- the intervalLength value to set.- Returns:
- the RequestRateByIntervalInput object itself.
-
withBlobContainerSasUri
Set the blobContainerSasUri property: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to.- Overrides:
withBlobContainerSasUriin classLogAnalyticsInputBase- Parameters:
blobContainerSasUri- the blobContainerSasUri value to set.- Returns:
- the LogAnalyticsInputBase object itself.
-
withFromTime
Set the fromTime property: From time of the query.- Overrides:
withFromTimein classLogAnalyticsInputBase- Parameters:
fromTime- the fromTime value to set.- Returns:
- the LogAnalyticsInputBase object itself.
-
withToTime
Set the toTime property: To time of the query.- Overrides:
withToTimein classLogAnalyticsInputBase- Parameters:
toTime- the toTime value to set.- Returns:
- the LogAnalyticsInputBase object itself.
-
withGroupByThrottlePolicy
Set the groupByThrottlePolicy property: Group query result by Throttle Policy applied.- Overrides:
withGroupByThrottlePolicyin classLogAnalyticsInputBase- Parameters:
groupByThrottlePolicy- the groupByThrottlePolicy value to set.- Returns:
- the LogAnalyticsInputBase object itself.
-
withGroupByOperationName
Set the groupByOperationName property: Group query result by Operation Name.- Overrides:
withGroupByOperationNamein classLogAnalyticsInputBase- Parameters:
groupByOperationName- the groupByOperationName value to set.- Returns:
- the LogAnalyticsInputBase object itself.
-
withGroupByResourceName
Set the groupByResourceName property: Group query result by Resource Name.- Overrides:
withGroupByResourceNamein classLogAnalyticsInputBase- Parameters:
groupByResourceName- the groupByResourceName value to set.- Returns:
- the LogAnalyticsInputBase object itself.
-
withGroupByClientApplicationId
public RequestRateByIntervalInput withGroupByClientApplicationId(Boolean groupByClientApplicationId) Set the groupByClientApplicationId property: Group query result by Client Application ID.- Overrides:
withGroupByClientApplicationIdin classLogAnalyticsInputBase- Parameters:
groupByClientApplicationId- the groupByClientApplicationId value to set.- Returns:
- the LogAnalyticsInputBase object itself.
-
withGroupByUserAgent
Set the groupByUserAgent property: Group query result by User Agent.- Overrides:
withGroupByUserAgentin classLogAnalyticsInputBase- Parameters:
groupByUserAgent- the groupByUserAgent value to set.- Returns:
- the LogAnalyticsInputBase object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classLogAnalyticsInputBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<LogAnalyticsInputBase>- Overrides:
toJsonin classLogAnalyticsInputBase- Throws:
IOException
-
fromJson
public static RequestRateByIntervalInput fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RequestRateByIntervalInput from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RequestRateByIntervalInput if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the RequestRateByIntervalInput.
-