Skip to content
This repository has been archived by the owner on Mar 24, 2020. It is now read-only.

Latest commit

 

History

History
66 lines (65 loc) · 2.07 KB

pitometer.rest

File metadata and controls

66 lines (65 loc) · 2.07 KB

POST http://localhost:8080/api/pitometer Content-Type: application/json

{

"timeStart": 1551398400, "timeEnd": 1555027200, "perfSpec": {

"spec_version": "1.0", "indicators": [

{

"id": "P90_ResponseTime_Frontend", "source": "Dynatrace", "query": {

"timeseriesId": "com.dynatrace.builtin:service.responsetime", "aggregation": "p90", "tags": [

{
"context": "CONTEXTLESS", "key": "service", "value": "carts"

}

]

}, "grading": {

"type": "Threshold", "thresholds": {

"upperSevere": 4000000, "upperWarning": 2000000, "lowerWarning ": 0, "lowerSevere": 0

}, "metricScore": 20

}

}, {

"id": "AVG_ResponseTime_Frontend", "source": "Dynatrace", "query": {

"timeseriesId": "com.dynatrace.builtin:service.responsetime", "aggregation": "avg", "tags": [

{
"context": "CONTEXTLESS", "key": "service", "value": "carts"

}

]

}, "grading": {

"type": "Threshold", "thresholds": {

"upperSevere": 4000000, "upperWarning": 2000000, "lowerWarning ": 0, "lowerSevere": 0

}, "metricScore": 80

}

}

], "objectives": {

"pass": 100, "warning": 50

}

}

}