Compartir a través de


LogAnalyticsDestination Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.LogAnalyticsDestination

Implements

public final class LogAnalyticsDestination
implements JsonSerializable<LogAnalyticsDestination>

Log Analytics destination.

Constructor Summary

Constructor Description
LogAnalyticsDestination()

Creates an instance of LogAnalyticsDestination class.

Method Summary

Modifier and Type Method and Description
static LogAnalyticsDestination fromJson(JsonReader jsonReader)

Reads an instance of LogAnalyticsDestination from the JsonReader.

String name()

Get the name property: A friendly name for the destination.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LogAnalyticsDestination withName(String name)

Set the name property: A friendly name for the destination.

LogAnalyticsDestination withWorkspaceResourceId(String workspaceResourceId)

Set the workspaceResourceId property: The resource ID of the Log Analytics workspace.

String workspaceId()

Get the workspaceId property: The Customer ID of the Log Analytics workspace.

String workspaceResourceId()

Get the workspaceResourceId property: The resource ID of the Log Analytics workspace.

Methods inherited from java.lang.Object

Constructor Details

LogAnalyticsDestination

public LogAnalyticsDestination()

Creates an instance of LogAnalyticsDestination class.

Method Details

fromJson

public static LogAnalyticsDestination fromJson(JsonReader jsonReader)

Reads an instance of LogAnalyticsDestination from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LogAnalyticsDestination if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the LogAnalyticsDestination.

name

public String name()

Get the name property: A friendly name for the destination. This name should be unique across all destinations (regardless of type) within the data collection rule.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public LogAnalyticsDestination withName(String name)

Set the name property: A friendly name for the destination. This name should be unique across all destinations (regardless of type) within the data collection rule.

Parameters:

name - the name value to set.

Returns:

the LogAnalyticsDestination object itself.

withWorkspaceResourceId

public LogAnalyticsDestination withWorkspaceResourceId(String workspaceResourceId)

Set the workspaceResourceId property: The resource ID of the Log Analytics workspace.

Parameters:

workspaceResourceId - the workspaceResourceId value to set.

Returns:

the LogAnalyticsDestination object itself.

workspaceId

public String workspaceId()

Get the workspaceId property: The Customer ID of the Log Analytics workspace.

Returns:

the workspaceId value.

workspaceResourceId

public String workspaceResourceId()

Get the workspaceResourceId property: The resource ID of the Log Analytics workspace.

Returns:

the workspaceResourceId value.

Applies to