Skip to content

Instantly share code, notes, and snippets.

@balasista
Created April 7, 2023 02:37
Show Gist options
  • Select an option

  • Save balasista/4554d2a9af9af6b9a316683bca712a01 to your computer and use it in GitHub Desktop.

Select an option

Save balasista/4554d2a9af9af6b9a316683bca712a01 to your computer and use it in GitHub Desktop.

Revisions

  1. balasista created this gist Apr 7, 2023.
    37 changes: 37 additions & 0 deletions example_post.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,37 @@
    {
    "post": {
    "title": "Example post",
    "body": "This is an example post created by the API.",
    "timestamp": "2023-04-06T10:00:00Z",
    "tagname": "Austin.Capper 1.Downtime",
    "location": "WonderDemo/Texas/Austin"
    },
    "timeseries": [
    {
    "timestamp": "2023-04-06T10:00:00Z",
    "value": 10.5
    },
    {
    "timestamp": "2023-04-06T11:00:00Z",
    "value": 12.2
    },
    {
    "timestamp": "2023-04-06T12:00:00Z",
    "value": 8.9
    }
    ],
    "alerts": [
    {
    "type": "threshold",
    "threshold": 11.0,
    "comparison": ">",
    "timestamp": "2023-04-06T11:00:00Z"
    },
    {
    "type": "anomaly",
    "threshold": 2.0,
    "comparison": "stddev",
    "timestamp": "2023-04-06T12:00:00Z"
    }
    ]
    }