...
Note |
---|
Alerts API Note that due to technical reasons, the Alerts API is the only API that uses the LINQ syntax used in the search window of the Devo app. This is indicated in the different sections below. |
Lookup operations
Queries that use lookup operations present some particularities that make them incompatible when used from the search window to APIs or vice versa. The use of symbols is different and the domain name is required in one of them.
...
Search window + Alerts API
...
Other Devo APIs
Syntax:
select `lu/lookupName/lookupColumn`(field) as newColumnName
...
Code Block |
---|
from demo.ecommerce.data
select `lu/IP_list/StreetAddress`(clientIpAddress) as `IP street address` |
...
Syntax:
select lu("lookupName", "lookupColumn", field) as newColumnName
Query example:
Code Block |
---|
from demo.ecommerce.data
select lu("IP_list", "StreetAddress", clientIpAddress) as `IP street address` |
Related article: Data enrichment
Aggregation operations
Maximum (max) operations
...
Related articles: Multiplication, product (mul, *)
Collect distinct operation
This operation will return the set of distinct values for the specified field when grouping events. This operation is not supported in the search window so you need to be careful when using queries from one area to the other. If you want to use it, you can do so with the Query API.
...
Search window + Alerts API
...
Other Devo APIs
...
Not supported
Syntax:
...
...
Query example:
...
...
from demo.ecommerce.data
group every 5m by method, statusCode
select collectdistinct(bytesTransferred) as distinctBytesTransferred
Related articles: Query API
Array operation
When you have fields that contain sets of values as opposed to single values, this operation transforms its data type into an array to be later used to invoke one of the values inside the set. This operation can be used both to create columns and as a filter. When used to create a column, the value invoked will be inserted in the new column while as a filter it will be used as filtering criteria.
...
Search window + Alerts API | Other Devo APIs | ||
---|---|---|---|
| Syntax: Create column: Filter: Query example:
|
Related articles: Query API
Subqueries
...
Collect distinct operation
This operation will return the set of distinct values for the specified field when grouping events. This operation is not supported in the search window yet so you need to be careful when using queries from one area to the other because you will not be able to reproduce subqueries. If you want to use subqueries, your only option so far is to use the Devo APIsit, you can do so with the Query API.
Search window + Alerts API | Other Devo APIs |
---|---|
| Syntax: |
|
|
where column in (from tag1.tag2.tag3.tag4)
Query |
example:
|
|
|
|
|
|
Related articles: Query API
Lookup operations
Regular operations
Queries that use lookup operations present some particularities that make them incompatible when used from the search window to APIs or vice versa. The use of symbols is different and the domain name is required in one of them.
Search window + Alerts API | Other Devo APIs | |
---|---|---|
Syntax:
|
| Syntax:
Query example:
|
...
|
Related article: Data enrichment
JSON operations
Queries that use lookup operations with JSON present some particularities that make them incompatible when used from the search window to APIs or vice versa. The use of symbols is different and a specific json command is required in one of them.
Search window + Alerts API | Other Devo APIs | ||||
---|---|---|---|---|---|
Syntax:
Query example:
| Syntax:
Query example:
|
Related article: Data enrichment
Mlevalmodel operation
Mlevalmodel operation is not supported in search window. Use this operation in APIs when you want to work with models you uploaded in Model Management.
Search window | Devo APIs | ||||
---|---|---|---|---|---|
| Query examples:
Example:
|
Refer article: Model Management
Subqueries
Subqueries are not supported in the search window yet so you need to be careful when using queries from one area to the other because you will not be able to reproduce subqueries. If you want to use subqueries, your only option so far is to use the Devo APIs.
Search window | Devo APIs | ||||
---|---|---|---|---|---|
| Syntax: Create column: Filter: Query examples:
|
Related articles: Subqueries, Query API