AuditTaskState

Updated at:

Parameter

Type

Description

Example

object

The complete status of an audit task. The taskId, version, task, and enabled fields are always returned. The runtimeStatus and runtimeStatusCheckedAt fields are returned only when includeRuntimeStatus=true is specified in the request. The runtimeError field is returned only when runtimeStatus is set to error. This is a closed schema and does not accept additional fields.

taskId

string

The stable ID of the task, which must be equal to task.taskId.

custom_host_intrusion_audit

version

integer

The current execution configuration version of the task. The minimum value is 1. Starting or stopping the task does not increase this version.

7

enabled

boolean

The expected sharing toggle of the task.

runtimeStatus

string

The runtime status, which is returned only when includeRuntimeStatus=true is specified in the request. Valid values: pending, starting, stopping, running, stopped, missing, drifted, and error. The deleting value is not returned in list or get operations.

running

runtimeStatusCheckedAt

string

The time when the remote status was checked. This field is returned together with runtimeStatus.

1

runtimeError

object

The runtime error, which is returned only when runtimeStatus is set to error.

requestId

string

The ID of the status query request.

GUID

code

string

The error code, such as task_status_query_failed.

task_status_query_failed

message

string

The error message.

error

task

object

The specific JSON details of the task.

{ "ruleIds": ["custom_r1_reverse_shell"], "customFieldIds": [], "sources": [{ "project": "agentloop-audit-example", "logstore": "agent-event" }] }