Class LogAnalyticsInputBase
java.lang.Object
com.azure.resourcemanager.compute.models.LogAnalyticsInputBase
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LogAnalyticsInputBase>
- Direct Known Subclasses:
RequestRateByIntervalInput,ThrottledRequestsInput
public class LogAnalyticsInputBase
extends Object
implements com.azure.json.JsonSerializable<LogAnalyticsInputBase>
Api input base class for LogAnalytics Api.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the blobContainerSasUri property: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to.static LogAnalyticsInputBasefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LogAnalyticsInputBase from the JsonReader.fromTime()Get the fromTime property: From time of the query.Get the groupByClientApplicationId property: Group query result by Client Application ID.Get the groupByOperationName property: Group query result by Operation Name.Get the groupByResourceName property: Group query result by Resource Name.Get the groupByThrottlePolicy property: Group query result by Throttle Policy applied.Get the groupByUserAgent property: Group query result by User Agent.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) toTime()Get the toTime property: To time of the query.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 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
-
LogAnalyticsInputBase
public LogAnalyticsInputBase()Creates an instance of LogAnalyticsInputBase class.
-
-
Method Details
-
blobContainerSasUri
Get the blobContainerSasUri property: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to.- Returns:
- the blobContainerSasUri value.
-
withBlobContainerSasUri
Set the blobContainerSasUri property: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to.- Parameters:
blobContainerSasUri- the blobContainerSasUri value to set.- Returns:
- the LogAnalyticsInputBase object itself.
-
fromTime
Get the fromTime property: From time of the query.- Returns:
- the fromTime value.
-
withFromTime
Set the fromTime property: From time of the query.- Parameters:
fromTime- the fromTime value to set.- Returns:
- the LogAnalyticsInputBase object itself.
-
toTime
Get the toTime property: To time of the query.- Returns:
- the toTime value.
-
withToTime
Set the toTime property: To time of the query.- Parameters:
toTime- the toTime value to set.- Returns:
- the LogAnalyticsInputBase object itself.
-
groupByThrottlePolicy
Get the groupByThrottlePolicy property: Group query result by Throttle Policy applied.- Returns:
- the groupByThrottlePolicy value.
-
withGroupByThrottlePolicy
Set the groupByThrottlePolicy property: Group query result by Throttle Policy applied.- Parameters:
groupByThrottlePolicy- the groupByThrottlePolicy value to set.- Returns:
- the LogAnalyticsInputBase object itself.
-
groupByOperationName
Get the groupByOperationName property: Group query result by Operation Name.- Returns:
- the groupByOperationName value.
-
withGroupByOperationName
Set the groupByOperationName property: Group query result by Operation Name.- Parameters:
groupByOperationName- the groupByOperationName value to set.- Returns:
- the LogAnalyticsInputBase object itself.
-
groupByResourceName
Get the groupByResourceName property: Group query result by Resource Name.- Returns:
- the groupByResourceName value.
-
withGroupByResourceName
Set the groupByResourceName property: Group query result by Resource Name.- Parameters:
groupByResourceName- the groupByResourceName value to set.- Returns:
- the LogAnalyticsInputBase object itself.
-
groupByClientApplicationId
Get the groupByClientApplicationId property: Group query result by Client Application ID.- Returns:
- the groupByClientApplicationId value.
-
withGroupByClientApplicationId
Set the groupByClientApplicationId property: Group query result by Client Application ID.- Parameters:
groupByClientApplicationId- the groupByClientApplicationId value to set.- Returns:
- the LogAnalyticsInputBase object itself.
-
groupByUserAgent
Get the groupByUserAgent property: Group query result by User Agent.- Returns:
- the groupByUserAgent value.
-
withGroupByUserAgent
Set the groupByUserAgent property: Group query result by User Agent.- Parameters:
groupByUserAgent- the groupByUserAgent value to set.- Returns:
- the LogAnalyticsInputBase object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<LogAnalyticsInputBase>- Throws:
IOException
-
fromJson
public static LogAnalyticsInputBase fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of LogAnalyticsInputBase from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LogAnalyticsInputBase 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 LogAnalyticsInputBase.
-