mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-12 22:19:44 +00:00
Skeleton bin/pt-agent and lib/Percona/WebAPI.
This commit is contained in:
26
lib/Percona/WebAPI/Resource/Service.pm
Normal file
26
lib/Percona/WebAPI/Resource/Service.pm
Normal file
@@ -0,0 +1,26 @@
|
||||
package Percona::WebAPI::Resource::Service;
|
||||
|
||||
use Mo;
|
||||
|
||||
with 'Percona::WebAPI::Representation::JSON';
|
||||
with 'Percona::WebAPI::Representation::HashRef';
|
||||
|
||||
has 'name' => (
|
||||
is => 'ro',
|
||||
isa => 'Str',
|
||||
required => 1,
|
||||
);
|
||||
|
||||
has 'schedule' => (
|
||||
is => 'ro',
|
||||
isa => 'Str',
|
||||
required => 1,
|
||||
);
|
||||
|
||||
has 'run' => (
|
||||
is => 'ro',
|
||||
isa => 'ArrayRef[Percona::WebAPI::Resource::Run]',
|
||||
required => 1,
|
||||
);
|
||||
|
||||
1;
|
Reference in New Issue
Block a user