Table of Contents |
---|
minLevel | 2 |
---|
maxLevel | 2 |
---|
type | flat |
---|
|
Overview
Check the list of available endpoints and methods in the Aggregation task API:
...
Endpoints and methods
...
Description
...
/models/{name}
see below...
Get detailed information about a model.
...
/models/{name}
see below...
Replace the data of an existing model.
...
/models/{name}
see below...
Create a new model.
...
/models/{name}
see below...
Delete a model.
...
/models/{name}
see below...
Update an existing model.
...
/models/{name}
see below...
List the available models in the current domain.
...
/images/{name}
see below...
Get the binary image of a model.
Endpoints and methods
...
Get information about all the aggregation tasks in a domain.
Note |
---|
In order to work with Model Management you need to activate Machine Learning permissions in your role. Go to Administration → Roles → Permissions → Machine Learning and activate the view and manage permissions in Models. Learn more about roles and permissions in Role permissions. |
...
Path parameters
Add the following path parameters as part of the endpoint:
...
Parameter
...
Type
...
Description
...
domain
required
...
string
...
Enter the domain of the aggregation tasks you want to get information about.
Query string parameters
Query string parameters are optionally added after the path parameters, preceded by a question mark (?
) and separated by an ampersand (&
)
...
Parameter
...
Type
...
Description
...
skipCache
...
boolean
...
If it is true
, skips the cache that contains the status of the aggregation tasks and force the system to tell you where to find them.
Default value is false
.
...
status
...
string
...
Execution status of the aggregation tasks. Available values are:
RUNNING
STOPPED
DELETED
ERROR
PARTIAL_STOPPED
PENDING_CREATE
PENDING_START
PENDING_STOP
PENDING_UPDATE
PENDING_REBUILD
PENDING_DELETE
PENDING_RESUME
PENDING_EXTEND
...
id
...
string
...
If you want to get details about a specific aggregation task only, enter its ID here.
Note |
---|
How can I get the ID of an aggregation task? To get the ID of an aggregation task, log in to the Devo platform and go to Administration → Data management, locate your aggregation task in the table, click the ellipsis button in its row and select View details. You can copy the internal ID in the details shown in the window that appears. Learn more about this in Aggregation tasks. |
...
fromDate
...
integer
...
Timestamp from when the aggregation tasks to be returned were created. Format is a timestamp in milliseconds, for example 1652400000000
...
name
...
string
...
If you want to get details about a specific aggregation task only, you can enter its name.
...
ownerEmail
...
string
...
Email of the aggregation tasks' owner.
...
negated
...
boolean
...
Set this to true
to negate all other parameters. Default value is false
.
Example
Find below a request example in cURL language. In this case, we are requesting all the aggregation tasks with status STOPPED
created in the given domain. Learn how to authorize your request in this article.
Code Block |
---|
curl -H "standAloneToken:YOUR_TOKEN" -X GET "https://api-us.devo.com/aggregations/v2/aggrtasks/myDomain?status=STOPPED" |
...
...
Code
...
Description
...
200
Successful response. List of aggregation tasks retrieved.
...
Table of Contents |
---|
minLevel | 2 |
---|
maxLevel | 2 |
---|
type | flat |
---|
|
Overview
Check the list of available endpoints and methods in the Aggregation task API:
Endpoints and methods | Description |
---|
/models/{name} see below | Get detailed information about a model. |
/models/{name} see below | Replace the data of an existing model. |
/models/{name} see below | Create a new model. |
/models/{name} see below | Delete a model. |
/models/{name} see below | Update an existing model. |
/models/{name} see below | List the available models in the current domain. |
/images/{name} see below | Get the binary image of a model. |
Endpoints and methods
GET /models/{name}
Get detailed information about a model.
Note |
---|
In order to work with Model Management you need to activate Machine Learning permissions in your role. Go to Administration → Roles → Permissions → Machine Learning and activate the view and manage permissions in Models. Learn more about roles and permissions in Role permissions. |
Expand |
---|
|
Path parameters Add the following path parameters as part of the endpoint: Parameter | Type | Description |
---|
name required
| string
| Enter the name of the model you want to get information about. |
Query string parametersQuery string parameters are optionally added after the path parameters, preceded by a question mark (? ) and separated by an ampersand (& ) Parameter | Type | Description |
---|
fast
| boolean
| If it is true , it does not show the model image in details. Default value is - . |
Example Find below a request example in cURL language: Code Block |
---|
curl -X GET "https://api.stage.devo.com/mlmodelmanager/v3/models/MY FIRST MODEL?fast=true" -H "accept: application/json" -H "standAloneToken: cc81f6f5c73634002183d80b1fb736ec" |
|
Expand |
---|
|
Code | Description |
---|
200 | Returns the retrieved model. Code Block |
---|
{
"id": 22,
"name": "MY FIRST MODEL",
"engine": "H2O",
"location": "domains/self/632bfd1c-f734-44fd-af66-732410b953f1",
"description": "A BRIEF DESCRIPTION",
"updateDate": 1683714063000,
"creationDate": 1683714063000,
"domainName": "self",
"outputType": "float8",
"image": null,
"category": "Regression",
"fields": [
{
"id": 0,
"name": "length",
"description": "",
"type": "float8"
},
{
"id": 1,
"name": "entropy",
"description": "",
"type": "float8"
},
{
"id": 2,
"name": "p_vowels",
"description": "",
"type": "float8"
}
],
"clusters": [],
"parentId": null,
"hidden": false,
"runtimeSize": 78608,
"fileSize": 77728
} |
| 404 | Returns a message when the model name is not found in the server. | 500 | Returned when an error occurred internally in the server. |
|
PUT /models/{name}
Replace the data of an existing model.
Note |
---|
In order to work with Model Management you need to activate Machine Learning permissions in your role. Go to Administration → Roles → Permissions → Machine Learning and active the view and manage permissions in Models. Learn more about roles and permissions in Role permissions. |
Expand |
---|
|
Path parameters Add the following path parameters as part of the endpoint: Parameter | Type | Description |
---|
name required
| string
| Enter the name of the model you want to replace the data of. |
Request bodyThe request JSON body must include an object with the following key-value pairs: Parameter | Type | Description |
---|
engine
| string
| The engine used to train and execute the model. | fileName
| string
| | description
| string
| The description of the model. |
Example Find below a request example in cURL language: Code Block |
---|
curl -H "standAloneToken:YOUR_TOKEN" -X GET "https://api-us.devo.com/aggregations/v2/aggrtasks/myDomain/cc_myDomain:abcDE123?skipCache=true" |
|
Expand |
---|
|
Code | Description |
---|
200 | Returns a replaced model. | test1 delay0
domainNamemyDomain
ownerEmailjohn.smith@devo.com jobs[{
grain1mstatusSTOPPED, from1652400000000"to":1652432340000}{
grain5m statusSTOPPED, "from": 1652400000000,
to1652400000000 },{
grain1h
statusSTOPPED from1652400000000,"to":1652400000000} creationDate1652432342000
updateDate1652432342000,
"status": "STOPPED",
"statusData": "INCOMPLETE",
"fromDate": 1652400000000
},
{
"id": "cc_myDomain:oYckc691",
"name": "test2",
"delay": 0,
"domainName": "myDomain",
"ownerEmail": "john.smith@devo.com",
"jobs": [
{
"grain": "1m",
"status": "STOPPED",
"from": 1652400000000,
"to": 1652436480000
},
{
"grain": "5m",
"status": "STOPPED",
| 500 | Returned when an error occurred internally in the server. |
|
POST /models/{name}
Create a model.
Note |
---|
In order to work with Model Management you need to activate Machine Learning permissions in your role. Go to Administration → Roles → Permissions → Machine Learning and activate the view and manage permissions in Models. Learn more about roles and permissions in Role permissions. |
Expand |
---|
|
Path parameters Add the following path parameters as part of the endpoint: Parameter | Type | Description |
---|
name required
| string
| Enter the name of the model you want to create. |
Request bodyThe request JSON body must include an object with the following key-value pairs: Parameter | Type | Description |
---|
engine
| string
| The engine used to train and execute the model. | fileName
| string
| | description
| string
| The description of the model. |
Example Find below a request example in cURL language: |
Get information about a specific aggregation task in a given domain.
Note |
---|
Code | Description |
---|
200 | Model has been successfully saved to the server. Code Block |
---|
{
"name": "string",
"engine": "string",
"location": "string",
"description": "string",
"updateDate": 0,
"creationDate": 0,
"domainName": "string",
"outputType": "string",
"image": {
"image": "string"
},
"category": "string",
"fields": [
{
" |
| from1652400000000 to1652436300000}{grain "1h",status"STOPPED" from1652400000000
to1652436000000}],"creationDate": 1652436468000,"updateDate": 1652436468000,"status": "STOPPED",statusData"INCOMPLETE" fromDate1652400000000
]
400 | Error in request | 401 | Unauthorized error. | 403 | Forbidden request. | 404 | Not found. | 405 | Method not allowed. | 500 | Server error and Java exception. | |
...
409 | The model already exists. | 500 | Returned when an error occurred internally in the server. |
|
DELETE/models/{name}
Delete a model.
Note |
---|
In order to work with Model Management you need to activate Machine Learning permissions in your role. Go to Administration → Roles → Permissions → Machine Learning and active activate the view and manage permissions in Models. Learn more about roles and permissions in Role permissions. |
Expand |
---|
|
Path parametersAdd the following path parameters as part of the endpoint: domain name required
| string
| Enter the | domain aggregation task get information aboutaggrId required
| string
| Enter the ID of the aggregation task you want to get information about. Note |
---|
How can I get the ID of an aggregation task? To get the ID of an aggregation task, log in to the Devo platform and go to Administration → Data management, locate your aggregation task in the table, click the ellipsis button in its row and select View details. You can copy the internal ID in the details shown in the window that appears. Learn more about this in Aggregation tasks. |
| Query string parametersQuery string parameters are optionally added after the path parameters, preceded by a question mark (? ) and separated by an ampersand (& ) |
Parameter | Type | Description |
---|
skipCache
| boolean
| If it is true , skips the cache that contains the status of the aggregation task and force the system to tell you where to find it. Default value is false . |
Example
Find below a request example in cURL language. In this case, we are requesting details about the aggregation task with ID cc_myDomain:abcDE123
created in the domain called myDomain
. Also, we want to skip the cache about its status. Learn how to authorize your request in this article.
Code Block |
---|
curl -H "standAloneToken:YOUR_TOKEN" -X GET "https://api-us.devo.com/aggregations/v2/aggrtasks/myDomain/cc_myDomain:abcDE123?skipCache=true" |
Expand |
---|
|
Code | Description |
---|
200 | Successful response. aggregation task details retrieved. Code Block |
---|
{
"id": "cc_myDomain:abcDE123",
"name": "Test",
"table": "demo.ecommerce.data`1234`.`345`",
"wheres": [
"eq(client, \"myDomain\")"
],
"delay": 0,
"query": {
"linq": "from demo.ecommerce.data`1234`.`345` where eq(client, \"myDomain\") group every 60000 by level, type, message, client"
},
"domainName": "myDomain",
"ownerEmail": "john.smith@devo.com",
"jobs": [
{
"grain": "1m",
"status": "STOPPED",
"from": 1652400000000,
"to": 1652432040000
},
{
"grain": "5m",
"status": "STOPPED",
"from": 1652400000000,
"to": 1652400000000
},
{
"grain": "1h",
"status": "STOPPED",
"from": 1652400000000,
"to": 1652400000000
}
],
"creationDate": 1652432055000,
"updateDate": 1652432055000,
"status": "STOPPED",
"statusData": "INCOMPLETE",
"fromDate": 1652400000000
} |
|
400 | Error in request |
401 | Unauthorized error. |
403 | Forbidden request. |
404 | Not found. |
405 | Method not allowed. |
500 | Server error and Java exception. |
...
Get the measures of an aggregation task.
Note |
---|
In order to work with Model Management you need to activate Machine Learning permissions in your role. Go to Administration → Roles → Permissions → Machine Learning and activate the view and manage permissions in Models. Learn more about roles and permissions in Role permissions. |
...
Path parameters
Add the following path parameters as part of the endpoint:
...
Parameter
...
Type
...
Parameter
...
domain
required
...
string
...
Enter the domain of the aggregation task you want to get information about.
...
aggrId
required
...
string
...
Enter the ID of the aggregation task you want to get information about.
Note |
---|
How can I get the ID of an aggregation task? To get the ID of an aggregation task, log in to the Devo platform and go to Administration → Data management, locate your aggregation task in the table, click the ellipsis button in its row and select View details. You can copy the internal ID in the details shown in the window that appears. Learn more about this in Aggregation tasks. |
Example
Find below a request example in cURL language. In this case, we are requesting the measures of the aggregation task with ID cc_myDomain:abcDE123
created in the domain called myDomain
. Also, we want to skip the cache about its status. Learn how to authorize your request in this article.
Code Block |
---|
curl -H "standAloneToken:YOUR_TOKEN" -X GET "https://api-us.devo.com/aggregations/v2/aggrtasks/myDomain/cc_myDomain:abcDE123/measures" |
...
...
Code
...
Description
...
200
...
Successful response. In this example, the task is calculating three aggregations:
count()
avg(responseTime)
sum(responseTime)
Code Block |
---|
{
"responseTime": [
"avg",
"sum"
],
"count": []
} |
...
400
...
Error in request
...
401
...
Unauthorized error.
...
403
...
Forbidden request.
...
404
...
Not found.
...
405
...
Method not allowed.
...
500
...
Server error and Java exception.
...
Create a new aggregation task.
Note |
---|
In order to work with Model Management you need to activate Machine Learning permissions in your role. Go to Administration → Roles → Permissions → Machine Learning and activate the view and manage permissions in Models. Learn more about roles and permissions in Role permissions. |
Expand |
---|
|
Path parametersAdd the following path parameters as part of the endpoint: |
Parameter | Type | Description |
---|
domain required
| string
| Enter the domain where you want to create the aggregation task. |
Request body
The request JSON body must include an object with the following key-value pairs:
Parameter | Type | Description |
---|
name required
| string
| Aggregation task's name, which must be unique in the domain. |
query required
| object
| An object that contains three parameters: LINQ - Base query of the aggregation task, written in LINQ syntax.
timezone - Timezone of the aggregation task query, in the following format: Europe/Madrid
locale - Locale of the aggregation task query, in the following format: en
|
fromDate required
| string
| Date from which the aggregation task searches to calculate the aggregated data. Valid format is dd/mm/yyyy |
description
| string
| Brief description of the aggregation task. |
delay
| integer
| Maximum acceptable time difference between the current time and the last event displayed. You can indicate it in seconds (1s ), minutes (1m ), hours (1h ) and days (1d ). Default value is 0 |
minGrain
| string
| Minimum granularity of the aggregation task. Available values are: AUTO - Calculate best aggregation according to the given query.
1m - Aggregate every minute.
5m - Aggregate every 5 minutes.
30m - Aggregate every 30 minutes.
|
Example
Find below a request example in cURL language. In this case, we are creating a new aggregation task in the domain called myDomain
. Learn how to authorize your request in this article.
Code Block |
curl --location -g 'https://api-us.devo.com/aggregations/v2/aggrtasks/myDomain' --header 'standAloneToken:YOUR_TOKEN' --header 'Content-Type: application/json' --data '{
"name": "MyNewAggTask",
"description": "This is a test aggregation task",
"fromDate": "06/02/2023",
"minGrain": "30m",
"query": {Example
Find below a request example in cURL language.
Code Block |
---|
curl -X DELETE "https://api.stage.devo.com/mlmodelmanager/v3/models/MY FIRST MODEL" -H "accept: */*" -H "standAloneToken: cc81f6f5c73634002183d80b1fb736ec" |
Expand |
---|
|
Code | Description |
---|
200 | Model successfully deleted. | 404 | Model not found. | 500 | Returned when an error occurred internally in the server. |
|
PATCH/models/{name}
Update an existing model.
Note |
---|
In order to work with Model Management you need to activate Machine Learning permissions in your role. Go to Administration → Roles → Permissions → Machine Learning and activate the view and manage permissions in Models. Learn more about roles and permissions in Role permissions. |
Expand |
---|
|
Path parameters Add the following path parameters as part of the endpoint: Parameter | Type | Description |
---|
name required
| string
| Enter the name of the model you want to update. |
Request body The request JSON body must include an object with the following key-value pairs: Parameter | Type | Description |
---|
name
| string
| | engine
| string
| | location
| string
| | description
| string
| | updateDate
| integer
| | creationDate
| integer
| | domainName
| string
| | outputType
| string
| | image
| | | category
| string
| | runtimeSize
| integer
| | fileSize
| integer
| |
Example Find below a request example in cURL language. |
Expand |
---|
|
Code | Description |
---|
200 | Returns the patched model. | 400 | Returns a message when the model name is not found in the server or the received patch JSON is incorrect. | 500 | Returned when an error occurred internally in the server. |
|
GET/models/{name}
List the available models in the current domain.
Note |
---|
In order to work with Model Management you need to activate Machine Learning permissions in your role. Go to Administration → Roles → Permissions → Machine Learning and activate the view and manage permissions in Models. Learn more about roles and permissions in Role permissions. |
Expand |
---|
|
Path parameters There are no path parameters for this request. Example Find below a request example in cURL language. Code Block |
---|
curl -X GET "https://api.stage.devo.com/mlmodelmanager/v3/models" -H "accept: application/json" -H "standAloneToken: cc81f6f5c73634002183d80b1fb736ec" |
|
Expand |
---|
|
Code | Description |
---|
200 | Successful response. Code Block |
---|
[
{
"id": 23,
"name": "a new model",
"engine": "H2O",
"location": "domains/self/e27dd5ef-aedb-42ba-b0b9-21bca5338714",
"description": "new",
"updateDate": 1683718486000,
"creationDate": 1683718486000,
"domainName": "self",
"outputType": "float8",
"image": null,
"category": "Regression",
"fields": [
{
"id": 0,
"name": "length",
"description": "",
"type": "float8"
},
{
"id": 1,
"name": "entropy",
"description": "",
"type": "float8"
},
{
"id": 2,
"name": "p_vowels",
"description": "",
"type": "float8"
}
],
"clusters": [],
"parentId": null,
"hidden": false,
"runtimeSize": 78608,
"fileSize": 77728
},
{
"id": 21,
"name": "dga_classifier_onnx_demo",
"engine": "ONNX",
"location": "domains/self/823b3522-895c-411e-a4f3-2762db27a6fc",
"description": null,
"updateDate": 1681900499000,
"creationDate": 1681900499000,
"domainName": "self",
"outputType": "array(float4)",
"image": null,
"category": "ONNX",
"fields": [
{
"id": 0,
"name": "field_0",
"description": "",
"type": "array(float4)"
}
],
"clusters": [],
"parentId": null,
"hidden": false,
"runtimeSize": 880,
"fileSize": 3881
},
{
"id": 20,
"name": "graeme_test2",
"engine": "ONNX",
"location": "domains/self/b96fe0d9-74f2-4f51-a301-ff7573c0f6bd",
"description": null,
"updateDate": 1681804104000,
"creationDate": 1681804104000,
"domainName": "self",
"outputType": "array(float4)",
"image": null,
"category": "ONNX",
"fields": [
{
"id": 0,
"name": "field_0",
" |
|
timeZoneEurope/Madridlocalees","linq":"from siem.logtrust.web.activity group every 5m by username every 5m select avg(responseTime) as responseTime"
],
"clusters": [],
"parentId": null,
|
|
}
}' |
Expand |
---|
|
Update a specific aggregation task.
Note |
---|
In order to work with Model Management you need to activate Machine Learning permissions in your role. Go to Administration → Roles → Permissions → Machine Learning and activate the view and manage permissions in Models. Learn more about roles and permissions in Role permissions. |
Expand |
---|
|
Path parameters Add the following path parameters as part of the endpoint: |
Parameter | Type | Description |
---|
domain required
| string
| Enter the domain of the aggregation task that you want to update. |
aggrId required
| string
| Enter the ID of the aggregation task that you want to update. Note |
---|
How can I get the ID of an aggregation task? To get the ID of an aggregation task, log in to the Devo platform and go to Administration → Data management, locate your aggregation task in the table, click the ellipsis button in its row and select View details. You can copy the internal ID in the details shown in the window that appears. Learn more about this in Aggregation tasks. |
|
Request body
The request JSON body must include an object with the following key-value pairs:
Parameter | Type | Description |
---|
query
| object
| An object that contains three parameters: LINQ - Base query of the aggregation task, written in LINQ syntax.
timezone - Timezone of the aggregation task query, in the following format: Europe/Madrid
locale - Locale of the aggregation task query, in the following format: en
|
description
| string
| Brief description of the aggregation task. |
delay
| integer
| Maximum acceptable time difference between the current time and the last event displayed. You can indicate it in seconds (1s ), minutes (1m ), hours (1h ) and days (1d ). Default value is 0 |
minGrain
| string
| Minimum granularity of the aggregation task. Available values are: AUTO - Calculate best aggregation according to the given query.
1m - Aggregate every minute.
5m - Aggregate every 5 minutes.
30m - Aggregate every 30 minutes.
|
Example
Find below a request example in cURL language. In this case, we are updating an aggregation task with ID cc_myDomain:abcDE123
in the domain called myDomain
. Learn how to authorize your request in this article.
Code Block |
curl --location --request PUT 'https://api-us.devo.com/aggregations/v2/aggrtasks/myDomain/cc_myDomain:abcDE123' --header 'standAloneToken:YOUR_TOKEN' --header 'Content-Type: application/json' --data '{
"description": "Aggregation task updated",
"minGrain": "5mCode | Description |
---|
200 | Successful response. Aggregation task created.
Code Block |
{id"cc_myDomain:abcDE123",name"MyNewAggTask"tablesiem.logtrust.web.activitywheres["eq(client, \"myDomain\")""location": "domains/self/82178f93-af1b-4d1b-9438-67b842a6bee8",
|
|
], delay0query{linqcreationDate": 1681738724000,
|
|
"fromsiem.logtrust.web.activitywhereeq(client,\integrations_factory\") group every 60000 by username, client select sumf(responseTime) as responseTime_sumfdomainName": "self",
"outputType": "array(float4)",
" |
|
timeZone"Europe/Madrid"localees}, description"mynewaggregationtask","domainName"myDomain"ownerEmailjohn.smith@devo.comcreationDate1677087818714"updateDate":1677087818714,statusPENDING_CREATE","statusData":nullfromDate0
}400 | Error in request |
401 | Unauthorized error. |
403 | Forbidden request. |
404 | Not found. |
405 | Method not allowed. |
500 | Server error and Java exception. |
...
[],
"parentId": null,
"hidden": false,
"runtimeSize": 876,
"fileSize": 229468
},
{
"id": 17,
"name": "dga_scoring",
"engine": "ONNX",
"location": "domains/self/85132b1f-59fa-4859-9198-e6ce49258916",
"description": "DGA domain label scoring",
"updateDate": 1678361980000,
"creationDate": 1678361980000,
"domainName": "self",
"outputType": "array(float4)",
"image": null,
"category": "ONNX",
"fields": [
{
"id": 0,
"name": "field_0",
"description": "",
"type": "array(float4)"
}
],
"clusters": [],
"parentId": null,
"hidden": false,
"runtimeSize": 892,
"fileSize": null
},
{
"id": 16,
"name": "pokemon_onnx",
" |
|
query{
timeZoneEurope/Madrid",
domains/self/dd374598-af8e-4542-8663-e7e8e0cdbf38",
" |
|
localees",this is the description",
|
|
linq"from siem.logtrust.web.activity group every 10m by username every 5m select avg(responseTime) as responseTime"1678201475000,
"creationDate": 1678201449000,
"domainName": "self",
|
|
} "outputType": "array(float4)",
|
|
}' |
Expand |
---|
|
Stop an aggregation task.
Note |
---|
In order to work with Model Management you need to activate Machine Learning permissions in your role. Go to Administration → Roles → Permissions → Machine Learning and activate the view and manage permissions in Models. Learn more about roles and permissions in Role permissions. |
Expand |
---|
|
Path parameters
Add the following path parameters as part of the endpoint:
Parameter | Type | Description |
---|
domain required
| string
| Enter the domain of the aggregation task that you want to stop. |
aggrId required
| string
| Enter the ID of the aggregation task that you want to stop. Note |
---|
How can I get the ID of an aggregation task? To get the ID of an aggregation task, log in to the Devo platform and go to Administration → Data management, locate your aggregation task in the table, click the ellipsis button in its row and select View details. You can copy the internal ID in the details shown in the window that appears. Learn more about this in Aggregation tasks. |
|
Example
Find below a request example in cURL language. In this case, we want to stop the aggregation task with ID cc_myDomain:abcDE123
in the domain called myDomain
. Learn how to authorize your request in this article.
Code Block |
---|
curl -H "standAloneToken:YOUR_TOKEN" -X PUT "https://api-us.devo.com/aggregations/v2/aggrtasks/myDomain/cc_myDomain:abcDE123/stop" |
Expand |
---|
|
Code | Description |
---|
200 | Aggregation task successfully updated. Code Block | { id"cc_myDomain:abcDE123",nameMyNewAggTasktable"siem.logtrust.web.activity","wheres":["eq(client,\"myDomain\")"],delay"query{linqfrom siem.logtrust.web.activity where eq(client, \"integrations_factory\") group every 60000 by username, client select sumf(responseTime) as responseTime_sumf"",
"type": "array(float4)"
}
],
" |
| timeZone"Europe/Madrid"locale"es"}, description"Aggregationtaskupdated",domainName"myDomain"ownerEmail"john.smith@devo.com",creationDate1677087818714updateDate1677087818714statusPENDING_CREATEdomains/self/126e92c2-d724-40cf-a6cf-3dc9f63e9219",
" |
| statusDatanullfromDateupdateDate": 1676390228000,
|
| 0
}400 | Error in request | 401 | Unauthorized error. | 403 | Forbidden request. | 404 | Not found. | 405 | Method not allowed. | 500 | Server error and Java exception. | |
...
Code | Description |
---|
200 | Aggregation task stopped. | 400 | Error in request | 401 | Unauthorized error. | 403 | Forbidden request. | 404 | Not found. | 405 | Method not allowed. | 500 | Server error and Java exception "creationDate": 1676390228000,
"domainName": "self",
"outputType": "array(float4)",
"image": null,
"category": "ONNX",
"fields": [
{
"id": 0,
"name": "field_0",
"description": "",
"type": "array(float4)"
}
],
"clusters": [],
"parentId": null,
"hidden": false,
"runtimeSize": 876,
"fileSize": 229468
},
{
"id": 2,
"name": "RRCF",
"engine": "IDA",
"location": "domains/self/f868583b-011d-48ea-970c-eb059f06b951",
"description": "Testing RRCF in Flow",
"updateDate": 1676291578000,
"creationDate": 1676291578000,
"domainName": "self",
"outputType": "float8",
"image": null,
"category": "Rrcf",
"fields": [
{
"id": 0,
"name": "dimension_0",
"description": "",
"type": "float8"
}
],
"clusters": [],
"parentId": null,
"hidden": false,
"runtimeSize": 23764,
"fileSize": 227
}
] |
| 500 | Returned when an error occurred internally in the server. |
|
GET/images/{name}
Start a new task and add aggregated data from a specific dateGet the binary image of a model.
Note |
---|
In order to work with Model Management you need to activate Machine Learning permissions in your role. Go to Administration → Roles → Permissions → Machine Learning and activate the view and manage permissions in Models. Learn more about roles and permissions in Role permissions. |
Expand |
---|
|
Path parameters Add the following path parameters as part of the endpoint: Code | Description |
---|
200 | Aggregation task started. | 400 | Error in request | 401 | Unauthorized error. | 403 | Forbidden request. | 404 | Not found. | 405 | Method not allowed. | 500 | Server error and Java exception.Parameter | Type | Description |
---|
domain required
| string
| Enter the domain where you want the aggregation task to be. | aggrId required
| string
| Enter the ID of the aggregation task that you want to start. Note |
---|
How can I get the ID of an aggregation task? To get the ID of an aggregation task, log in to the Devo platform and go to Administration → Data management, locate your aggregation task in the table, click the ellipsis button in its row and select View details. You can copy the internal ID in the details shown in the window that appears. Learn more about this in Aggregation tasks. |
|
Query string parametersQuery string parameters are optionally added after the path parameters, preceded by a question mark (? ) and separated by an ampersand (& ) |
Parameter | Type | Description |
---|
from required
| integer
| Timestamp from when the aggregation task will be started. Format is a timestamp in milliseconds, for example 1652400000000 |
Example
Find below a request example in cURL language. In this case, we want to start the aggregation task with ID cc_myDomain:abcDE123
in the domain called myDomain
from a specific date indicated in the timestamp added to the URL. Learn how to authorize your request in this article.
Code Block |
---|
curl -H "standAloneToken:YOUR_TOKEN" -X PUT "https://api-us.devo.com/aggregations/v2/aggrtasks/myDomain/cc_myDomain:abcDE123/start?from=1652400000000" |
Expand |
---|
|
name required
| string
| Enter the name of the model you want to get the binary image of. |
Example Find below a request example in cURL language. Code Block |
---|
curl -X GET "https://api.stage.devo.com/mlmodelmanager/v3/images/RRCF" -H "accept: */*" -H "standAloneToken: cc81f6f5c73634002183d80b1fb736ec" |
|
Expand |
---|
|
Code | Description |
---|
200 | Returns the model file as an octet stream. Code Block |
---|
{
"metadata": {
"id": 123456,
"name": "human_usable_saved_name",
"algorithm": "rrcf",
"version": "1.0"
},
"data": {
"dimensions": 1,
"shingle": 10,
"treeSize": 256,
"trees": 20
}
} |
| 404 | Model not found. | 500 | Returned when an error occurred internally in the server |
|