Matches objects with a date that evaluates to true when compared with the given specifiers. By default, AGE will compare the Event's creationDate. The AGE() macro allows age queries on other date fields such as lastEditDate.
Example Requests
Description | Endpoint |
---|---|
Find all Events with a creation date in the last 3600000 milliseconds: | curl 'https://octave-api.sierrawireless.io/v5.0/<company_name>/event/<stream_id>' -d 'filter="AGE < 3600000"' |
Find all Cloud Actions which were created over two weeks ago: Time units supported are MILLISECONDS | SECONDS | MINUTES | HOURS | DAYS | WEEKS. If no time unit is appended MILLISECONDS is assumed. | curl 'https://octave-api.sierrawireless.io/v5.0/<company_name>/action' -d 'filter="AGE < 2 WEEKS"' |
This can also be used to search in other date fields: | curl 'https://octave-api.sierrawireless.io/v5.0/<company_name>/action' -d 'filter="AGE(\"lastEditDate\") < 42 HOURS"' |