- [Resource: InvestigationStep](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.SCHEMA_REPRESENTATION)
  - [ToolMetadata](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ToolMetadata)
    - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ToolMetadata.SCHEMA_REPRESENTATION)
  - [SourceMetadata](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.SourceMetadata)
    - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.SourceMetadata.SCHEMA_REPRESENTATION)
  - [SourceQuery](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.SourceQuery)
    - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.SourceQuery.SCHEMA_REPRESENTATION)
  - [ThreatIntelligence](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ThreatIntelligence)
    - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ThreatIntelligence.SCHEMA_REPRESENTATION)
  - [SourceEvent](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.SourceEvent)
    - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.SourceEvent.SCHEMA_REPRESENTATION)
  - [ProcessTree](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ProcessTree)
    - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ProcessTree.SCHEMA_REPRESENTATION)
  - [CommandLineAnalysis](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.CommandLineAnalysis)
    - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.CommandLineAnalysis.SCHEMA_REPRESENTATION)
  - [CaseMetadataContext](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.CaseMetadataContext)
    - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.CaseMetadataContext.SCHEMA_REPRESENTATION)
  - [ContextAgentAction](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ContextAgentAction)
    - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ContextAgentAction.SCHEMA_REPRESENTATION)
  - [ActionStatus](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ActionStatus)
  - [SourceType](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.SourceType)
  - [ContextAgentMetadata](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ContextAgentMetadata)
    - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ContextAgentMetadata.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#METHODS_SUMMARY)

## Resource: InvestigationStep

An InvestigationStep is the smallest unit of an Investigation timeline. Each step describes a discrete action (e.g. query, result, or threat intel lookup).

| JSON representation |
|---|
| ``` { "name": string, "analysisSummary": string, "description": string, "executionInterval": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Interval`) }, "toolMetadata": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ToolMetadata`) } ], "sourceDataCitations": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/Citation`) } ], "sourceMetadata": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.SourceMetadata`) }, "contextAgentMetadata": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ContextAgentMetadata`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The full resource name of the Step. Format: projects/{project}/locations/{location}/instances/{instance}/investigations/{investigation}/investigationSteps/{investigationStep} |
| `analysisSummary` | `string` Output only. A short summary of the analysis done as a part of this step. E.g. "File hash is malicious." |
| `description` | `string` Output only. A detailed explanation of the step. |
| `executionInterval` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Interval`)`` Output only. Start and end times of the step execution. |
| `toolMetadata[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ToolMetadata`)`` Output only. Tools used during this step, e.g. "VirusTotal" |
| `sourceDataCitations[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/Citation`)`` Output only. Citations that contributed to the step data |
| `sourceMetadata` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.SourceMetadata`)`` Output only. The metadata of the source used in the investigation step. |
| `contextAgentMetadata` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ContextAgentMetadata`)`` Output only. Context agent metadata, populated when the agent fails. |

### ToolMetadata

ToolMetadata contains metadata about a tool used during an InvestigationStep.

| JSON representation |
|---|
| ``` { "displayName": string, "resultUri": string, "description": string, "totalResultCount": integer, "resultLimitReached": boolean } ``` |

| Fields ||
|---|---|
| `displayName` | `string` Output only. The display name of the tool, e.g. "VirusTotal" |
| `resultUri` | `string` The link to the tool's result page. |
| `description` | `string` The description of the tool. |
| `totalResultCount` | `integer` Output only. The total number of results returned by the tool. |
| `resultLimitReached` | `boolean` Output only. Whether the result limit was reached for the tool. |

### SourceMetadata

SourceMetadata contains metadata about the source of data used during an InvestigationStep.

| JSON representation |
|---|
| ``` { "sourceType": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.SourceType`), // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "query": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.SourceQuery`) }, "threatIntelligence": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ThreatIntelligence`) }, "event": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.SourceEvent`) }, "processTree": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ProcessTree`) }, "commandLineAnalysis": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.CommandLineAnalysis`) }, "caseMetadataContext": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.CaseMetadataContext`) }, "contextAgentAction": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ContextAgentAction`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `sourceType` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.SourceType`)`` Output only. The type of the source. This is used to determine which of the source_details fields is populated. |
| The details of the source. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `query` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.SourceQuery`)`` Output only. The query used in the source. |
| `threatIntelligence` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ThreatIntelligence`)`` Output only. The threat intelligence used in the source. |
| `event` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.SourceEvent`)`` The event used in the source. Deprecated: Use don't use event . |
| `processTree` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ProcessTree`)`` Output only. The process tree used in the source. |
| `commandLineAnalysis` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.CommandLineAnalysis`)`` Output only. The command line analysis used in the source when Gemini uses command line tool to analyze the alert It'll have a markdown format analysis result. |
| `caseMetadataContext` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.CaseMetadataContext`)`` Output only. The case metadata used in the source. |
| `contextAgentAction` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ContextAgentAction`)`` Output only. The context agent action executed in the source. |
| End of mutually exclusive fields. ||

### SourceQuery

Query as a source of investigation step.

