LOGIN
Use the login API to:
- Get access to the site
- Log in to the site
- Logout from site
Event Endpoints
| Functionality | Method | Endpoint |
|---|---|---|
| events | POST | api/agent/events api/events |
| ping | GET | api/agent/events/ping api/events/ping |
| scope | GET | api/agent/events/scope api/events/scope |
| win | PUT | api/agent/events/win/:uid api/events/win/:uid |
| server | PUT | api/agent/events/server/:uid api/events/server/:uid |
Endpoints
Events
POST api/agent/events
POST api/events
Request Fields
| Field | Required/Optional | Type | Description |
|---|---|---|---|
| events | required | object | Array of events |
| events[].uid | required | string | The unique ID of event |
| events[].timestamp | required | Date | The timestamp of event appearing |
| events[].subject | required | enum 'SITE','WIN','SERVER','MODULE' | The subject type |
| events[].subject_uid | required | string | The unique subject ID |
| events[].sublocation_uid | optional | string | The unique ID of sublocation |
| events[].company_uid | optional | string | The unique ID of company |
| events[].project_uid | optional | string | The unique ID of project |
| events[].server_uid | required | string | The unique ID of server |
| events[].level | required | enum 'INFO','WARNING','CRITICAL','EMERGENCY' | Enum |
| events[].state | optional | enum 'SET', 'CLEAR' | Enum |
| events[].type | required | enum 'AGENT_HAS_STARTED','AGENT_HAS_STOPPED', ... | Enum |
| events[].data | required | object | Specified data for event |
Response Fields
| Field | Description |
|---|---|
Ping
GET api/agent/events/ping
GET api/events/ping
Scope
GET api/agent/events/scope
GET api/events/scope
Win
PUT api/agent/events/win/:uid
PUT api/events/win/:uid
Server
PUT api/agent/events/server/:uid
PUT api/events/server/:uid