Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The server REST API should allow the creation of data points #37

Closed
lhubert opened this issue Feb 24, 2020 · 2 comments
Closed

The server REST API should allow the creation of data points #37

lhubert opened this issue Feb 24, 2020 · 2 comments
Labels
Milestone

Comments

@lhubert
Copy link
Contributor

lhubert commented Feb 24, 2020

It should be possible to add points through the REST API.. something like...
https://:XXX/historian-server /v1/points/create
{
"TagName": "openSpaceSensors.Temperature",
"points": [
{

            "TimeStamp": "2020-02-17T20:03:10.000Z",
               
            "Value":   "25",
               
            "Quality": 3
            }
       ]  

}

@MiniPlayer
Copy link
Contributor

MiniPlayer commented Feb 27, 2020

I think a request like that would be allow to inject several type of metric at one time. And would optimize amount of data sent across network. We do not need to repeat "TimeStamp", "value" and "quality" for every points. A long for the timestamp is also more efficient. Then latter we may accept others formats for convenience.

[
  {
    "name": "openSpaceSensors.Temperature",
    "points": [
      [1, 2.0, 4.0],
      ...
      [6, 4.0, 1.0]
    ]
  },
  ...
]

That's why I think I will go this way if nobody is against it.

@oalam oalam modified the milestones: v1.3, v1.3.3, 1.3.4 Apr 2, 2020
@MiniPlayer
Copy link
Contributor

Done partially with PR #93 . But the it creates a new chunk for every points and the chunks does not contain meta information like pre agregations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants