Skeleton bin/pt-agent and lib/Percona/WebAPI.

This commit is contained in:
Daniel Nichter
2012-12-24 11:24:53 -07:00
parent 9dcda101c9
commit 93416d4cb6
12 changed files with 5343 additions and 519 deletions

View File

@@ -0,0 +1,28 @@
package Percona::WebAPI::Resource::Agent;
use Mo;
with 'Percona::WebAPI::Representation::JSON';
with 'Percona::WebAPI::Representation::HashRef';
has 'id' => (
is => 'ro',
isa => 'Str',
required => 1,
);
has 'hostname' => (
is => 'ro',
isa => 'Str',
required => 1,
default => sub { return `hostname 2>/dev/null` },
);
has 'versions' => (
is => 'ro',
isa => 'Maybe[Percona::WebAPI::Resource::Versions]',
required => 0,
default => undef,
);
1;