AutomationActionWorkspace Class

public final class AutomationActionWorkspace
extends AutomationAction

The Log Analytics Workspace to which event data will be exported. Security alerts data will reside in the 'SecurityAlert' table and the assessments data will reside in the 'SecurityRecommendation' table (under the 'Security'/'SecurityCenterFree' solutions). Note that in order to view the data in the workspace, the Security Center Log Analytics free/standard solution needs to be enabled on that workspace. To learn more about Microsoft Defender for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore.

Constructor Summary

Constructor Description
AutomationActionWorkspace()

Creates an instance of AutomationActionWorkspace class.

Method Summary

Modifier and Type Method and Description
ActionType actionType()

Get the actionType property: The type of the action that will be triggered by the Automation.

static AutomationActionWorkspace fromJson(JsonReader jsonReader)

Reads an instance of AutomationActionWorkspace from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AutomationActionWorkspace withWorkspaceResourceId(String workspaceResourceId)

Set the workspaceResourceId property: The fully qualified Log Analytics Workspace Azure Resource ID.

String workspaceResourceId()

Get the workspaceResourceId property: The fully qualified Log Analytics Workspace Azure Resource ID.

Methods inherited from AutomationAction

Methods inherited from java.lang.Object

Constructor Details

AutomationActionWorkspace

public AutomationActionWorkspace()

Creates an instance of AutomationActionWorkspace class.

Method Details

actionType

public ActionType actionType()

Get the actionType property: The type of the action that will be triggered by the Automation.

Overrides:

AutomationActionWorkspace.actionType()

Returns:

the actionType value.

fromJson

public static AutomationActionWorkspace fromJson(JsonReader jsonReader)

Reads an instance of AutomationActionWorkspace from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AutomationActionWorkspace.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

AutomationActionWorkspace.validate()

withWorkspaceResourceId

public AutomationActionWorkspace withWorkspaceResourceId(String workspaceResourceId)

Set the workspaceResourceId property: The fully qualified Log Analytics Workspace Azure Resource ID.

Parameters:

workspaceResourceId - the workspaceResourceId value to set.

Returns:

the AutomationActionWorkspace object itself.

workspaceResourceId

public String workspaceResourceId()

Get the workspaceResourceId property: The fully qualified Log Analytics Workspace Azure Resource ID.

Returns:

the workspaceResourceId value.

Applies to