Pular para o conteúdo principal
GET
/
audit
List Audit Events
curl --request GET \
  --url http://{host}:{port}/{basePath}/audit \
  --header 'Authorization: <api-key>'
{
  "apiVersion": "v1",
  "kind": "AuditLogList",
  "metadata": {
    "totalCount": 156,
    "page": 1,
    "pageSize": 50
  },
  "items": [
    {
      "id": "audit-20260319-001",
      "timestamp": "2026-03-19T15:35:00Z",
      "action": "approval.approve",
      "user": "carlos.silva@empresa.com",
      "role": "operator",
      "resource": "APR-20260319-001",
      "resourceType": "Approval",
      "namespace": "production",
      "details": {
        "incident": "INC-20260319-001",
        "comment": "Aprovado — análise de IA confirma necessidade de aumento de memória"
      },
      "sourceIP": "10.0.1.50",
      "userAgent": "Mozilla/5.0"
    },
    {
      "id": "audit-20260319-002",
      "timestamp": "2026-03-19T15:30:00Z",
      "action": "incident.acknowledge",
      "user": "carlos.silva@empresa.com",
      "role": "operator",
      "resource": "INC-20260319-001",
      "resourceType": "Incident",
      "namespace": "production",
      "details": {
        "message": "Investigando aumento de memória no payment-service"
      },
      "sourceIP": "10.0.1.50",
      "userAgent": "Mozilla/5.0"
    },
    {
      "id": "audit-20260319-003",
      "timestamp": "2026-03-19T15:21:05Z",
      "action": "remediation.execute",
      "user": "system",
      "role": "system",
      "resource": "INC-20260319-001",
      "resourceType": "Remediation",
      "namespace": "production",
      "details": {
        "runbook": "runbook-oomkill-standard",
        "step": "diagnose-memory-usage",
        "result": "success"
      },
      "sourceIP": "internal",
      "userAgent": "chatcli-operator/1.0"
    }
  ]
}
action
string
Filtrar por tipo de ação: incident.acknowledge, incident.snooze, approval.approve, approval.reject, runbook.create, runbook.update, runbook.delete, remediation.execute, config.update
user
string
Filtrar por usuário que executou a ação
resource
string
Filtrar por recurso afetado (ex: INC-20260319-001)
since
string
Filtrar eventos a partir de uma data ISO 8601
until
string
Filtrar eventos até uma data ISO 8601
page
integer
padrão:"1"
Número da página
pageSize
integer
padrão:"50"
Itens por página (máximo 200)
{
  "apiVersion": "v1",
  "kind": "AuditLogList",
  "metadata": {
    "totalCount": 156,
    "page": 1,
    "pageSize": 50
  },
  "items": [
    {
      "id": "audit-20260319-001",
      "timestamp": "2026-03-19T15:35:00Z",
      "action": "approval.approve",
      "user": "carlos.silva@empresa.com",
      "role": "operator",
      "resource": "APR-20260319-001",
      "resourceType": "Approval",
      "namespace": "production",
      "details": {
        "incident": "INC-20260319-001",
        "comment": "Aprovado — análise de IA confirma necessidade de aumento de memória"
      },
      "sourceIP": "10.0.1.50",
      "userAgent": "Mozilla/5.0"
    },
    {
      "id": "audit-20260319-002",
      "timestamp": "2026-03-19T15:30:00Z",
      "action": "incident.acknowledge",
      "user": "carlos.silva@empresa.com",
      "role": "operator",
      "resource": "INC-20260319-001",
      "resourceType": "Incident",
      "namespace": "production",
      "details": {
        "message": "Investigando aumento de memória no payment-service"
      },
      "sourceIP": "10.0.1.50",
      "userAgent": "Mozilla/5.0"
    },
    {
      "id": "audit-20260319-003",
      "timestamp": "2026-03-19T15:21:05Z",
      "action": "remediation.execute",
      "user": "system",
      "role": "system",
      "resource": "INC-20260319-001",
      "resourceType": "Remediation",
      "namespace": "production",
      "details": {
        "runbook": "runbook-oomkill-standard",
        "step": "diagnose-memory-usage",
        "result": "success"
      },
      "sourceIP": "internal",
      "userAgent": "chatcli-operator/1.0"
    }
  ]
}

Autorizações

Authorization
string
header
obrigatório

Bearer token issued by the operator. Format: Authorization: Bearer <token>.

Parâmetros de consulta

action
string

Filter by action type.

Exemplo:

"approval.approve"

user
string

Filter by user.

resource
string

Filter by affected resource.

since
string<date-time>

ISO 8601 timestamp lower bound.

until
string<date-time>

ISO 8601 timestamp upper bound.

page
integer
padrão:1

Page number.

pageSize
integer
padrão:50

Items per page (max 200).

Intervalo obrigatório: x <= 200

Resposta

Paginated audit log

apiVersion
string
Exemplo:

"v1"

kind
string
Exemplo:

"AuditLogList"

metadata
object
items
object[]