Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[
{
"$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
You can’t perform that action at this time.