Security Deck Alerts API, gRPC: AlertService.Update
Update alert.
gRPC request
rpc Update (UpdateAlertRequest) returns (operation.Operation)
UpdateAlertRequest
{
"alert_id": "string",
"update_mask": "google.protobuf.FieldMask",
"status": "Status",
"classification": "Classification",
// Includes only one of the fields `assignee_subject_id`
"assignee_subject_id": "string"
// end of the list of possible fields
}
|
Field |
Description |
|
alert_id |
string Required field. Alert ID to update. The maximum string length in characters is 50. |
|
update_mask |
Required field. Field mask that specifies which fields of the alert to update. |
|
status |
enum Status Alert status.
|
|
classification |
enum Classification Alert classification.
|
|
assignee_subject_id |
string Assign alert to a subject with specified ID. Includes only one of the fields Alert assignee. |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"alert_id": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"id": "string",
"sink_id": "string",
"title": "string",
"description": "string",
"recommendations": "string",
"severity": "Severity",
"status": "Status",
"category": {
"name": "string"
},
"classification": "Classification",
"created_by": {
// Includes only one of the fields `subject`, `sensor`
"subject": {
"id": "string"
},
"sensor": {
"id": "string"
}
// end of the list of possible fields
},
"assignee": {
// Includes only one of the fields `subject`
"subject": {
"id": "string"
}
// end of the list of possible fields
},
"create_time": "google.protobuf.Timestamp",
"update_time": "google.protobuf.Timestamp",
"details": "google.protobuf.Struct"
}
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
|
Field |
Description |
|
id |
string ID of the operation. |
|
description |
string Description of the operation. 0-256 characters long. |
|
created_at |
Creation timestamp. |
|
created_by |
string ID of the user or service account who initiated the operation. |
|
modified_at |
The time when the Operation resource was last modified. |
|
done |
bool If the value is |
|
metadata |
Service-specific metadata associated with the operation. |
|
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
|
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |
UpdateAlertMetadata
|
Field |
Description |
|
alert_id |
string Alert ID. |
Alert
Security Deck alert.
|
Field |
Description |
|
id |
string ID of the alert. |
|
sink_id |
string ID of the alert sink alert is in. |
|
title |
string Alert title. Plain text in requested language. |
|
description |
string Alert description. Yandex Flavored Markdown in requested language. |
|
recommendations |
string Alert recommendations. Yandex Flavored Markdown in requested language. |
|
severity |
enum Severity Alert severity.
|
|
status |
enum Status Alert status.
|
|
category |
Alert category (aka threat type). |
|
classification |
enum Classification Alert classification.
|
|
created_by |
Who created the alert. |
|
assignee |
Who the alert is assigned to. |
|
create_time |
Alert creation time. |
|
update_time |
Alert modification time. |
|
details |
Alert technical details. |
Category
Alert category.
|
Field |
Description |
|
name |
string Alert category name. |
Actor
Information about an entity that performed an action (created an alert, added a comment, etc.).
|
Field |
Description |
|
subject |
Action was performed by a specific Cloud subject. Includes only one of the fields |
|
sensor |
Action was performed by (or on behalf of) an alert provider system (aka sensor) Includes only one of the fields |
Subject
Cloud subject.
|
Field |
Description |
|
id |
string Subject ID. |
Sensor
Alert provider system (aka sensor).
|
Field |
Description |
|
id |
string Sensor ID. |
Assignee
Information about an entity that alert was assigned to.
|
Field |
Description |
|
subject |
Alert is assigned to as specific Cloud subject. Includes only one of the fields |
Subject
Cloud subject.
|
Field |
Description |
|
id |
string Subject ID. |