Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Chapter:Data
-
HD-Enabler:Orion
Description
Created question in FIWARE Q/A platform on 17-09-2015 at 14:09
Please, ANSWER this question AT http://stackoverflow.com/questions/32630801/query-orion-context-broker-by-dates
Question:
Query Orion Context Broker by Dates
Description:
I tried to query by dates interval in Orion 0.24 with no success.
A call to:
URL: http://<some-ip>:<some-port>/v2/entities?type=some-entity
Gives:
[
{
"id": "some-id",
"type": "some-entity",
"coordenadas":
,
"fecha":
,
},
{
"id": "some-id",
"type": "some-entity",
"coordenadas":
,
"fecha":
}
]
Then I query by dates interval in the following ways:
Call 1:
Call 2:
Both calls respond with a 200 code and payload []. I also tried other operators '>', '<' with the same result.
EDIT
I tried '==' over the property 'fecha' and works well:
Call 3:
In the documentation says we can store dates, so I am doing so. Should I store them as numbers?
thanks
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
Assignee | Fermín Galán [ fermin ] |
Summary | [fiware-stackoverflow] Query Orion Context Broker by Dates | FIWARE.Question.Tech.Data.OrionContextBroker.QueryByDates |
HD-Enabler | Orion [ 10875 ] | |
HD-Chapter | Data [ 10838 ] |
Fix Version/s | 2021 [ 12600 ] |