LogAnalyticsIdentifier Class

public final class LogAnalyticsIdentifier
extends ResourceIdentifier

Represents a Log Analytics workspace scope identifier.

Constructor Summary

Constructor Description
LogAnalyticsIdentifier()

Creates an instance of LogAnalyticsIdentifier class.

Method Summary

Modifier and Type Method and Description
String agentId()

Get the agentId property: (optional) The LogAnalytics agent id reporting the event that this alert is based on.

static LogAnalyticsIdentifier fromJson(JsonReader jsonReader)

Reads an instance of LogAnalyticsIdentifier from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
ResourceIdentifierType type()

Get the type property: There can be multiple identifiers of different type per alert, this field specify the identifier type.

void validate()

Validates the instance.

String workspaceId()

Get the workspaceId property: The LogAnalytics workspace id that stores this alert.

String workspaceResourceGroup()

Get the workspaceResourceGroup property: The azure resource group for the LogAnalytics workspace storing this alert.

String workspaceSubscriptionId()

Get the workspaceSubscriptionId property: The azure subscription id for the LogAnalytics workspace storing this alert.

Methods inherited from ResourceIdentifier

Methods inherited from java.lang.Object

Constructor Details

LogAnalyticsIdentifier

public LogAnalyticsIdentifier()

Creates an instance of LogAnalyticsIdentifier class.

Method Details

agentId

public String agentId()

Get the agentId property: (optional) The LogAnalytics agent id reporting the event that this alert is based on.

Returns:

the agentId value.

fromJson

public static LogAnalyticsIdentifier fromJson(JsonReader jsonReader)

Reads an instance of LogAnalyticsIdentifier from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LogAnalyticsIdentifier 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 LogAnalyticsIdentifier.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

LogAnalyticsIdentifier.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ResourceIdentifierType type()

Get the type property: There can be multiple identifiers of different type per alert, this field specify the identifier type.

Overrides:

LogAnalyticsIdentifier.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

LogAnalyticsIdentifier.validate()

workspaceId

public String workspaceId()

Get the workspaceId property: The LogAnalytics workspace id that stores this alert.

Returns:

the workspaceId value.

workspaceResourceGroup

public String workspaceResourceGroup()

Get the workspaceResourceGroup property: The azure resource group for the LogAnalytics workspace storing this alert.

Returns:

the workspaceResourceGroup value.

workspaceSubscriptionId

public String workspaceSubscriptionId()

Get the workspaceSubscriptionId property: The azure subscription id for the LogAnalytics workspace storing this alert.

Returns:

the workspaceSubscriptionId value.

Applies to