> For the complete documentation index, see [llms.txt](https://docs.dropzone.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dropzone.ai/api/metrics.md). Agents can also search and read this documentation through its [MCP server](https://docs.dropzone.ai/~gitbook/mcp).

# Metrics

## GET /app/api/v1/metrics/mttx

> System-level MTTX metrics (MTTC, MTTD, MTTP, MTTI) with overall totals and per alert-source breakdowns.\
> \<br>\<br>\
> Uses the same investigation filter query parameters as \<code>GET /app/api/v1/investigation\</code>.<br>

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"MttxResponse":{"type":"object","description":"System-level MTTX: MTTC, MTTD, MTTP, MTTI with totals and by_source.","properties":{"mttc":{"$ref":"#/components/schemas/MttxContainer"},"mttd":{"$ref":"#/components/schemas/MttxContainer"},"mttp":{"$ref":"#/components/schemas/MttxContainer"},"mtti":{"$ref":"#/components/schemas/MttxContainer"}},"required":["mttc","mttd","mtti","mttp"]},"MttxContainer":{"type":"object","description":"Aggregate stats plus per alert-source breakdown.","properties":{"total":{"$ref":"#/components/schemas/MttxBreakdownStats"},"by_source":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/MttxBreakdownStats"},"description":"Keyed by alert direct source label"}},"required":["by_source","total"]},"MttxBreakdownStats":{"type":"object","description":"Mean, median, p95 for one MTTX bucket (total or per source).","properties":{"item_count":{"type":"integer","nullable":true},"mean":{"type":"number","format":"double"},"median":{"type":"number","format":"double"},"p95":{"type":"number","format":"double"}},"required":["mean","median","p95"]}}},"paths":{"/app/api/v1/metrics/mttx":{"get":{"operationId":"metrics_mttx_retrieve","description":"System-level MTTX metrics (MTTC, MTTD, MTTP, MTTI) with overall totals and per alert-source breakdowns.\n<br><br>\nUses the same investigation filter query parameters as <code>GET /app/api/v1/investigation</code>.\n","parameters":[{"in":"query","name":"alert_create_from","schema":{"type":"string"},"description":"Filter by alert creation time (from). ISO 8601 format"},{"in":"query","name":"alert_create_until","schema":{"type":"string"},"description":"Filter by alert creation time (until). ISO 8601 format"},{"in":"query","name":"alert_start_from","schema":{"type":"string"},"description":"Filter by alert start time (from). ISO 8601 format (e.g., 2024-01-01 or 2024-01-01T00:00:00Z)"},{"in":"query","name":"alert_start_until","schema":{"type":"string"},"description":"Filter by alert start time (until). ISO 8601 format"},{"in":"query","name":"alert_tenants","schema":{"type":"array","items":{"type":"string"}},"description":"Filter by alert tenant name (can be repeated)"},{"in":"query","name":"alert_types","schema":{"type":"array","items":{"type":"string"}},"description":"Filter by alert type/handler key (can be repeated)"},{"in":"query","name":"assignees","schema":{"type":"array","items":{"type":"integer"}},"description":"Filter by investigation feedback assignee user ID (can be repeated)"},{"in":"query","name":"attack_surfaces","schema":{"type":"array","items":{"type":"string","enum":["Active Directory","Cloud Infrastructure","Endpoint","Identity","Kubernetes","Network","Phishing","SaaS"]}},"description":"Filter by attack surface (can be repeated)"},{"in":"query","name":"containment_action_statuses","schema":{"type":"array","items":{"type":"string","enum":["disabled","failed","ready","running","success","undo_failed","undoing"]}},"description":"Filter by latest containment action run status per investigation (can be repeated)"},{"in":"query","name":"direct_source_labels","schema":{"type":"array","items":{"type":"string"}},"description":"Filter by alert source label (can be repeated)"},{"in":"query","name":"feedback_updated_from","schema":{"type":"string"},"description":"Filter by feedback last updated time (from). ISO 8601 format"},{"in":"query","name":"feedback_updated_until","schema":{"type":"string"},"description":"Filter by feedback last updated time (until). ISO 8601 format"},{"in":"query","name":"insight_tag_names","schema":{"type":"array","items":{"type":"string"}},"description":"Filter by insight tag name (can be repeated)"},{"in":"query","name":"interview_statuses","schema":{"type":"array","items":{"type":"string","enum":["active","approved","canceled","declined","failed","finished","finished_with_referral","pending","timed_out"]}},"description":"Filter by interview status (can be repeated)"},{"in":"query","name":"inv_complete_from","schema":{"type":"string"},"description":"Filter by investigation completion time (from). ISO 8601 format"},{"in":"query","name":"inv_complete_until","schema":{"type":"string"},"description":"Filter by investigation completion time (until). ISO 8601 format"},{"in":"query","name":"mitre_tactics","schema":{"type":"array","items":{"type":"string","enum":["Collection","Command and Control","Credential Access","Defense Evasion","Discovery","Execution","Exfiltration","Impact","Initial Access","Lateral Movement","Persistence","Privilege Escalation"]}},"description":"Filter by MITRE ATT&CK tactic (can be repeated)"},{"in":"query","name":"outcomes","schema":{"type":"array","items":{"type":"string","enum":["COMPLETED_BREACHED_CONFIRMED","COMPLETED_BREACHED_SUSPICIOUS","COMPLETED_FALSE_ALERT","IGNORED","INCOMPLETE"]}},"description":"Filter by investigation outcome/conclusion (can be repeated)"},{"in":"query","name":"priorities","schema":{"type":"array","items":{"type":"string","enum":["informational","notable","urgent"]}},"description":"Filter by investigation priority (can be repeated)"},{"in":"query","name":"priority_statuses","schema":{"type":"array","items":{"type":"string"}},"description":"Filter by priority status (can be repeated)"},{"in":"query","name":"search","schema":{"type":"string"},"description":"Free-text search across investigation fields"},{"in":"query","name":"stopped_reasons","schema":{"type":"array","items":{"type":"string","enum":["CANCEL_MANUAL","CANCEL_THRESHOLD","ERROR"]}},"description":"Filter by stopped reason for error/canceled investigations (can be repeated)"},{"in":"query","name":"tenant_id","schema":{"type":"string"},"description":"Filter by tenant ID"},{"in":"query","name":"tenant_integration_key","schema":{"type":"string"},"description":"Filter by tenant integration key"},{"in":"query","name":"ticket_id","schema":{"type":"string"},"description":"Exact, case-insensitive match on the vendor alert/ticket ID. Matches either the alert's origin ticket ID or its display label; surrounding whitespace is ignored. Unlike `search`, substrings do not match. May return multiple investigations (e.g. reinvestigations)."},{"in":"query","name":"user_statuses","schema":{"type":"array","items":{"type":"string","enum":["dz_closed","dz_in_progress","dz_new","dz_on_hold"]}},"description":"Filter by user feedback status (can be repeated)"}],"tags":["metrics"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MttxResponse"}}},"description":"MTTX aggregate metrics"},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"error_msg":{"type":"string"},"required_permission":{"type":"object","description":"RBAC permission the caller lacks. Present when the permission check denies the request.","properties":{"resource":{"type":"string"},"action":{"type":"string"}}}}}}},"description":"Access denied"},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System not ready for requests"}}}}}}
```

## GET /app/api/v1/metrics/mttx/investigations

> Per-investigation MTTD, MTTP, and MTTI in seconds (float), keyed by investigation id.\
> \<br>\<br>\
> Uses the same investigation filter query parameters as \<code>GET /app/api/v1/investigation\</code>.<br>

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"MttxPerInvestigationResponse":{"type":"object","description":"Per-investigation MTTD, MTTP, MTTI in seconds (float), keyed by investigation id.","properties":{"mttd":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Investigation id (string key) to seconds"},"mttp":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Investigation id (string key) to seconds"},"mtti":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Investigation id (string key) to seconds"}},"required":["mttd","mtti","mttp"]}}},"paths":{"/app/api/v1/metrics/mttx/investigations":{"get":{"operationId":"metrics_mttx_investigations_retrieve","description":"Per-investigation MTTD, MTTP, and MTTI in seconds (float), keyed by investigation id.\n<br><br>\nUses the same investigation filter query parameters as <code>GET /app/api/v1/investigation</code>.\n","parameters":[{"in":"query","name":"alert_create_from","schema":{"type":"string"},"description":"Filter by alert creation time (from). ISO 8601 format"},{"in":"query","name":"alert_create_until","schema":{"type":"string"},"description":"Filter by alert creation time (until). ISO 8601 format"},{"in":"query","name":"alert_start_from","schema":{"type":"string"},"description":"Filter by alert start time (from). ISO 8601 format (e.g., 2024-01-01 or 2024-01-01T00:00:00Z)"},{"in":"query","name":"alert_start_until","schema":{"type":"string"},"description":"Filter by alert start time (until). ISO 8601 format"},{"in":"query","name":"alert_tenants","schema":{"type":"array","items":{"type":"string"}},"description":"Filter by alert tenant name (can be repeated)"},{"in":"query","name":"alert_types","schema":{"type":"array","items":{"type":"string"}},"description":"Filter by alert type/handler key (can be repeated)"},{"in":"query","name":"assignees","schema":{"type":"array","items":{"type":"integer"}},"description":"Filter by investigation feedback assignee user ID (can be repeated)"},{"in":"query","name":"attack_surfaces","schema":{"type":"array","items":{"type":"string","enum":["Active Directory","Cloud Infrastructure","Endpoint","Identity","Kubernetes","Network","Phishing","SaaS"]}},"description":"Filter by attack surface (can be repeated)"},{"in":"query","name":"containment_action_statuses","schema":{"type":"array","items":{"type":"string","enum":["disabled","failed","ready","running","success","undo_failed","undoing"]}},"description":"Filter by latest containment action run status per investigation (can be repeated)"},{"in":"query","name":"direct_source_labels","schema":{"type":"array","items":{"type":"string"}},"description":"Filter by alert source label (can be repeated)"},{"in":"query","name":"feedback_updated_from","schema":{"type":"string"},"description":"Filter by feedback last updated time (from). ISO 8601 format"},{"in":"query","name":"feedback_updated_until","schema":{"type":"string"},"description":"Filter by feedback last updated time (until). ISO 8601 format"},{"in":"query","name":"insight_tag_names","schema":{"type":"array","items":{"type":"string"}},"description":"Filter by insight tag name (can be repeated)"},{"in":"query","name":"interview_statuses","schema":{"type":"array","items":{"type":"string","enum":["active","approved","canceled","declined","failed","finished","finished_with_referral","pending","timed_out"]}},"description":"Filter by interview status (can be repeated)"},{"in":"query","name":"inv_complete_from","schema":{"type":"string"},"description":"Filter by investigation completion time (from). ISO 8601 format"},{"in":"query","name":"inv_complete_until","schema":{"type":"string"},"description":"Filter by investigation completion time (until). ISO 8601 format"},{"in":"query","name":"mitre_tactics","schema":{"type":"array","items":{"type":"string","enum":["Collection","Command and Control","Credential Access","Defense Evasion","Discovery","Execution","Exfiltration","Impact","Initial Access","Lateral Movement","Persistence","Privilege Escalation"]}},"description":"Filter by MITRE ATT&CK tactic (can be repeated)"},{"in":"query","name":"outcomes","schema":{"type":"array","items":{"type":"string","enum":["COMPLETED_BREACHED_CONFIRMED","COMPLETED_BREACHED_SUSPICIOUS","COMPLETED_FALSE_ALERT","IGNORED","INCOMPLETE"]}},"description":"Filter by investigation outcome/conclusion (can be repeated)"},{"in":"query","name":"priorities","schema":{"type":"array","items":{"type":"string","enum":["informational","notable","urgent"]}},"description":"Filter by investigation priority (can be repeated)"},{"in":"query","name":"priority_statuses","schema":{"type":"array","items":{"type":"string"}},"description":"Filter by priority status (can be repeated)"},{"in":"query","name":"search","schema":{"type":"string"},"description":"Free-text search across investigation fields"},{"in":"query","name":"stopped_reasons","schema":{"type":"array","items":{"type":"string","enum":["CANCEL_MANUAL","CANCEL_THRESHOLD","ERROR"]}},"description":"Filter by stopped reason for error/canceled investigations (can be repeated)"},{"in":"query","name":"tenant_id","schema":{"type":"string"},"description":"Filter by tenant ID"},{"in":"query","name":"tenant_integration_key","schema":{"type":"string"},"description":"Filter by tenant integration key"},{"in":"query","name":"ticket_id","schema":{"type":"string"},"description":"Exact, case-insensitive match on the vendor alert/ticket ID. Matches either the alert's origin ticket ID or its display label; surrounding whitespace is ignored. Unlike `search`, substrings do not match. May return multiple investigations (e.g. reinvestigations)."},{"in":"query","name":"user_statuses","schema":{"type":"array","items":{"type":"string","enum":["dz_closed","dz_in_progress","dz_new","dz_on_hold"]}},"description":"Filter by user feedback status (can be repeated)"}],"tags":["metrics"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MttxPerInvestigationResponse"}}},"description":"Per-investigation MTTX (seconds)"},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"error_msg":{"type":"string"},"required_permission":{"type":"object","description":"RBAC permission the caller lacks. Present when the permission check denies the request.","properties":{"resource":{"type":"string"},"action":{"type":"string"}}}}}}},"description":"Access denied"},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System not ready for requests"}}}}}}
```
