vw_alerts
Creates, updates, deletes, gets or lists a vw_alerts
resource.
Overview
Name | vw_alerts |
Type | View |
Id | azure.authorization.vw_alerts |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
id as id,
name as name,
type as type,
JSON_EXTRACT(properties, '$.scope') as "scope",
JSON_EXTRACT(properties, '$.isActive') as "is_active",
JSON_EXTRACT(properties, '$.incidentCount') as "incident_count",
JSON_EXTRACT(properties, '$.lastModifiedDateTime') as "last_modified_date_time",
JSON_EXTRACT(properties, '$.lastScannedDateTime') as "last_scanned_date_time",
JSON_EXTRACT(properties, '$.alertDefinition') as "alert_definition",
JSON_EXTRACT(properties, '$.alertIncidents') as "alert_incidents",
JSON_EXTRACT(properties, '$.alertConfiguration') as "alert_configuration",
scope,
alertId
FROM azure.authorization.alerts
WHERE scope = 'replace-me';
SELECT
id as id,
name as name,
type as type,
json_extract_path_text(properties, '$.scope') as "scope",
json_extract_path_text(properties, '$.isActive') as "is_active",
json_extract_path_text(properties, '$.incidentCount') as "incident_count",
json_extract_path_text(properties, '$.lastModifiedDateTime') as "last_modified_date_time",
json_extract_path_text(properties, '$.lastScannedDateTime') as "last_scanned_date_time",
json_extract_path_text(properties, '$.alertDefinition') as "alert_definition",
json_extract_path_text(properties, '$.alertIncidents') as "alert_incidents",
json_extract_path_text(properties, '$.alertConfiguration') as "alert_configuration",
scope,
alertId
FROM azure.authorization.alerts
WHERE scope = 'replace-me';