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>

public final class ThrottledRequestsInput extends LogAnalyticsInputBase
Api request input for LogAnalytics getThrottledRequests Api.
  • Constructor Details

    • ThrottledRequestsInput

      public ThrottledRequestsInput()
      Creates an instance of ThrottledRequestsInput class.
  • Method Details

    • withBlobContainerSasUri

      public ThrottledRequestsInput withBlobContainerSasUri(String blobContainerSasUri)
      Set the blobContainerSasUri property: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to.
      Overrides:
      withBlobContainerSasUri in class LogAnalyticsInputBase
      Parameters:
      blobContainerSasUri - the blobContainerSasUri value to set.
      Returns:
      the LogAnalyticsInputBase object itself.
    • withFromTime

      public ThrottledRequestsInput withFromTime(OffsetDateTime fromTime)
      Set the fromTime property: From time of the query.
      Overrides:
      withFromTime in class LogAnalyticsInputBase
      Parameters:
      fromTime - the fromTime value to set.
      Returns:
      the LogAnalyticsInputBase object itself.
    • withToTime

      public ThrottledRequestsInput withToTime(OffsetDateTime toTime)
      Set the toTime property: To time of the query.
      Overrides:
      withToTime in class LogAnalyticsInputBase
      Parameters:
      toTime - the toTime value to set.
      Returns:
      the LogAnalyticsInputBase object itself.
    • withGroupByThrottlePolicy

      public ThrottledRequestsInput withGroupByThrottlePolicy(Boolean groupByThrottlePolicy)
      Set the groupByThrottlePolicy property: Group query result by Throttle Policy applied.
      Overrides:
      withGroupByThrottlePolicy in class LogAnalyticsInputBase
      Parameters:
      groupByThrottlePolicy - the groupByThrottlePolicy value to set.
      Returns:
      the LogAnalyticsInputBase object itself.
    • withGroupByOperationName

      public ThrottledRequestsInput withGroupByOperationName(Boolean groupByOperationName)
      Set the groupByOperationName property: Group query result by Operation Name.
      Overrides:
      withGroupByOperationName in class LogAnalyticsInputBase
      Parameters:
      groupByOperationName - the groupByOperationName value to set.
      Returns:
      the LogAnalyticsInputBase object itself.
    • withGroupByResourceName

      public ThrottledRequestsInput withGroupByResourceName(Boolean groupByResourceName)
      Set the groupByResourceName property: Group query result by Resource Name.
      Overrides:
      withGroupByResourceName in class LogAnalyticsInputBase
      Parameters:
      groupByResourceName - the groupByResourceName value to set.
      Returns:
      the LogAnalyticsInputBase object itself.
    • withGroupByClientApplicationId

      public ThrottledRequestsInput withGroupByClientApplicationId(Boolean groupByClientApplicationId)
      Set the groupByClientApplicationId property: Group query result by Client Application ID.
      Overrides:
      withGroupByClientApplicationId in class LogAnalyticsInputBase
      Parameters:
      groupByClientApplicationId - the groupByClientApplicationId value to set.
      Returns:
      the LogAnalyticsInputBase object itself.
    • withGroupByUserAgent

      public ThrottledRequestsInput withGroupByUserAgent(Boolean groupByUserAgent)
      Set the groupByUserAgent property: Group query result by User Agent.
      Overrides:
      withGroupByUserAgent in class LogAnalyticsInputBase
      Parameters:
      groupByUserAgent - the groupByUserAgent value to set.
      Returns:
      the LogAnalyticsInputBase object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class LogAnalyticsInputBase
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<LogAnalyticsInputBase>
      Overrides:
      toJson in class LogAnalyticsInputBase
      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.