Commit Graph

8 Commits

Author SHA1 Message Date
Luna Mendes 6c94b50ba0 incidents: fix bug 2018-07-19 18:42:34 -03:00
slice a44574249a
backend: INC_UPDATE -> INCIDENT_UPDATE 2018-07-18 15:06:31 -07:00
slice cea693102f
PUT /api/incidents -> POST /api/incidents 2018-07-18 12:46:58 -07:00
slice 11df05b998
unnest /api/incidents/current 2018-07-18 12:40:39 -07:00
slice 194129a5f2
/api/incident -> /api/incidents
for consistency
2018-07-18 12:39:43 -07:00
Luna Mendes 9c2dbeaf59 incidents: add rest of basic API
- change all ISO timestamp strings to unix timestamps
 - add patch_incident and new_stage

 - streaming: remove INC_UPDATE_STAGE
 - manager: change primary key on instance_stages table

This requires a table change across all elstat instances, since
we changed the primary key on instance_stages.
2018-07-18 04:28:22 -03:00
Luna Mendes dcadfd4c76 blueprints.incidents: add api base
- add getting a single incident, getting multiple (with pages), and
 creating an incident

 - blueprints.streaming: add incident related OP codes
 - consts: add IncidentType
 - manager: add incidents channel, add publish_incident
 - elstat: add snowflake.py
2018-07-17 22:59:11 -03:00
Luna Mendes ecf6234cfe elstat.adapters: add latency to db spec
Since this is a change to the table schema for all services using the
ping adapter, you will have to delete the tables relating to them.

 - elstat.blueprints: add incidents blueprint (WIP)
 - elstat.blueprints: add decorators.py
 - elstat.blueprints: add errors.py
 - elstat.manager: add incidents & incident_stages tables
 - run: add handler for ApiError
2018-07-13 23:20:09 -03:00