{"swagger":"2.0","info":{"description":"Zen alerting framework","version":"1.0.0","title":"Alerting framework API","contact":{"email":"llsomava@us.ibm.com"},"license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"tags":[{"name":"events","description":"Events generated represent state of an entity"}],"paths":{"/events":{"get":{"tags":["events"],"summary":"Get events for monitor","operationId":"getEvents","description":"Get events by monitor\n","produces":["application/json"],"parameters":[{"in":"query","name":"monitor","description":"specify the monitor name for the events","required":false,"type":"string"}],"responses":{"200":{"description":"search results matching criteria","schema":{"type":"array","items":{"$ref":"#/definitions/Events"}}},"400":{"description":"bad input parameter"}}}}},"definitions":{"Events":{"type":"object","required":["monitor_name","event_type","reference","severity"],"properties":{"monitor_name":{"type":"string","example":"diagnostics-monitor"},"event_type":{"type":"string","example":"pvc-status-monitor"},"reference":{"type":"string","example":"user-home-pvc"},"severity":{"type":"string","example":"critical"},"metadata":{"type":"string","example":"Using 70% quota"}}}},"host":"virtserver.swaggerhub.com","schemes":["https"],"basePath":"/lalit86/zen-alerting/1.0.0"}