Class ThrottledRequestsInput
java.lang.Object
com.azure.resourcemanager.compute.models.LogAnalyticsInputBase
com.azure.resourcemanager.compute.models.ThrottledRequestsInput
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LogAnalyticsInputBase>
Api request input for LogAnalytics getThrottledRequests Api.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ThrottledRequestsInput class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ThrottledRequestsInputfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ThrottledRequestsInput from the JsonReader.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.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
-
ThrottledRequestsInput
public ThrottledRequestsInput()Creates an instance of ThrottledRequestsInput class.
-
-
Method Details
-
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
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 ThrottledRequestsInput fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ThrottledRequestsInput from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ThrottledRequestsInput 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 ThrottledRequestsInput.
-