package
0.0.0-20240701005233-324ef76e1091
Repository: https://github.com/rocketchat/statuscentral.git
Documentation: pkg.go.dev
# Functions
IncidentCreate creates the incident, ensuring the database is correct @Summary Creates a new incident @ID incident-create @Tags incident @Accept json @Param region body models.Incident true "Incident object" @Produce json @Success 200 {object} models.Incident @Router /v1/incidents [post].
IncidentDelete removes the service, ensuring the database is correct @Summary Deletes an incidents @ID incidents-delete @Tags incident @Produce json @Success 200 {object} []models.Incident @Router /v1/incidents/{id} [delete].
IncidentDetailHandler is the html controller for displaying the incident details.
IncidentGetOne gets one incident by the provided id @Summary Gets one incident @ID incidents-getOne @Tags incident @Produce json @Success 200 {object} models.Incident @Router /v1/incidents/{id} [get].
IncidentsGetAll gets all of the incidents, latest depends on the "?all=true" query @Summary Gets list of incidents @ID incidents-getall @Tags incident @Produce json @Success 200 {object} []models.Incident @Router /v1/incidents [get].
No description provided by the author
IncidentUpdateCreate creates an update for an incident @Summary Creates a new incident update @ID incident-create-update @Tags incident @Accept json @Param region body models.IncidentUpdate true "Incident update object" @Param id path integer true "Incident id" @Produce json @Success 200 {object} models.IncidentUpdate @Router /v1/incidents/{id}/updates [post].
IncidentUpdateDelete deletes an update for an incident @Summary Deletes one incident update @ID incident-update-delete @Tags incident-update @Produce json @Success 200 {object} models.IncidentUpdate @Router /v1/incidents/{id}/updates/{updateId} [delete].
IncidentUpdateGetOne gets an update for an incident @Summary Gets one incident update @ID incident-update-getone @Tags incident-update @Produce json @Success 200 {object} models.IncidentUpdate @Router /v1/incidents/{id}/updates/{updateId} [get].
IncidentUpdatesGetAll gets updates for an incident @Summary Gets incident updates @ID incident-update-getall @Tags incident-update @Produce json @Success 200 {object} []models.IncidentUpdate @Router /v1/incidents/{id}/updates [get].
IndexHandler is the html controller for sending the html dashboard.
LivenessCheckHandler checks to see whether the database responds to a ping.
RegionCreate creates a new region @Summary Creates a new region @ID region-create @Tags region @Accept json @Param region body models.Region true "Region object" @Produce json @Success 200 {object} models.Region @Router /v1/regions [post].
RegionDelete deletes a given region @Summary Deletes a given region @ID region-delete @Tags region @Accept json @Param id path integer true "Region id" @Produce json @Success 204 @Router /v1/regions/{id} [delete].
ScheduledMaintenanceCreate creates a scheduled maintenance, ensuring the database is correct @Summary Creates a new scheduled maintenance @ID scheduled-maintenance-create @Tags scheduled-maintenance @Accept json @Param region body models.ScheduledMaintenance true "Scheduled Maintenance object" @Produce json @Success 200 {object} models.ScheduledMaintenance @Router /v1/scheduled-maintenance [post].
ScheduledMaintenanceDelete removes the scheduled maintenance, ensuring the database is correct @Summary Deletes scheduled maintenance @ID scheduled-maintenance-delete @Tags scheduled-maintenance @Produce json @Success 200 {object} []models.ScheduleMaintenance @Router /v1/scheduled-maintenance/{id} [delete].
ScheduledMaintenanceDetailHandler is the html controller for displaying the scheduled maintenance details.
ScheduledMaintenanceGetAll gets all of the scheduled maintenance, latest depends on the "?all=true" query @Summary Gets list of incidents @ID scheduled-maintenance-getall @Tags scheduled-maintenance @Produce json @Success 200 {object} []models.ScheduledMaintenance @Router /v1/scheduled-maintenance [get].
ScheduledMaintenanceGetOne gets one scheduledMaintenance by the provided id @Summary Gets one scheduled maintenance @ID scheduled-maintenance-getOne @Tags scheduled-maintenance @Produce json @Success 200 {object} models.ScheduledMaintenance @Router /v1/scheduled-maintenance/{id} [get].
ScheduledMaintenancePatch patches a scheduled maintenance, ensuring the database is correct @Summary Patches a new scheduled maintenance @ID scheduled-maintenance-patch @Tags scheduled-maintenance @Accept json @Param region body models.ScheduledMaintenance true "Scheduled Maintenance object" @Produce json @Success 200 {object} models.ScheduledMaintenance @Router /v1/scheduled-maintenance [patch].
No description provided by the author
ScheduledMaintenanceUpdateCreate creates an update for a scheduled maintenance @Summary Creates a scheduled maintenance update @ID scheduled-maintenance-create-update @Tags scheduled-maintenance @Accept json @Param region body models.IncidentUpdate true "Incident update object" @Param id path integer true "Incident id" @Produce json @Success 200 {object} models.IncidentUpdate @Router /v1/scheduled-maintenance/{id}/updates [post].
ScheduledMaintenanceUpdateDelete deletes an update for a scheduled maintenance @Summary Deletes one scheduled maintenance update @ID scheduled-maintenance-update-delete @Tags scheduled-maintenance-update @Produce json @Success 200 {object} models.IncidentUpdate @Router /v1/scheduled-maintenance/{id}/updates/{updateId} [delete].
ScheduledMaintenanceUpdateGetOne gets an update for a scheduledMaintenance @Summary Gets one scheduled Maintenance update @ID scheduled-maintenance-update-getone @Tags scheduled-maintenance-update @Produce json @Success 200 {object} models.IncidentUpdate @Router /v1/scheduled-maintenance/{id}/updates/{updateId} [get].
ScheduledMaintenanceUpdatesGetAll gets updates for a scheduled maintenance @Summary Gets scheduled maintenance updates @ID scheduled-maintenance-update-getall @Tags scheduled-maintenance-update @Produce json @Success 200 {object} []models.IncidentUpdate @Router /v1/scheduled-maintenance/{id}/updates [get].
ServicesCreate creates a service @Summary Creates a service @ID services-create @Tags services @Accept json @Param service body models.Service true "Service object" @Produce json @Success 200 {object} models.Service @Router /v1/services [post].
ServicesGet gets all of the services @Summary Gets list of services @ID services-getall @Tags services @Produce json @Success 200 {object} []models.Service @Router /v1/services [get].
ServicesGetOne gets one of the services @Summary Gets one of services @ID services-getone @Tags services @Produce json @Success 200 {object} models.Service @Router /v1/services/{id} [get].
ServicesGet gets all of the services @Summary Gets list of services @ID services-get @Tags services @Accept json @Param service body models.Service true "Service object" @Produce json @Success 200 {object} models.Service @Router /v1/services/{id} [post].
SnapshotHandler returns snapshot of database.