adamcooke / staytus

💡 An open source solution for publishing the status of your services
http://staytus.co
MIT License
2.17k stars 284 forks source link

No API linking between issues and services #298

Open fgierlinger opened 5 years ago

fgierlinger commented 5 years ago

I was not able to find a link between an issue and a service through the API. When looking at an issue on the web interface, the affected services are displayed correctly on top right (public site) or under affected services (admin site).

grafik

But in the API response for the issue I can find no link to the services.

{u'data': {u'created_at': u'2019-07-25T09:45:30.000Z',
  u'id': 4,
  u'identifier': u'af00c23d-5030-48b1-b59e-67ab154f4e08',
  u'notify': False,
  u'service_status': {u'color': u'E74C3C',
   u'id': 4,
   u'name': u'Major Outage',
   u'permalink': u'major-outage'},
  u'state': u'investigating',
  u'title': u'No Link to Service through API',                                                                                                                                                                                       u'updated_at': u'2019-07-25T09:45:30.000Z',                                                                                                                                                                                        u'updates': [{u'created_at': u'2019-07-25T09:45:30.000Z',                                                                                                                                                                            u'id': 13,                                                                                                                                                                                                                         u'identifier': u'3f3a76124c92',                                                                                                                                                                                                    u'notify': False,
    u'service_status': {u'color': u'E74C3C',
     u'id': 4,
     u'name': u'Major Outage',                                                                                                                                                                                                          u'permalink': u'major-outage'},
    u'state': u'investigating',
    u'text': u"We're currently aware of the issue and are investigating the cause. We will provide further updates as we have them.",
    u'updated_at': u'2019-07-25T09:45:30.000Z',
    u'user': {u'email_address': u'admin@example.com',                                                                                                                                                                                   u'id': 1,                                                                                                                                                                                                                          u'name': u'Admin User'}}],                                                                                                                                                                                                      u'user': {u'email_address': u'admin@example.com',
   u'id': 1,
   u'name': u'Admin User'}},
 u'flags': {},
 u'status': u'success',
 u'time': 0.01}
fgierlinger commented 3 years ago

@adamcooke still relevant

adamcooke commented 3 years ago

Thank you - yes - I agree!