| JSON representation |
|---|
| ``` { "queryCode": string, "timeRange": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Interval`) }, "uniqueResultsCount": integer, "totalResultsCount": integer, "operation": string } ``` |

| Fields ||
|---|---|
| `queryCode` | `string` The code used to execute the query. |
| `timeRange` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Interval`)`` The time range that was used in the query execution. |
| `uniqueResultsCount` | `integer` Output only. The number of unique results returned by the query execution. |
| `totalResultsCount` | `integer` Output only. The number of total results returned by the query execution. |
| `operation` | `string` Output only. The name of the operation resource representing the UDM Search operation. This can be passed to `StreamSearchOperation` to fetch stored results or stream the results of an in-progress operation. Format: projects/{project}/locations/{location}/instances/{instance}/operations/{operation} |

### ThreatIntelligence

Threat Intelligence as a source of investigation step.

| JSON representation |
|---|
| ``` { "evidence": string } ``` |

| Fields ||
|---|---|
| `evidence` | `string` Output only. The evidence received in the step execution when using Threat Intelligence. This is a raw string that can be displayed to the user. |

### SourceEvent

Event data as a source of investigation step.

| JSON representation |
|---|
| ``` { "id": [ string ] } ``` |

| Fields ||
|---|---|
| `id[]` | `string` IDs of the events. |

### ProcessTree

Process Tree as a source of investigation step.

| JSON representation |
|---|
| ``` { "processTree": string } ``` |

| Fields ||
|---|---|
| `processTree` | `string` Output only. ProcessTree is the serialized Depth First Search (DFS) representation of a stored process tree. This is a raw string that can be displayed to the user. Parsing is required to reconstruct the hierarchical process structure. |

### CommandLineAnalysis

Command Line Analysis as a source of investigation step.

| JSON representation |
|---|
| ``` { "analysisResult": string } ``` |

| Fields ||
|---|---|
| `analysisResult` | `string` Output only. The command line analysis result in markdown format. |

### CaseMetadataContext

Case Metadata as a source of investigation step.

| JSON representation |
|---|
| ``` { "displayName": string, "id": string, "priority": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Priority`), "tags": [ string ] } ``` |

| Fields ||
|---|---|
| `displayName` | `string` Output only. The display name of the case. |
| `id` | `string` Output only. Id of the case in SOAR product. |
| `priority` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Priority`)`` Output only. The case priority of the case metadata. |
| `tags[]` | `string` Output only. Unordered list. The case tags of the case metadata. |

### ContextAgentAction

Context agent action as a source of investigation step.

| JSON representation |
|---|
| ``` { "actionStatus": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ActionStatus`), "integrationAction": string, "resultsFound": boolean } ``` |

| Fields ||
|---|---|
| `actionStatus` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps#InvestigationStep.ActionStatus`)`` Output only. The status of the context agent action. |
| `integrationAction` | `string` Output only. The name of the context agent action under the integration. |
| `resultsFound` | `boolean` Output only. Whether the context agent action returned results. |

### ActionStatus

The status of the context agent action.

| Enums ||
|---|---|
| `ACTION_STATUS_UNSPECIFIED` | The action status is unspecified. |
| `ACTION_STATUS_SUCCESS` | The action status is success. |
| `ACTION_STATUS_FAILURE` | The action status is failure. |

### SourceType

The enum to identify the source used in the investigation step. This is used to determine which of the source_details fields is populated.

| Enums ||
|---|---|
| `SOURCE_TYPE_UNSPECIFIED` | The source type is unspecified. |
| `SOURCE_TYPE_EVENT` | The source type is event. |
| `SOURCE_TYPE_SEARCH` | The source type is search. |
| `SOURCE_TYPE_THREAT_INTEL` | The source type is threat intelligence. |
| `SOURCE_TYPE_PROCESS_TREE` | The source type is a process tree. |
| `SOURCE_TYPE_COMMAND_LINE_ANALYSIS` | The source type is command line analysis. when Gemini uses command line tool to analyze the alert |
| `SOURCE_TYPE_CASE_METADATA` | The source type is case metadata context. |
| `SOURCE_TYPE_ALERT_FILTER` | An alert filter in the investigation timeline. |
| `SOURCE_TYPE_ALERT_SEARCH` | The source type is alert search. |
| `SOURCE_TYPE_CASE_RELATED_ALERTS` | The source type is related alerts. |
| `SOURCE_TYPE_CONTEXT_AGENT` | The source type is context agent. |

### ContextAgentMetadata

Context agent metadata, populated when the agent fails.

| JSON representation |
|---|
| ``` { "errorStatus": string, "errorCode": integer, "errorMessage": string, "errorTraceback": string } ``` |

| Fields ||
|---|---|
| `errorStatus` | `string` Output only. The error status returned by the Context Agent. |
| `errorCode` | `integer` Output only. The error code returned by the Context Agent. |
| `errorMessage` | `string` Output only. The error message returned by the Context Agent. |
| `errorTraceback` | `string` Output only. The error traceback returned by the Context Agent. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps/get` | GetInvestigationStep is used to retrieve an investigation step. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations.investigationSteps/list` | ListInvestigationSteps is used to retrieve existing investigation steps for a given investigation. |