Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddScore ¶
AddScore is a POST route for submitting a completed scorecheck, only meant for interaction from an agent.
@Summary Submit a completed score check
@Description Accepts a completed score check result from an agent and forwards it to all configured sinks. The timestamp field is assigned by the server on receipt and must not be included in the request body.
@Tags agent
@Accept json
@Produce json
@Param score body types.Score true "Completed score check"
@Success 200 {object} object
@Failure 400 {object} object
@Failure 500 {object} object
@Router /agent/completed-score [post]
func GetCheck ¶
GetCheck is a route that returns the next check to run. This is meant for interaction from the agents.
@Summary Get next check to run
@Description Returns the next fully-rendered service check for the agent to execute. Rotates round-robin across all services and teams. While checks are paused this returns a no-op assignment instead (`no_op: true`) with no check details, which tells the agent to idle until its next poll; the queue is not advanced, so no check is lost to the pause.
@Tags agent
@Produce json
@Success 200 {object} types.Service
@Failure 400 {object} object
@Failure 500 {object} object
@Router /agent/new-check [get]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.