This document describes the CLMC service and its API endpoints. The CLMC service is implemented in the *Python* framework called **Pyramid**.
This document describes the CLMC service and its API endpoints. The CLMC service is implemented in the *Python* framework called **Pyramid**.
It offers different API endpoints to configure and control the aggregator as well as a CRUD API for service function endpoints configuration data and Graph API for calculating round trip time. All source code, tests and configuration files of the service can be found in the **src/service** folder.
It offers different API endpoints such as GraphAPI for calculating round trip time, CRUD API for service function endpoints
configuration data and Alerts API for creating and subscribing to alerts in Kapacitor. All source code, tests and
configuration files of the service can be found in the **src/service** folder.
## Alerts API Endpoints
***POST*****/alerts***
This API method can be used to send an alert specification document, which is then used by the CLMC service to create
alert tasks and subscribe alert handlers to those tasks in Kapacitor. For further information on the alert specification
document, please check the [CLMC Alert Specification Documentation](AlertsSpecification.md).
* Request:
Expects a YAML-formatted file in the request body referenced with ID *alert-spec* representing the alert specification
document. This document is then parsed with the openstack TOSCA parser (https://github.com/openstack/tosca-parser/tree/master/toscaparser)
and validated against the CLMC alerts specification schema.
* Request example for sending such request with curl: