mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-26 05:58:16 +00:00
Fix/update t/pt-agent/run_agent.t.
This commit is contained in:
@@ -234,21 +234,21 @@ $ua->{responses}->{get} = [
|
||||
# 2nd check, init with latest Config and Services
|
||||
{
|
||||
headers => { 'X-Percona-Resource-Type' => 'Config' },
|
||||
content => as_hashref($config),
|
||||
content => as_hashref($config, with_links => 1),
|
||||
},
|
||||
{
|
||||
headers => { 'X-Percona-Resource-Type' => 'Service' },
|
||||
content => [ as_hashref($svc0) ],
|
||||
content => [ as_hashref($svc0, with_links => 1) ],
|
||||
},
|
||||
# interval
|
||||
# 3rd check, same Config and Services so nothing to do
|
||||
{
|
||||
headers => { 'X-Percona-Resource-Type' => 'Config' },
|
||||
content => as_hashref($config),
|
||||
content => as_hashref($config, with_links => 1),
|
||||
},
|
||||
{
|
||||
headers => { 'X-Percona-Resource-Type' => 'Service' },
|
||||
content => [ as_hashref($svc0) ],
|
||||
content => [ as_hashref($svc0, with_links => 1) ],
|
||||
},
|
||||
# interval, oktorun=0
|
||||
];
|
||||
|
@@ -4,13 +4,14 @@
|
||||
},
|
||||
"name" : "query-monitor",
|
||||
"run_schedule" : "1 * * * *",
|
||||
"runs" : [
|
||||
"spool_schedule" : "2 * * * *",
|
||||
"tasks" : [
|
||||
{
|
||||
"name" : "query-history",
|
||||
"number" : "0",
|
||||
"options" : "--output json",
|
||||
"output" : "spool",
|
||||
"program" : "pt-query-digest"
|
||||
}
|
||||
],
|
||||
"spool_schedule" : "2 * * * *"
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user