Method: legacySoarDashboard.legacyAddOrUpdateDashboardWidget

Full name: projects.locations.instances.legacySoarDashboard.legacyAddOrUpdateDashboardWidget

Adds a new dashboard widget or update an existing one (determined by widget identifier).

HTTP request


Path parameters

Parameters
instance

string

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 (DashboardWidgetTypesEnum),
  "widthSize": enum (WidgetWidthSizeTypes),
  "order": integer,
  "tagFilters": [
    string
  ],
  "productFilters": [
    string
  ],
  "analystFilters": [
    string
  ],
  "priorityFilter": [
    enum (CasePriority)
  ],
  "timeFilter": enum (DashboardTimeRangeTypesEnums),
  "environmentFilter": [
    string
  ],
  "entityTypeFilter": [
    string
  ],
  "caseStatusesFilter": [
    enum (CaseDataStatus)
  ],
  "alertNamesFilter": [
    string
  ],
  "importanceStatusesFilter": [
    boolean
  ],
  "incidentStatusesFilter": [
    boolean
  ],
  "closeReasonsFilter": [
    enum (CloseReasonEnum)
  ],
  "caseRootCauseFilter": [
    string
  ],
  "caseStageFilter": [
    string
  ],
  "entityIdentifierFilter": [
    string
  ],
  "networksFilter": [
    string
  ],
  "portsFilter": [
    string
  ],
  "categoryOutcomeFilter": [
    string
  ],
  "playbooksFilter": [
    string
  ],
  "subject": enum (CustomWidgetSubjectEnum),
  "dimensionA": enum (CustomWidgetObjectEnum),
  "dimensionB": enum (CustomWidgetObjectEnum),
  "chartType": integer,
  "resultsAmount": integer,
  "resultsOrder": enum (ResultsOrder),
  "startStage": string,
  "endStage": string,
  "description": string,
  "text": string,
  "calculateField": enum (CalculateFieldEnum),
  "socAnalystsLoadFirstSocRoleId": string,
  "socAnalystsLoadSecondSocRoleId": string,
  "socAnalystsLoadManager": string,
  "playbookStatusFilter": [
    enum (PlaybookStatusFilter)
  ],
  "integrationsFilter": [
    string
  ],
  "socAnalystsLoadManagerUsername": string,
  "creationTimeUnixTimeInMs": string,
  "modificationTimeUnixTimeInMs": string
}
Fields
id

string (int64 format)

Required. The ID of the widget.

dashboardId

string (int64 format)

Required. The ID of the dashboard that contains this widget.

title

string

Required. The title of the widget.

widgetType

enum (DashboardWidgetTypesEnum)

Required. The type of the widget.

widthSize

enum (WidgetWidthSizeTypes)

Required. The width size of the widget.

order

integer

Optional. The order of the widget in the dashboard.

tagFilters[]

string

Optional. The tag filters of the widget.

productFilters[]

string

Optional. The product filters of the widget.

analystFilters[]

string

Optional. The analyst filters of the widget.

priorityFilter[]

enum (CasePriority)

Optional. The priority filters of the widget.

timeFilter

enum (DashboardTimeRangeTypesEnums)

Optional. The time range filter of the widget.

environmentFilter[]

string

Optional. The environment filters of the widget.

entityTypeFilter[]

string

Optional. The entity type filters of the widget.

caseStatusesFilter[]

enum (CaseDataStatus)

Optional. The case status filters of the widget.

alertNamesFilter[]

string

Optional. The alert name filters of the widget.

importanceStatusesFilter[]

boolean

Optional. The importance status filters of the widget.

incidentStatusesFilter[]

boolean

Optional. The incident status filters of the widget.

closeReasonsFilter[]

enum (CloseReasonEnum)

Optional. The close reason filters of the widget.

caseRootCauseFilter[]

string

Optional. The case root cause filters of the widget.

caseStageFilter[]

string

Optional. The case stage filters of the widget.

entityIdentifierFilter[]

string

Optional. The entity identifier filters of the widget.

networksFilter[]

string

Optional. The networks filters of the widget.

portsFilter[]

string

Optional. The ports filters of the widget.

categoryOutcomeFilter[]

string

Optional. The category outcome filters of the widget.

playbooksFilter[]

string

Optional. The playbooks filters of the widget.

subject

enum (CustomWidgetSubjectEnum)

Optional. The subject of the custom widget.

dimensionA

enum (CustomWidgetObjectEnum)

Optional. The first dimension of the custom widget.

dimensionB

enum (CustomWidgetObjectEnum)

Optional. The second dimension of the custom widget.

chartType

integer

Optional. The chart type of the custom widget. CustomWidgetChartTypeEnum is an enum that represents the custom widget chart type for a widget. enum CustomWidgetChartTypeEnum { // Pie chart PIE = 0; // Horizontal bars chart HORIZENTAL_BARS = 1; // Vertical bars chart VERTICAL_BARS = 2; // Table chart TABLE = 3; // Time series chart TIME_SERIES = 4; // Trends chart TRENDS = 5; // SOC status chart SOC_STATUS = 6; // ROI chart ROI = 7; // Text chart TEXT = 8; // Image chart IMAGE = 9; // Number status chart NUMBER_STATUS = 10; }

resultsAmount

integer

Optional. The number of results to display in the widget.

resultsOrder

enum (ResultsOrder)

Optional. The order of the results in the widget.

startStage

string

Optional. The start stage filter of the widget.

endStage

string

Optional. The end stage filter of the widget.

description

string

Optional. The description of the widget.

text

string

Optional. The text to display in the widget.

calculateField

enum (CalculateFieldEnum)

Optional. The calculate field of the widget.

socAnalystsLoadFirstSocRoleId

string (int64 format)

Optional. The first soc role id to filter soc analysts load.

socAnalystsLoadSecondSocRoleId

string (int64 format)

Optional. The second soc role id to filter soc analysts load.

socAnalystsLoadManager

string (int64 format)

Optional. The manager username to filter soc analysts load.

playbookStatusFilter[]

enum (PlaybookStatusFilter)

Optional. The playbook status filters of the widget.

integrationsFilter[]

string

Optional. The integrations filters of the widget.

socAnalystsLoadManagerUsername

string

Optional. The soc analysts load manager username to filter soc analysts load.

creationTimeUnixTimeInMs

string (int64 format)

Optional. The creation time of the dashboard.

modificationTimeUnixTimeInMs

string (int64 format)

Optional. The last modified time of the dashboard.

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 (LegacySoarDashboardWidgetDataModel)
  }
}
Fields
payload

object (LegacySoarDashboardWidgetDataModel)

Required. The widget data model.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

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

CustomWidgetObjectEnum

CustomWidgetObjectEnum is an enum that represents the custom widget object for a widget.

Enums
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
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

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