Skip to content

Instantly share code, notes, and snippets.

@jvanmetre
Last active June 18, 2019 19:49
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 jvanmetre/a9b1ee8252f4b6df15b9316a52ce15e8 to your computer and use it in GitHub Desktop.
Save jvanmetre/a9b1ee8252f4b6df15b9316a52ce15e8 to your computer and use it in GitHub Desktop.
[
{
"$paths": [
"/v2/applications.json"
],
"$description": "Tests the public api applications endpoint",
"$schema": {
"type": "object",
"minProperties": 1,
"properties": {
"applications": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"name": {
"type": "string"
},
"language": {
"type": "string"
},
"health_status": {
"type": "string",
"enum": [
"gray",
"green",
"orange",
"red",
"unknown",
"unavailable"
]
},
"reporting": {
"type": "boolean"
},
"last_reported_at": {
"type": "string",
"pattern": "\\d{4}(-\\d{2}){2}T\\d{2}(:\\d{2}){2}\\+\\d{2}:\\d{2}"
},
"application_summary": {
"type": "object",
"properties": {
"response_time": {
"type": "number"
},
"throughput": {
"type": "number"
},
"error_rate": {
"type": "number"
},
"apdex_target": {
"type": "number"
},
"apdex_score": {
"type": "number"
},
"host_count": {
"type": "number"
}
},
"patternProperties": {
"(concurrent_|)instance_count": {
"type": "number"
}
},
"required": [
"response_time",
"throughput",
"error_rate",
"apdex_target",
"host_count"
]
},
"end_user_summary": {
"type": "object",
"properties": {
"response_time": {
"type": "number"
},
"throughput": {
"type": "number"
},
"apdex_target": {
"type": "number"
},
"apdex_score": {
"type": "number"
}
},
"required": [
"response_time",
"throughput",
"apdex_target",
"apdex_score"
]
}
},
"required": [
"id",
"name",
"language",
"health_status",
"reporting"
]
}
}
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment