- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- AlertListOptions
- EntityIndicator
- AlertFieldAggregationOptions
- AlertsFeaturePreference
- AlertList
- Try it!
Full name: projects.locations.instances.legacy.legacyFetchAlertsView
Legacy streaming endpoint for getting alerts (and in some cases, non-alerting detections) along with aggregated fields that match the query.
HTTP request
GET https://chronicle.googleapis.com/v1alpha/{instance}/legacy:legacyFetchAlertsView
Path parameters
Parameters | |
---|---|
instance |
Required. The Google Security Operations instance. Format: projects/{project}/locations/{location}/instances/{instance} |
Query parameters
Parameters | |
---|---|
baseline |
The baseline query to search for. The baseline query is used for this request and its results are cached for subseqent requests, so that supplying additional filters in the snapshot_query will not require re-running the baseline query. This uses a syntax similar to UDM search, with the following supported fields: - detection.rule_set - detection.rule_set_display_name - detection.rule_id - detection.rule_name - detection.rule_author - detection.alert_state - case_name - feedback_summary.verdict - feedback_summary.reputation - feedback_summary.status - feedback_summary.priority - feedback_summary.severity_display - feedback_summary.risk_score |
snapshot |
Required. The snapshot query to search for. This uses a syntax similar to UDM search, with the following supported fields: - detection.rule_set - detection.rule_set_display_name - detection.rule_id - detection.rule_name - detection.rule_author - detection.alert_state - case_name - feedback_summary.verdict - feedback_summary.reputation - feedback_summary.status - feedback_summary.priority - feedback_summary.severity_display - feedback_summary.risk_score |
time |
Required. The time range to search for [Inclusive, Exclusive). |
alert |
Parameters for the Alerts that will be streamed back. |
field |
Parameters for the Aggregated Alert fields that will be streamed back. |
enable |
If enabled, subsequent requests for the same time range and baseline query will try to leverage our cache to serve the response with filters applied in the snapshot query. |
plaqueTraceLevel |
Optional. Deprecated. An internal trace level. |
maxShardCount |
Optional. Deprecated. An internal optimization value. |
maxBaselineResults |
Optional. Deprecated. Maximum number of alerts that will be processed for a single request. |
Request body
The request body must be empty.
Response body
Depending on the parameters in FetchAlertsViewRequest, stream back some combination of |alerts| and |field_aggregations|.
NEXT TAG: 12;
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "progress": number, "too_many_alerts": boolean, "complete": boolean, "valid_baseline_query": boolean, "baseline_alerts_count": integer, "valid_snapshot_query": boolean, "query_validation_errors": [ { object ( |
Fields | |
---|---|
progress |
Progress of the query represented as a double between 0 and 1. |
too_ |
If true, there are too many alerts matched and some have been omitted from both the "Too many alerts" depends on the server-side limit of 1,000,000 matched alerts to serve as a base for the field aggregations, rather than on the |
complete |
Streaming for this response is done. There will be no additional updates. |
valid_ |
Whether the request baseline_query is a valid structured query. If not, |
baseline_ |
The number of alerts matched by the baseline query. |
valid_ |
Whether the request baseline and snapshot queries are valid. If not, |
query_ |
Parse error for the baseline_query and/or the snapshot_query. |
runtime_ |
Runtime errors. |
filtered_ |
The number of alerts in the snapshot that match the snapshot_query. This is <= |
alerts |
The list of the first N matched alerts. The value of N is determined by the AlertListOptions.max_returned_alerts field in the request. |
field_ |
List of fields with aggregated values. |
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.legacyFetchAlertsView
For more information, see the IAM documentation.
AlertListOptions
JSON representation |
---|
{
"max_returned_alerts": integer,
"entity_indicator": {
object ( |
Fields | |
---|---|
max_ |
|
entity_ |
|
EntityIndicator
JSON representation |
---|
{ "indicator_namespace": string, // Union field |
Fields | |
---|---|
indicator_ |
|
Union field
|
|
hostname |
|
asset_ |
|
mac |
|
product_ |
|
user_ |
|
email |
|
employee_ |
|
windows_ |
|
project_object_id |
|
product_ |
|
raw_ |
|
process_ |
|
full_ |
|
parent_ |
|
hash_ |
|
hash_ |
|
hash_ |
|
file_ |
|
destination_ |
|
domain_ |
|
resource_project_object_id |
|
resource_ |
|
AlertFieldAggregationOptions
JSON representation |
---|
{ "max_values_per_field": integer } |
Fields | |
---|---|
max_ |
|
AlertsFeaturePreference
A generic option to enable or disable a feature. NEXT TAG = 3;
Enums | |
---|---|
ALERTS_FEATURE_PREFERENCE_UNSPECIFIED |
An unspecified preference. Behavior will depend on the server defaults. |
ALERTS_FEATURE_PREFERENCE_ENABLED |
Enable the feature. |
ALERTS_FEATURE_PREFERENCE_DISABLED |
Disable the feature. |
AlertList
JSON representation |
---|
{
"alerts": [
{
object ( |
Fields | |
---|---|
alerts[] |
|