Documentation ¶
Index ¶
- func CreateHandler(api *api.API, containerType container.ContainerType) func(c *gin.Context)
- func DeleteHandler(api *api.API) func(c *gin.Context)
- func GetHandler(api *api.API) func(c *gin.Context)
- func MGetHandler(api *api.API) func(c *gin.Context)
- func UpdateHandler(api *api.API, containerType container.ContainerType) func(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHandler ¶
Creates a metric reference key. Responses:
- 400 If invalid body.
- 400 If json fields are invalid.
- 404 If metric not found.
- 400 If refkey already exists.
- 200 If succeeded.
func DeleteHandler ¶
Deletes a metric reference key. Responses:
- 404 If metric not found.
- 200 If succeeded.
func MGetHandler ¶
Get all references key of a metric. Responses:
- 404 If metric not found.
- 200 If succeeded.
func UpdateHandler ¶
Updates a metric reference key. Responses:
- 400 If invalid body.
- 400 If json fields are invalid.
- 404 If metric not found.
- 400 If refkey already exists.
- 200 If succeeded.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.