- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Full name: projects.locations.instances.legacy.legacyStreamDetectionAlerts
Legacy StreamDetectionAlerts continuously streams new detection alerts as they are discovered. A detection alert is a special kind of detection. A detection is considered a "detection alert" if the rule that detected it had alerting enabled at the time of detection.
HTTP request
POST https://chronicle.googleapis.com/v1alpha/{instance}/legacy:legacyStreamDetectionAlerts
Path parameters
Parameters | |
---|---|
instance |
Required. Chronicle instance this request is sent to. Format: projects/{project}/locations/{location}/instances/{instance} |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "continuation_time": string, "detection_batch_size": integer } |
Fields | |
---|---|
continuation_time |
Optional. A continuation timestamp, from a previous All detection alerts discovered after continuation_time will be streamed to the client. If the value is older than 1 week, the connection request will be rejected; other RPCs should be used to get older detections. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
detection_batch_size |
Optional. The maximum number of detections to return in each detection batch. Each batch may contain fewer than this value. If unspecified, at most 10000 detection alerts will be returned in each batch. The maximum value is 10000; values above 10000 will be coerced to 10000. |
Response body
LegacyStreamDetectionAlerts response message. This represents a single detection batch. Many detection batches will be sent over the stream response.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"detections": [
{
object ( |
Fields | |
---|---|
detections[] |
List of detection alerts that were discovered since the last detection batch was streamed. |
continuation_time |
A continuation timestamp that can be sent as A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
heartbeat |
A boolean indicating if the response is a "heartbeat" meant to keep the connection alive. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the instance
resource:
chronicle.legacies.legacyStreamDetectionAlerts
For more information, see the IAM documentation.