- [Resource: RemediationPlan](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans#RemediationPlan)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans#RemediationPlan.SCHEMA_REPRESENTATION)
- [RemediationPlanState](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans#RemediationPlanState)
- [RemediationPlanTriggerType](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans#RemediationPlanTriggerType)
- [RemediationPlanExecution](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans#RemediationPlanExecution)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans#RemediationPlanExecution.SCHEMA_REPRESENTATION)
- [RemediationPlanExecutionState](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans#RemediationPlanExecutionState)
- [RemediationPlanExecutionSummaryState](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans#RemediationPlanExecutionSummaryState)
- [Methods](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans#METHODS_SUMMARY)

## Resource: RemediationPlan

Represents an AI-driven Remediation Plan for a specific alert or case.

| JSON representation |
|---|
| ``` { "name": string, "alertName": string, "caseId": integer, "alertId": string, "siemAlertId": string, "agentSessionId": string, "state": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans#RemediationPlanState`), "triggerType": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans#RemediationPlanTriggerType`), "statusDetails": string, "agentClassifiedUseCase": string, "planData": { object }, "planMetadata": { object }, "createTime": string, "updateTime": string, "actions": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans.remediationActions#RemediationAction`) } ], "latestExecution": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans#RemediationPlanExecution`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. Resource name of the remediation plan. |
| `alertName` | `string` Optional. The name of the alert. |
| `caseId` | `integer (https://developers.google.com/discovery/v1/type-format format)` Optional. The Case identifier. |
| `alertId` | `string` Optional. The Alert identifier. |
| `siemAlertId` | `string` Optional. The SIEM Alert identifier. |
| `agentSessionId` | `string` Optional. The context id of the REMa session. |
| `state` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans#RemediationPlanState`)`` Output only. Current plan status. |
| `triggerType` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans#RemediationPlanTriggerType`)`` Optional. How the plan was triggered. |
| `statusDetails` | `string` Optional. Detailed status information (e.g., error logs). |
| `agentClassifiedUseCase` | `string` Optional. The use cases classified by the agent (e.g. "Phishing", "Malware"). |
| `planData` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` Optional. Complete plan details presented in the UI (contains 'planning_summary', 'error', etc.). |
| `planMetadata` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` Optional. Metadata about the plan, such as token usage. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Creation time. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Modification time. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `actions[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans.remediationActions#RemediationAction`)`` Optional. The actions defined/suggested for this remediation plan. |
| `latestExecution` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans#RemediationPlanExecution`)`` Output only. Reference to the most recent execution run for this remediation plan. |

## RemediationPlanState

The state Of the Renediation plan.

| Enums ||
|---|---|
| `REMEDIATION_PLAN_STATE_UNSPECIFIED` | Unspecified status. |
| `REMEDIATION_PLAN_STATE_INITIALIZED` | Set when initializing the remediation planning process. |
| `REMEDIATION_PLAN_STATE_REQUESTED` | Set before calling the REMa planning service in the Python service. |
| `REMEDIATION_PLAN_STATE_SUGGESTED` | Plan successfully generated and suggested by REMa. |
| `REMEDIATION_PLAN_STATE_ERROR` | Execution or generation failed with an error. |
| `REMEDIATION_PLAN_STATE_APPROVED` | Approved by SOC analyst / user. |
| `REMEDIATION_PLAN_STATE_DECLINED` | Declined by SOC analyst / user. |

## RemediationPlanTriggerType

The trigger type of the Remediation plan.

| Enums ||
|---|---|
| `REMEDIATION_PLAN_TRIGGER_TYPE_UNSPECIFIED` | Unspecified trigger type. |
| `REMEDIATION_PLAN_TRIGGER_TYPE_AUTOMATIC` | Process was automatically kicked off by a detection, alert, or system event. |
| `REMEDIATION_PLAN_TRIGGER_TYPE_MANUAL` | Process was initialized as a step within a defined Playbook. |

## RemediationPlanExecution

Represents a single execution instance of a Remediation Plan.

| JSON representation |
|---|
| ``` { "remediationPlan": string, "state": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans#RemediationPlanExecutionState`), "summaryStatus": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans#RemediationPlanExecutionSummaryState`), "actionsCount": integer, "pendingActionCount": integer, "successActionsCount": integer, "failureActionsCount": integer, "summary": string, "additionalData": { object }, "metadata": { object }, "createTime": string, "updateTime": string } ``` |

| Fields ||
|---|---|
| `remediationPlan` | `string` Required. Foreign key referring to the associated RemediationPlan. |
| `state` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans#RemediationPlanExecutionState`)`` Output only. Execution status of the overall plan. |
| `summaryStatus` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans#RemediationPlanExecutionSummaryState`)`` Output only. Summary status of the plan. |
| `actionsCount` | `integer` Output only. Performance counters for actions. |
| `pendingActionCount` | `integer` Output only. Number of actions to execute. |
| `successActionsCount` | `integer` Output only. Successful actions count. |
| `failureActionsCount` | `integer` Output only. Failed actions count. |
| `summary` | `string` Output only. Narrative execution summary. |
| `additionalData` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` Optional. Additional unstructured data. |
| `metadata` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` Optional. Metadata for the execution. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Creation time. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Update time. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |

## RemediationPlanExecutionState

Models the 'RemediationPlanExecutions' database table.

| Enums ||
|---|---|
| `REMEDIATION_PLAN_EXECUTION_STATE_UNSPECIFIED` | Unspecified status. |
| `REMEDIATION_PLAN_EXECUTION_STATE_IN_PROGRESS` | plan execution started |
| `REMEDIATION_PLAN_EXECUTION_STATE_EXECUTED` | All actions in the plan executed. see action's status for more information |
| `REMEDIATION_PLAN_EXECUTION_STATE_REJECTED` | The execution request was rejected (e.g., status declined). |
| `REMEDIATION_PLAN_EXECUTION_STATE_ERROR` | Plan execution failed with an error. |

## RemediationPlanExecutionSummaryState

Summary state of the Remediation Plan Execution.

| Enums ||
|---|---|
| `REMEDIATION_PLAN_EXECUTION_SUMMARY_STATE_UNSPECIFIED` | Unspecified standard status. |
| `REMEDIATION_PLAN_EXECUTION_SUMMARY_STATE_IN_PROGRESS` | plan execution started |
| `REMEDIATION_PLAN_EXECUTION_SUMMARY_STATE_EXECUTED` | All actions in the plan executed. see action's status for more information |
| `REMEDIATION_PLAN_EXECUTION_SUMMARY_STATE_REJECTED` | The execution request was rejected (e.g., status declined). |
| `REMEDIATION_PLAN_EXECUTION_SUMMARY_STATE_ERROR` | Plan execution failed with an error. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans/execute` | Executes a suggested Remediation Plan. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans/generate` | Triggers Remediation agent and saves its output as a Remediation Plan. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans/get` | Retrieves a specific self-contained Remediation Plan. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans/list` | Lists Remediation Plans with optional filtering. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remediationPlans/patch` | Updates a Remediation Plan. |