Created
January 5, 2019 00:32
-
-
Save fieldju/637849398f50e9003201167f145fe495 to your computer and use it in GitHub Desktop.
Create a new Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Request method: POST | |
Request URI: http://localhost:61444/canary?metricsAccountName=sfx-integration-test-account&storageAccountName=in-memory-store | |
Proxy: <none> | |
Request params: <none> | |
Query params: metricsAccountName=sfx-integration-test-account | |
storageAccountName=in-memory-store | |
Form params: <none> | |
Path params: <none> | |
Headers: Accept=*/* | |
Content-Type=application/json; charset=UTF-8 | |
Cookies: <none> | |
Multiparts: <none> | |
Body: | |
{ | |
"canaryConfig": { | |
"name": "integration-test-canary-config", | |
"description": "A very simple config for integration testing the SignalFx metric source Kayenta module.", | |
"judge": { | |
"name": "NetflixACAJudge-v1.0", | |
"judgeConfigurations": { | |
} | |
}, | |
"metrics": [ | |
{ | |
"name": "Cpu Usage Percentage", | |
"query": { | |
"type": "signalfx", | |
"metricName": "kayenta.integration-test.cpu.avg", | |
"serviceType": "signalfx" | |
}, | |
"groups": [ | |
"Integration Test Group" | |
], | |
"analysisConfigurations": { | |
"canary": { | |
"direction": "increase" | |
} | |
}, | |
"scopeName": "default" | |
}, | |
{ | |
"name": "Bad Request Rate for /v1/some-endpoint", | |
"query": { | |
"type": "signalfx", | |
"metricName": "kayenta.integration-test.request.count", | |
"queryPairs": [ | |
{ | |
"key": "uri", | |
"value": "/v1/some-endpoint" | |
}, | |
{ | |
"key": "status_code", | |
"value": "4*" | |
} | |
], | |
"aggregationMethod": "sum", | |
"serviceType": "signalfx" | |
}, | |
"groups": [ | |
"Integration Test Group" | |
], | |
"analysisConfigurations": { | |
"canary": { | |
"direction": "increase", | |
"critical": true | |
} | |
}, | |
"scopeName": "default" | |
} | |
], | |
"classifier": { | |
"groupWeights": { | |
"Integration Test Group": 100.0 | |
}, | |
"scoreThresholds": { | |
"pass": 75.0, | |
"marginal": 50.0 | |
} | |
} | |
}, | |
"executionRequest": { | |
"scopes": { | |
"default": { | |
"controlScope": { | |
"scope": "control", | |
"location": "us-west-2", | |
"start": 1546648152.031000000, | |
"end": 1546648212.031000000, | |
"step": 1, | |
"extendedScopeParams": { | |
"_scope_key": "canary-scope", | |
"test-id": "24e7e6cb-0e2b-4d63-b3a6-dc6e2c8477be" | |
} | |
}, | |
"experimentScope": { | |
"scope": "healthy-experiment", | |
"location": "us-west-2", | |
"start": 1546648152.031000000, | |
"end": 1546648212.031000000, | |
"step": 1, | |
"extendedScopeParams": { | |
"_scope_key": "canary-scope", | |
"test-id": "24e7e6cb-0e2b-4d63-b3a6-dc6e2c8477be" | |
} | |
} | |
} | |
}, | |
"thresholds": { | |
"pass": 75.0, | |
"marginal": 50.0 | |
}, | |
"metadata": null, | |
"siteLocal": null | |
} | |
} | |
HTTP/1.1 200 | |
X-Application-Context: kayenta:0 | |
X-Content-Type-Options: nosniff | |
X-XSS-Protection: 1; mode=block | |
Cache-Control: no-cache, no-store, max-age=0, must-revalidate | |
Pragma: no-cache | |
Expires: 0 | |
X-Frame-Options: DENY | |
Content-Type: application/json;charset=UTF-8 | |
Transfer-Encoding: chunked | |
Date: Sat, 05 Jan 2019 00:30:31 GMT | |
{ | |
"canaryExecutionId": "01D0DPP7C9XYKH3EJDNEVTYE5N" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment