Add ts to Service resource. Rewrite how pt-agent handles applying services: use new meta attrib to find real service, then look for start-service and stop-service; schedule anything with a run_schedule or spool_schedule. Remove Percona/WebAPI/Util.

This commit is contained in:
Daniel Nichter
2013-04-18 16:47:15 -06:00
parent 03f8720871
commit 7cee5a480e
4 changed files with 186 additions and 239 deletions

View File

@@ -22,6 +22,12 @@ package Percona::WebAPI::Resource::Service;
use Lmo;
has 'ts' => (
is => 'ro',
isa => 'Int',
required => 1,
);
has 'name' => (
is => 'ro',
isa => 'Str',
@@ -46,7 +52,7 @@ has 'spool_schedule' => (
required => 0,
);
has 'run_once' => (
has 'meta' => (
is => 'ro',
isa => 'Bool',
required => 0,