Skip to content

Commit

Permalink
chore(docs): Update json formats examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Duftler committed Feb 14, 2018
1 parent c50a468 commit 520aa0d
Showing 1 changed file with 45 additions and 33 deletions.
78 changes: 45 additions & 33 deletions json-formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,36 @@ Atlas and Stackdriver are used.
```JSON
{
"name": "MySampleAtlasCanaryConfig",
"description": "Example Automated Canary Analysis (ACA) Configuration using Atlas",
"configVersion": 1.0,
"description": "Example Kayenta Configuration using Atlas",
"configVersion": "1.0",
"applications": [
"myapp"
],
"judge": {
"name": "dredd-v1.0",
"judgeConfigurations": {
}
},
"metrics": [
{
"name": "cpu",
"query": {
"type": "atlas",
"q": "name,CpuRawUser,:eq,:sum,name,numProcs,:eq,:sum,:div"
},
"analysisConfigurations": {
"canary": {
"judge": "dredd-v1.0"
}
},
"groups": ["system"]
"groups": ["system"],
"analysisConfigurations": { },
"scopeName": "default"
},
{
"name": "requests",
"query": {
"type": "atlas",
"q": "name,apache.http.requests,:eq,:sum"
},
"analysisConfigurations": {
"canary": { }
},
"groups": ["requests"]
"groups": ["requests"],
"analysisConfigurations": { },
"scopeName": "default"
}
],
"classifier": {
Expand All @@ -55,21 +59,27 @@ Atlas and Stackdriver are used.
```JSON
{
"name": "MySampleStackdriverCanaryConfig",
"description": "Example Automated Canary Analysis (ACA) Configuration using Stackdriver",
"configVersion": 1.0,
"description": "Example Kayenta Configuration using Stackdriver",
"configVersion": "1.0",
"applications": [
"myapp"
],
"judge": {
"name": "dredd-v1.0",
"judgeConfigurations": {
}
},
"metrics": [
{
"name": "cpu",
"query": {
"type": "stackdriver",
"metricType": "compute.googleapis.com/instance/cpu/utilization"
},
"analysisConfigurations": {
"canary": {
"judge": "dredd-v1.0"
}
"metricType": "compute.googleapis.com/instance/cpu/utilization",
"serviceType": "stackdriver"
},
"groups": ["system"]
"groups": ["system"],
"analysisConfigurations": { },
"scopeName": "default"
}
],
"classifier": {
Expand All @@ -91,16 +101,18 @@ Data retrieved is immutable; however, it could be copied and used again
to re-run with different thresholds.

```JSON
{
"results": [
{
"name": "cpu",
"tags": {"tagName": "tagValue"},
"values": {
"control": [ 1, 2, 3, 4, 5 ],
"experiment": [ 1, 2, 3, 4, 5 ]
}
}
]
}
[
{
"name": "cpu",
"tags": {"tagName": "tagValue"},
"values": {
"control": [ 1, 2, 3, 4, 5 ],
"experiment": [ 1, 2, 3, 4, 5 ]
},
"attributes": {"query", "..."},
"startTimeMillis": 1516046700000,
"startTimeIso": "2018-01-15T20:05:00Z",
"stepMillis": 3600000
}
]
```

0 comments on commit 520aa0d

Please sign in to comment.