Update Query Definition
Updates the query definition by id
ID of the existing query def
force
{
"name": "test_query_definition",
"id": "789kl5b3c6-2434-457e-8fcb-b75abcceefa7",
"queryId": "com.vmware.test_id",
"source": "USER_DEFINED",
"sourceName": "testing_source",
"contentPackId": "et4671072-94a6-4106-8d20-c153896e91c5",
"description": "Note: details about this query definition",
"url": "http://kb.vmware.com/kb/778652729092us8",
"constraints": {
"operator": "AND",
"fieldName": null,
"value": null,
"constraints": [
{
"operator": "EXISTS",
"fieldName": "text",
"value": "error",
"constraints": [],
"tags": []
},
{
"operator": "EXISTS",
"fieldName": "text",
"value": "exception",
"constraints": [],
"tags": []
},
{
"operator": "LESS_THAN",
"fieldName": "build_number",
"value": "7408",
"constraints": [],
"tags": []
}
],
"tags": []
},
"aggregationFunctions": [
{
"fieldName": "text",
"functionName": "AVG"
},
{
"fieldName": "text",
"functionName": "MIN"
},
{
"fieldName": "build_number",
"functionName": "MAX"
}
],
"groupByTerms": [
{
"fieldName": "timestamp",
"groupByType": "FIXED_BUCKET"
}
],
"fieldListItems": [
{
"name": "test_query_definition_name",
"link": "com.vmware.test_link"
}
],
"relationFunctions": [
{
"relationName": "9876ed31-fe70-4c61-8db7-917a1a2636f1",
"relationType": "LOGS"
}
],
"isSearchable": false,
"isAnnotation": false,
"createdBy": "[email protected]",
"createdAt": "2023-05-09T21:25:15.934Z",
"lastUpdatedBy": "[email protected]",
"lastUpdatedAt": "2023-05-09T21:25:15.934Z",
"widget": {
"name": "test_widget",
"widgetType": "CHART",
"analysisFunctions": null,
"visualization": {
"type": "AREA",
"options": {
"logaxis": "false",
"piestyle": "normal",
"pielabelstyle": "legend",
"piepercentage": "false"
}
},
"filter": null
},
"alertSolrQuery": "SELECT AVG(text) as \"avg test_field\", MIN(text) as \"min test_field\", MAX(build_number) as \"max test_build\" FROM logs WHERE (text=exist() AND text=exist() AND text<7408)",
"isFavorite": false,
"entityTagAssociation": [
{
"tagId": "4c454315-e469-432b-a302-3e8eb0e10690",
"tagName": "test_tag_1"
},
{
"tagId": "7795d0ee-4d0b-496b-b48b-fc5b7c6f4e89",
"tagName": "test_tag_2"
}
],
"documentSelfLink": "/vrlic/api/v1/query-definitions/789kl5b3c6-2434-457e-8fcb-b75abcceefa7"
}
Query name. It should be unique
id
Query identifier. It should be unique
All allowed source of query: CONTENT_PACK, USER_DEFINED
Name of the content pack that provided this query definition
Content pack id if this query belongs to any
Detailed description of Query definition
An URL that links to additional information. (Vmware KB article / other recommended approach for fixing issue)
List of aggregate field and function name
List of relation name and type. Allowed relation type includes: LOGS
Indicates whether the query should be displayed in search results
Indicates whether the query should be used to annotate log messages
List of tenant links
Is Query Favourite - used to identify if the query is favourite for a user.
List of entity tag associated with this query
Indicates document self link
OK
{
"name": "test_query_definition",
"id": "789kl5b3c6-2434-457e-8fcb-b75abcceefa7",
"queryId": "com.vmware.test_id",
"source": "USER_DEFINED",
"sourceName": "testing_source",
"contentPackId": "et4671072-94a6-4106-8d20-c153896e91c5",
"description": "Note: details about this query definition",
"url": "http://kb.vmware.com/kb/778652729092us8",
"constraints": {
"operator": "AND",
"fieldName": null,
"value": null,
"constraints": [
{
"operator": "EXISTS",
"fieldName": "text",
"value": "error",
"constraints": [],
"tags": []
},
{
"operator": "EXISTS",
"fieldName": "text",
"value": "exception",
"constraints": [],
"tags": []
},
{
"operator": "LESS_THAN",
"fieldName": "build_number",
"value": "7408",
"constraints": [],
"tags": []
}
],
"tags": []
},
"aggregationFunctions": [
{
"fieldName": "text",
"functionName": "AVG"
},
{
"fieldName": "text",
"functionName": "MIN"
},
{
"fieldName": "build_number",
"functionName": "MAX"
}
],
"groupByTerms": [
{
"fieldName": "timestamp",
"groupByType": "FIXED_BUCKET"
}
],
"fieldListItems": [
{
"name": "test_query_definition_name",
"link": "com.vmware.test_link"
}
],
"relationFunctions": [
{
"relationName": "9876ed31-fe70-4c61-8db7-917a1a2636f1",
"relationType": "LOGS"
}
],
"isSearchable": false,
"isAnnotation": false,
"createdBy": "[email protected]",
"createdAt": "2023-05-09T21:25:15.934Z",
"lastUpdatedBy": "[email protected]",
"lastUpdatedAt": "2023-05-09T21:25:15.934Z",
"widget": {
"name": "test_widget",
"widgetType": "CHART",
"analysisFunctions": null,
"visualization": {
"type": "AREA",
"options": {
"logaxis": "false",
"piestyle": "normal",
"pielabelstyle": "legend",
"piepercentage": "false"
}
},
"filter": null
},
"alertSolrQuery": "SELECT AVG(text) as \"avg test_field\", MIN(text) as \"min test_field\", MAX(build_number) as \"max test_build\" FROM logs WHERE (text=exist() AND text=exist() AND text<7408)",
"isFavorite": false,
"entityTagAssociation": [
{
"tagId": "4c454315-e469-432b-a302-3e8eb0e10690",
"tagName": "test_tag_1"
},
{
"tagId": "7795d0ee-4d0b-496b-b48b-fc5b7c6f4e89",
"tagName": "test_tag_2"
}
],
"documentSelfLink": "/vrlic/api/v1/query-definitions/789kl5b3c6-2434-457e-8fcb-b75abcceefa7"
}
Query name. It should be unique
id
Query identifier. It should be unique
All allowed source of query: CONTENT_PACK, USER_DEFINED
Name of the content pack that provided this query definition
Content pack id if this query belongs to any
Detailed description of Query definition
An URL that links to additional information. (Vmware KB article / other recommended approach for fixing issue)
List of aggregate field and function name
List of relation name and type. Allowed relation type includes: LOGS
Indicates whether the query should be displayed in search results
Indicates whether the query should be used to annotate log messages
List of tenant links
Is Query Favourite - used to identify if the query is favourite for a user.
List of entity tag associated with this query
Indicates document self link