Skip to main content

Analytics Endpoints

Endpoints

Defense Score

GET /api/analytics/defense-score

Returns the aggregate defense score with breakdowns.

Query Parameters:

ParamTypeDescription
indexstringTarget ES index (optional)
techniquestringFilter by MITRE technique
hostnamestringFilter by hostname
dateFromstringStart date (ISO 8601)
dateTostringEnd date (ISO 8601)

Defense Score Trend

GET /api/analytics/defense-score/trend

Returns the defense score over time for trend visualization.

Host-Test Matrix

GET /api/analytics/host-test-matrix

Returns the host x test heatmap data for the matrix visualization.

Technique Distribution

GET /api/analytics/technique-distribution

Returns technique coverage breakdown.

Paginated Executions

GET /api/analytics/executions/paginated

Returns paginated execution results with advanced filtering.

Query Parameters:

ParamTypeDescription
pagenumberPage number (1-indexed)
pageSizenumberResults per page
sortstringSort field
orderstringasc or desc
techniquestringFilter by technique
hostnamestringFilter by hostname
exitCodenumberFilter by exit code

Configure Elasticsearch

POST /api/analytics/settings

Save Elasticsearch connection credentials.