Skip to main content

Module api

Module api 

Source
Expand description

Management HTTP API for runtime configuration and monitoring.

Provides REST endpoints for:

  • Health status (GET /health)
  • Prometheus metrics (GET /metrics)
  • Configuration reload (POST /reload)
  • Site management (GET/POST/PUT/DELETE /sites)
  • WAF statistics (GET /waf/stats)
  • Site-specific configuration (PUT /sites/:hostname/waf, etc.)

Structs§

ApiHandler
API endpoint handlers.
ApiHandlerBuilder
Builder for ApiHandler.
ApiResponse
API response wrapper.
ApiRoute
API route definition.
BlocklistEntryResponse
Blocklist entry response from Signal Horizon.
CrawlerStatsResponse
Crawler detection stats response.
EndpointPayloadSummary
Per-endpoint payload summary.
EvaluateResult
Result of a dry-run WAF evaluation.
HorizonStatsResponse
Signal Horizon stats response.
PayloadAnomalyResponse
Payload anomaly response.
PayloadSummaryResponse
Payload profiling summary response.
ReloadResultResponse
Response for reload operation.
SignalListResponse
Signal list response.
SiteInfo
Information about a single site.
SiteListResponse
Response for site list.
StatsResponse
Response for stats endpoint.
TrendsAnomalyResponse
Trends anomaly response.
TrendsSummaryResponse
Trends summary response.
WafStatsResponse
Response for WAF stats endpoint.

Enums§

HttpMethod
HTTP method for API routing.

Constants§

API_ROUTES
Available API routes.