LogAnalyticsIdentifier Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. ResourceIdentifier - com.
azure. resourcemanager. security. models. LogAnalyticsIdentifier
- com.
- com.
public final class LogAnalyticsIdentifier
extends ResourceIdentifier
Represents a Log Analytics workspace scope identifier.
Constructor Summary
| Constructor | Description |
|---|---|
| LogAnalyticsIdentifier() |
Creates an instance of Log |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
agentId()
Get the agent |
|
static
Log |
fromJson(JsonReader jsonReader)
Reads an instance of Log |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Resource |
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 workspace |
| String |
workspaceResourceGroup()
Get the workspace |
| String |
workspaceSubscriptionId()
Get the workspace |
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:
fromJson
public static LogAnalyticsIdentifier fromJson(JsonReader jsonReader)
Reads an instance of LogAnalyticsIdentifier from the JsonReader.
Parameters:
Returns:
Throws:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
LogAnalyticsIdentifier.toJson(JsonWriter jsonWriter)Parameters:
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:
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:
workspaceResourceGroup
public String workspaceResourceGroup()
Get the workspaceResourceGroup property: The azure resource group for the LogAnalytics workspace storing this alert.
Returns:
workspaceSubscriptionId
public String workspaceSubscriptionId()
Get the workspaceSubscriptionId property: The azure subscription id for the LogAnalytics workspace storing this alert.
Returns: