|
|
@ -100,7 +100,7 @@ describe('simple query', function(){ |
|
|
|
"type": "derivative" |
|
|
|
"type": "derivative" |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
"query": "beat.hostname:opt-project.ru AND !system.network.name:\"IBM USB Remote NDIS Network Device\"", |
|
|
|
"query": "beat.hostname:example.com AND !system.network.name:\"IBM USB Remote NDIS Network Device\"", |
|
|
|
"refId": "A", |
|
|
|
"refId": "A", |
|
|
|
"target": "carbon.agents.0b0226864dc8-a.cpuUsage", |
|
|
|
"target": "carbon.agents.0b0226864dc8-a.cpuUsage", |
|
|
|
"timeField": "@timestamp" |
|
|
|
"timeField": "@timestamp" |
|
|
@ -129,7 +129,7 @@ describe('simple query', function(){ |
|
|
|
{ |
|
|
|
{ |
|
|
|
"query_string": { |
|
|
|
"query_string": { |
|
|
|
"analyze_wildcard": true, |
|
|
|
"analyze_wildcard": true, |
|
|
|
"query": "beat.hostname:opt-project.ru AND !system.network.name:\"IBM USB Remote NDIS Network Device\"" |
|
|
|
"query": "beat.hostname:example.com AND !system.network.name:\"IBM USB Remote NDIS Network Device\"" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
@ -173,7 +173,7 @@ describe('simple query', function(){ |
|
|
|
url: datasourse.url, |
|
|
|
url: datasourse.url, |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
schema: { |
|
|
|
schema: { |
|
|
|
data: queryTemplate.map(e => JSON.stringify(e)).join('\n') |
|
|
|
data: queryTemplate.map(e => JSON.stringify(e)).join('\n') + "\n" |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|