Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CspmIT/centinela-front/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
The Centinela API provides programmatic access to the water treatment monitoring system. It enables you to manage variables, alarms, charts, diagrams, and user configurations for your water treatment facilities.Base URL
The API base URL depends on your environment:API Architecture
The Centinela API follows RESTful principles and uses:- JSON for request and response payloads
- Bearer token authentication
- Standard HTTP methods (GET, POST, PUT, DELETE)
- HTTP status codes for response indication
Common Response Formats
Success Response
Error Response
HTTP Status Codes
The API uses standard HTTP status codes:| Status Code | Description |
|---|---|
200 | Success - Request completed successfully |
201 | Created - Resource created successfully |
400 | Bad Request - Invalid request parameters |
401 | Unauthorized - Invalid or missing authentication |
403 | Forbidden - Insufficient permissions |
404 | Not Found - Resource not found |
500 | Internal Server Error - Server-side error |
Rate Limiting
Currently, the API does not enforce rate limiting. However, it’s recommended to implement reasonable polling intervals:- Real-time data: Poll every 30 seconds
- Configuration data: Cache and refresh as needed
- Bulk operations: Process in batches
Data Polling
For real-time monitoring data, the system uses periodic polling:Client Libraries
The Centinela frontend uses Axios for HTTP requests. Here’s the base request configuration:InfluxDB Integration
Centinela integrates with InfluxDB for time-series data storage. Variables are configured with:- Topic: MQTT topic or data source
- Field: Specific field within the topic
- Time period: Query time range (ms, s, m, h, d, mo, y)
- Sample period: Aggregation interval
- Period type:
last(instant) ormean(average)
Next Steps
Authentication
Learn how to authenticate API requests
Variables
Manage monitoring variables
Alarms
Configure and manage alarms
Charts
Create and manage visualizations
