vw_tasks
Creates, updates, deletes, gets or lists a vw_tasks
resource.
Overview
Name | vw_tasks |
Type | View |
Id | azure.defender.vw_tasks |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
JSON_EXTRACT(properties, '$.startedAt') as "started_at",
JSON_EXTRACT(properties, '$.completedAt') as "completed_at",
JSON_EXTRACT(properties, '$.lastPolledAt') as "last_polled_at",
JSON_EXTRACT(properties, '$.state') as "state",
JSON_EXTRACT(properties, '$.phase') as "phase",
JSON_EXTRACT(properties, '$.reason') as "reason",
JSON_EXTRACT(properties, '$.metadata') as "metadata",
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
subscriptionId,
resourceGroupName,
workspaceName,
taskId
FROM azure.defender.tasks
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND workspaceName = 'replace-me' AND taskId = 'replace-me';
SELECT
json_extract_path_text(properties, '$.startedAt') as "started_at",
json_extract_path_text(properties, '$.completedAt') as "completed_at",
json_extract_path_text(properties, '$.lastPolledAt') as "last_polled_at",
json_extract_path_text(properties, '$.state') as "state",
json_extract_path_text(properties, '$.phase') as "phase",
json_extract_path_text(properties, '$.reason') as "reason",
json_extract_path_text(properties, '$.metadata') as "metadata",
json_extract_path_text(properties, '$.provisioningState') as "provisioning_state",
subscriptionId,
resourceGroupName,
workspaceName,
taskId
FROM azure.defender.tasks
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND workspaceName = 'replace-me' AND taskId = 'replace-me';