Condividi tramite


LogAnalyticsInputBase Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.LogAnalyticsInputBase

Implements

public class LogAnalyticsInputBase
implements JsonSerializable<LogAnalyticsInputBase>

Api input base class for LogAnalytics Api.

Constructor Summary

Constructor Description
LogAnalyticsInputBase()

Creates an instance of LogAnalyticsInputBase class.

Method Summary

Modifier and Type Method and Description
String blobContainerSasUri()

Get the blobContainerSasUri property: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to.

static LogAnalyticsInputBase fromJson(JsonReader jsonReader)

Reads an instance of LogAnalyticsInputBase from the JsonReader.

OffsetDateTime fromTime()

Get the fromTime property: From time of the query.

Boolean groupByClientApplicationId()

Get the groupByClientApplicationId property: Group query result by Client Application ID.

Boolean groupByOperationName()

Get the groupByOperationName property: Group query result by Operation Name.

Boolean groupByResourceName()

Get the groupByResourceName property: Group query result by Resource Name.

Boolean groupByThrottlePolicy()

Get the groupByThrottlePolicy property: Group query result by Throttle Policy applied.

Boolean groupByUserAgent()

Get the groupByUserAgent property: Group query result by User Agent.

JsonWriter toJson(JsonWriter jsonWriter)
OffsetDateTime toTime()

Get the toTime property: To time of the query.

void validate()

Validates the instance.

LogAnalyticsInputBase withBlobContainerSasUri(String blobContainerSasUri)

Set the blobContainerSasUri property: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to.

LogAnalyticsInputBase withFromTime(OffsetDateTime fromTime)

Set the fromTime property: From time of the query.

LogAnalyticsInputBase withGroupByClientApplicationId(Boolean groupByClientApplicationId)

Set the groupByClientApplicationId property: Group query result by Client Application ID.

LogAnalyticsInputBase withGroupByOperationName(Boolean groupByOperationName)

Set the groupByOperationName property: Group query result by Operation Name.

LogAnalyticsInputBase withGroupByResourceName(Boolean groupByResourceName)

Set the groupByResourceName property: Group query result by Resource Name.

LogAnalyticsInputBase withGroupByThrottlePolicy(Boolean groupByThrottlePolicy)

Set the groupByThrottlePolicy property: Group query result by Throttle Policy applied.

LogAnalyticsInputBase withGroupByUserAgent(Boolean groupByUserAgent)

Set the groupByUserAgent property: Group query result by User Agent.

LogAnalyticsInputBase withToTime(OffsetDateTime toTime)

Set the toTime property: To time of the query.

Methods inherited from java.lang.Object

Constructor Details

LogAnalyticsInputBase

public LogAnalyticsInputBase()

Creates an instance of LogAnalyticsInputBase class.

Method Details

blobContainerSasUri

public String blobContainerSasUri()

Get the blobContainerSasUri property: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to.

Returns:

the blobContainerSasUri value.

fromJson

public static LogAnalyticsInputBase fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

fromTime

public OffsetDateTime fromTime()

Get the fromTime property: From time of the query.

Returns:

the fromTime value.

groupByClientApplicationId

public Boolean groupByClientApplicationId()

Get the groupByClientApplicationId property: Group query result by Client Application ID.

Returns:

the groupByClientApplicationId value.

groupByOperationName

public Boolean groupByOperationName()

Get the groupByOperationName property: Group query result by Operation Name.

Returns:

the groupByOperationName value.

groupByResourceName

public Boolean groupByResourceName()

Get the groupByResourceName property: Group query result by Resource Name.

Returns:

the groupByResourceName value.

groupByThrottlePolicy

public Boolean groupByThrottlePolicy()

Get the groupByThrottlePolicy property: Group query result by Throttle Policy applied.

Returns:

the groupByThrottlePolicy value.

groupByUserAgent

public Boolean groupByUserAgent()

Get the groupByUserAgent property: Group query result by User Agent.

Returns:

the groupByUserAgent value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

toTime

public OffsetDateTime toTime()

Get the toTime property: To time of the query.

Returns:

the toTime value.

validate

public void validate()

Validates the instance.

withBlobContainerSasUri

public LogAnalyticsInputBase withBlobContainerSasUri(String blobContainerSasUri)

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.

withFromTime

public LogAnalyticsInputBase withFromTime(OffsetDateTime fromTime)

Set the fromTime property: From time of the query.

Parameters:

fromTime - the fromTime value to set.

Returns:

the LogAnalyticsInputBase object itself.

withGroupByClientApplicationId

public LogAnalyticsInputBase withGroupByClientApplicationId(Boolean groupByClientApplicationId)

Set the groupByClientApplicationId property: Group query result by Client Application ID.

Parameters:

groupByClientApplicationId - the groupByClientApplicationId value to set.

Returns:

the LogAnalyticsInputBase object itself.

withGroupByOperationName

public LogAnalyticsInputBase withGroupByOperationName(Boolean groupByOperationName)

Set the groupByOperationName property: Group query result by Operation Name.

Parameters:

groupByOperationName - the groupByOperationName value to set.

Returns:

the LogAnalyticsInputBase object itself.

withGroupByResourceName

public LogAnalyticsInputBase withGroupByResourceName(Boolean groupByResourceName)

Set the groupByResourceName property: Group query result by Resource Name.

Parameters:

groupByResourceName - the groupByResourceName value to set.

Returns:

the LogAnalyticsInputBase object itself.

withGroupByThrottlePolicy

public LogAnalyticsInputBase withGroupByThrottlePolicy(Boolean groupByThrottlePolicy)

Set the groupByThrottlePolicy property: Group query result by Throttle Policy applied.

Parameters:

groupByThrottlePolicy - the groupByThrottlePolicy value to set.

Returns:

the LogAnalyticsInputBase object itself.

withGroupByUserAgent

public LogAnalyticsInputBase withGroupByUserAgent(Boolean groupByUserAgent)

Set the groupByUserAgent property: Group query result by User Agent.

Parameters:

groupByUserAgent - the groupByUserAgent value to set.

Returns:

the LogAnalyticsInputBase object itself.

withToTime

public LogAnalyticsInputBase withToTime(OffsetDateTime toTime)

Set the toTime property: To time of the query.

Parameters:

toTime - the toTime value to set.

Returns:

the LogAnalyticsInputBase object itself.

Applies to