From 89d8dff24c9991ccbb40f6d33c2f2cf4b8437d9e Mon Sep 17 00:00:00 2001 From: Sudipto Baral Date: Mon, 27 Feb 2023 16:15:16 +0600 Subject: [PATCH] feat: added example response JSON from datadog Signed-off-by: Sudipto Baral --- .../providers/datadog/example_resp.json | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 operator/controllers/common/providers/datadog/example_resp.json diff --git a/operator/controllers/common/providers/datadog/example_resp.json b/operator/controllers/common/providers/datadog/example_resp.json new file mode 100644 index 0000000000..45dd7fb729 --- /dev/null +++ b/operator/controllers/common/providers/datadog/example_resp.json @@ -0,0 +1,82 @@ +{ + "data": [ + { + "created_at": 1677413713, + "creator": { + "email": "sudiptobaral.me@gmail.com", + "handle": "sudiptobaral.me@gmail.com", + "name": "sudipto baral" + }, + "description": "string", + "id": "691bd5bdd78b5b848a03efc882f6bccb", + "modified_at": 1677491641, + "monitor_tags": [ + + ], + "name": "TEST_SLO_1", + "query": { + "denominator": "sum:httpservice.hits{!code:3xx}.as_count()", + "numerator": "sum:httpservice.hits{code:2xx}.as_count()" + }, + "tags": [ + "app:core", + "env:prod" + ], + "target_threshold": 97, + "thresholds": [ + { + "target": 97, + "target_display": "97.", + "timeframe": "7d", + "warning": 98, + "warning_display": "98." + } + ], + "timeframe": "7d", + "type": "metric", + "warning_threshold": 98 + }, + { + "created_at": 1677491606, + "creator": { + "email": "sudiptobaral.me@gmail.com", + "handle": "sudiptobaral.me@gmail.com", + "name": "sudipto baral" + }, + "description": "string", + "id": "9b1f168123175d6b86a8a6dfb8193f6f", + "modified_at": 1677491606, + "monitor_tags": [ + + ], + "name": "TEST_SLO_2", + "query": { + "denominator": "sum:httpservice.hits{!code:3xx}.as_count()", + "numerator": "sum:httpservice.hits{code:2xx}.as_count()" + }, + "tags": [ + "app:core", + "env:prod" + ], + "target_threshold": 97, + "thresholds": [ + { + "target": 97, + "target_display": "97.", + "timeframe": "7d", + "warning": 98, + "warning_display": "98." + } + ], + "timeframe": "7d", + "type": "metric", + "warning_threshold": 98 + } + ], + "metadata": { + "page": { + "total_count": 2, + "total_filtered_count": 2 + } + } +} \ No newline at end of file