- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- DashboardWidgetTypesEnum
- CaseDataStatus
- CustomWidgetObjectEnum
- CustomWidgetChartTypeEnum
- PlaybookStatusFilter
Full name: projects.locations.instances.legacySoarDashboard.legacyAddOrUpdateDashboardWidget
Adds a new dashboard widget or updates an existing one (determined by widget identifier). Widgets support various chart types (e.g., Pie, Bar, Table) and extensive filtering options based on cases, alerts, and playbooks.
HTTP request
POST https://chronicle.africa-south1.rep.googleapis.com/v1alpha/{instance}/legacySoarDashboard:legacyAddOrUpdateDashboardWidget Path parameters
| Parameters | |
|---|---|
instance |
Required. The name of the parent resource, which is the SecOps instance to get the workflow menu cards for. Format: projects/{project}/locations/{location}/instances/{instance} |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "id": string, "dashboardId": string, "title": string, "widgetType": enum ( |
| Fields | |
|---|---|
id |
Required. The ID of the widget. |
dashboardId |
Required. The ID of the dashboard that contains this widget. |
title |
Required. The title of the widget. |
widgetType |
Required. The type of the widget. |
widthSize |
Required. The width size of the widget. |
order |
Optional. The order of the widget in the dashboard. |
tagFilters[] |
Optional. The tag filters of the widget. |
productFilters[] |
Optional. The product filters of the widget. |
analystFilters[] |
Optional. The analyst filters of the widget. |
priorityFilter[] |
Optional. The priority filters of the widget. |
timeFilter |
Optional. The time range filter of the widget. |
environmentFilter[] |
Optional. The environment filters of the widget. |
entityTypeFilter[] |
Optional. The entity type filters of the widget. |
caseStatusesFilter[] |
Optional. The case status filters of the widget. |
alertNamesFilter[] |
Optional. The alert name filters of the widget. |
importanceStatusesFilter[] |
Optional. The importance status filters of the widget. |
incidentStatusesFilter[] |
Optional. The incident status filters of the widget. |
closeReasonsFilter[] |
Optional. The close reason filters of the widget. |
caseRootCauseFilter[] |
Optional. The case root cause filters of the widget. |
caseStageFilter[] |
Optional. The case stage filters of the widget. |
entityIdentifierFilter[] |
Optional. The entity identifier filters of the widget. |
networksFilter[] |
Optional. The networks filters of the widget. |
portsFilter[] |
Optional. The ports filters of the widget. |
categoryOutcomeFilter[] |
Optional. The category outcome filters of the widget. |
playbooksFilter[] |
Optional. The playbooks filters of the widget. |
subject |
Optional. The subject of the custom widget. |
chartType |
Optional. CustomWidgetChartTypeEnum is an enum that represents the custom widget chart type for a widget. |
resultsAmount |
Optional. The number of results to display in the widget. |
resultsOrder |
Optional. The order of the results in the widget. |
startStage |
Optional. The start stage filter of the widget. |
endStage |
Optional. The end stage filter of the widget. |
description |
Optional. The description of the widget. |
text |
Optional. The text to display in the widget. |
calculateField |
Optional. The calculate field of the widget. |
socAnalystsLoadFirstSocRoleId |
Optional. The first soc role id to filter soc analysts load. |
socAnalystsLoadSecondSocRoleId |
Optional. The second soc role id to filter soc analysts load. |
socAnalystsLoadManager |
Optional. The manager username to filter soc analysts load. |
playbookStatusFilter[] |
Optional. The playbook status filters of the widget. |
integrationsFilter[] |
Optional. The integrations filters of the widget. |
socAnalystsLoadManagerUsername |
Optional. The soc analysts load manager username to filter soc analysts load. |
creationTimeUnixTimeInMs |
Optional. The creation time of the dashboard. |
modificationTimeUnixTimeInMs |
Optional. The last modified time of the dashboard. |
dimensionA |
Optional. The first dimension of the custom widget. |
dimensionB |
Optional. The second dimension of the custom widget. |
Response body
AddOrUpdateLegacySoarDashboardWidgetResponse is the response message for the AddOrUpdateLegacySoarDashboardWidget RPC.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"payload": {
object ( |
| Fields | |
|---|---|
payload |
Required. The widget data model. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/chroniclehttps://www.googleapis.com/auth/chronicle.readonly
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the instance resource:
chronicle.legacySoarDashboards.update
For more information, see the IAM documentation.
DashboardWidgetTypesEnum
DashboardWidgetTypesEnum is an enum that represents the widget types for a dashboard.
| Enums | |
|---|---|
DASHBOARD_WIDGET_TYPE_UNSPECIFIED |
Unspecified widget type |
CUSTOM |
Custom type |
PLAYBOOK_MONITORING |
Playbook monitoring |
CaseDataStatus
CaseDataStatus is an enum that represents the case data status for a widget.
| Enums | |
|---|---|
CASE_DATA_STATUS_UNSPECIFIED |
Unspecified status |
OPENED |
Open case |
CLOSED |
Closed case |
ALL |
Any case. |
MERGED |
The case is merged. |
CREATION_PENDING |
Creation pending case |
CustomWidgetObjectEnum
CustomWidgetObjectEnum is an enum that represents the custom widget object for a widget.
| Enums | |
|---|---|
CUSTOM_WIDGET_OBJECT_UNSPECIFIED |
Unspecified custom widget object |
ANALYST |
Analyst Object |
TAG |
Tag Object |
PRIORITY |
Priority Object |
RULE_NAME |
Status Object |
ENVIRONMENT |
Environment Object |
PLAYBOOK |
Playbook Object |
PRODUCT |
Product Object |
IMPORTANCE |
Importance Object |
CASE_STATUS |
Case Status Object |
CASE_CLOSE_REASON |
Close Reason Object |
CASE_ROOT_CAUSE |
Case Root Cause Object |
ENTITY_TYPE |
Entity Type Object |
NETWORK |
Network Object |
STAGE |
Stage Object |
PORT |
Port Object |
CATEGORY_OUTCOME |
Category Outcome Object |
ENTITY_IDENTIFIER |
Entity Identifier Object |
SLA_STATUS |
SLA Status Object |
BLOCK |
Block Object |
SOC_ANALYSTS_LOAD |
SOC Analysts Load Object |
SOC_STATUS |
SOC Status Object |
PLAYBOOK_STATUS |
Playbook Status Object |
ALERTS_REDUCTION |
Alerts reduction |
OPEN_CASES_STAGE_AVRAGE_HANDLING_TIME |
Open cases stage average handling time |
AVERAGE_STAGE_TRANSITION_TIME |
Average stage transition time |
SLA_STAGE_MEETING_RATE |
SLA stage meeting rate |
SLA_STAGE_OVERDUE_RATE |
SLA stage overdue rate |
CASE_OPEN_AND_CLOSURE_TRENDS |
Case open and closure trends |
ALERT_TRENDS |
Alert trends |
CASE_CLOSURE_BY_ANALYST_TRENDS |
Case closure by analyst trends |
MOST_REPORTING_PRODUCTS_TRENDS |
Most reporting products trends |
CASE_TAGS_TRENDS |
Case tags trends |
PLAYBOOK_TRENDS |
Playbook trends |
TASK_CREATOR |
Task creator |
TASK_OWNER |
Task owner |
TASK_STATUS |
Task status |
PLAYBOOK_TOTAL_RUNS |
Playbook total runs |
PLAYBOOK_SUCCEEDED_RUNS |
Playbook succeeded runs |
PLAYBOOK_IN_PROGRESS_RUNS |
Playbook in progress runs |
PLAYBOOK_FAILED_RUNS |
Playbook failed runs |
PLAYBOOK_DECLINED_RUNS |
Playbook declined runs |
PLAYBOOK_CLOSED_CASES |
Playbook closed cases |
PLAYBOOK_AVG_RUNTIME |
Playbook avg runtime |
PLAYBOOK_RUNS_STATS |
Playbook runs stats |
PLAYBOOK_PENDING |
Playbook pending |
PLAYBOOK_PERCENTAGE_ALERTS_HANDLED_PER_ENVIRONMENT |
Playbook percentage alerts handled per environment |
PLAYBOOK_PERCENTAGE_ALERTS_CLOSED_PER_PLAYBOOK |
Playbook percentage alerts closed per playbook |
PLAYBOOK_PERCENTAGE_ERROR_RUN |
Playbook percentage error runs |
PLAYBOOK_PERCENTAGE_ALERTS_CLOSED_PER_ENVIRONMENT |
Playbook percentage alerts closed per environment |
CustomWidgetChartTypeEnum
The chart type of the custom widget. CustomWidgetChartTypeEnum is an enum that represents the custom widget chart type for a widget.
| Enums | |
|---|---|
PIE |
Pie chart |
HORIZENTAL_BARS |
Horizontal bars chart |
VERTICAL_BARS |
Vertical bars chart |
TABLE |
Table chart |
TIME_SERIES |
Time series chart |
TRENDS |
Trends chart |
SOCS_STATUS |
SOC status chart |
ROI |
ROI chart |
TEXT |
Text chart |
IMAGE |
Image chart |
NUMBER_STATUS |
Number status chart |
PlaybookStatusFilter
PlaybookStatusFilter is an enum that represents the playbook status filter for a widget.
| Enums | |
|---|---|
PLAYBOOK_STATUS_FILTER_UNSPECIFIED |
Unspecified playbook status filter |
FINISHED_SUCCESSFULLY |
Finished successfully |
ERROR |
Error |
WAITING_FOR_USER_ACTION |
Waiting for user action |
DECLINED |
Declined |
PLAYBOOK_CLOSED_ALERT |
Closed |
PENDING |
Pending |
TERMINATED |
Terminated |