Skip to content

Instantly share code, notes, and snippets.

@lusis
Last active December 9, 2015 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lusis/b72d468d486b8c6848a6 to your computer and use it in GitHub Desktop.
Save lusis/b72d468d486b8c6848a6 to your computer and use it in GitHub Desktop.
A few models for use with AWS API Gateway
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "loggly-webhook-model",
"type": "object",
"properties": {
"alert_name": {"type":"string"},
"alert_description":{"type":"string"},
"edit_alert_link":{"type":"string"},
"source_group":{"type":"string"},
"start_time":{"type":"string"},
"end_time":{"type":"string"},
"search_link":{"type":"string"},
"query":{"type":"string"},
"num_hits":{"type":"integer"},
"recent_hits":{"type":"array","items":{"type":"string"}},
"owner_username":{"type":"string"},
"owner_subdomain":{"type":"string"},
"owner_email":{"type":"string"},
"alert_snoozed":{"type":"boolean"}
}
}
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "signalfx-webhook-model",
"type": "object",
"properties": {
"incidentId": {"type":"string"},
"detectorUrl":{"type":"string"},
"status":{"type":"string"},
"rule":{"type":"string"},
"severity":{"type":"string"},
"eventType":{"type":"string"},
"currentValue":{"type":"string"},
"sources":{"type":"string"},
"detector":{"type":"string"}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment