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

JS API for querying RCDB #47

Open
DraTeots opened this issue Nov 1, 2016 · 0 comments
Open

JS API for querying RCDB #47

DraTeots opened this issue Nov 1, 2016 · 0 comments
Assignees

Comments

@DraTeots
Copy link
Collaborator

DraTeots commented Nov 1, 2016

Use case 1:

RCDB web site should accept JSON object with request:

  1. conditions name to get
  2. query
  3. run range

And get json object containing values with it:

Example request:

{
 "query": "@is_production and even_count>1M",
 "run_min": 20000,
 "columns_to_get": ["event_count", "target_name", "beam_current"],
}

Example of response:

{
"result":
 [
   {"run":20000, "event_count": 1873843563,   "target_name": "DIAMOND",     "beam_current": 100.2  },
   {"run":20001, "event_count": 3453497345,   "target_name": "DIAMOND",     "beam_current": 101.2  }
 ]
}
@DraTeots DraTeots self-assigned this Mar 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant