remove useless code
This commit is contained in:
parent
e848716706
commit
598dd56203
|
@ -38,12 +38,6 @@ sub new {
|
|||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ( $self, %options ) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
|
@ -31,17 +31,11 @@ sub new {
|
|||
|
||||
$self->{version} = '0.1';
|
||||
%{$self->{modes}} = (
|
||||
'city-weather' => 'apps::openweathermap::restapi::mode::cityweather',
|
||||
'city-weather' => 'apps::openweathermap::restapi::mode::cityweather',
|
||||
);
|
||||
|
||||
$self->{custom_modes}{api} = 'apps::openweathermap::restapi::custom::api';
|
||||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ( $self, %options ) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
return $self;²
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
@ -42,16 +42,9 @@ sub new {
|
|||
);
|
||||
|
||||
$self->{custom_modes}{api} = 'apps::proxmox::ve::restapi::custom::api';
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ($self, %options) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
|
@ -41,13 +41,6 @@ sub new {
|
|||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ( $self, %options ) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
|
@ -31,25 +31,19 @@ sub new {
|
|||
|
||||
$self->{version} = '1.0';
|
||||
%{$self->{modes}} = (
|
||||
'clients' => 'apps::redis::cli::mode::clients',
|
||||
'commands' => 'apps::redis::cli::mode::commands',
|
||||
'connections' => 'apps::redis::cli::mode::connections',
|
||||
'cpu' => 'apps::redis::cli::mode::cpu',
|
||||
'memory' => 'apps::redis::cli::mode::memory',
|
||||
'persistence' => 'apps::redis::cli::mode::persistence',
|
||||
'replication' => 'apps::redis::cli::mode::replication',
|
||||
);
|
||||
'clients' => 'apps::redis::cli::mode::clients',
|
||||
'commands' => 'apps::redis::cli::mode::commands',
|
||||
'connections' => 'apps::redis::cli::mode::connections',
|
||||
'cpu' => 'apps::redis::cli::mode::cpu',
|
||||
'memory' => 'apps::redis::cli::mode::memory',
|
||||
'persistence' => 'apps::redis::cli::mode::persistence',
|
||||
'replication' => 'apps::redis::cli::mode::replication',
|
||||
);
|
||||
|
||||
$self->{custom_modes}{rediscli} = 'apps::redis::cli::custom::rediscli';
|
||||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ($self, %options) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
|
@ -45,12 +45,6 @@ sub new {
|
|||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ( $self, %options ) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
|
@ -38,12 +38,6 @@ sub new {
|
|||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ( $self, %options ) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
|
@ -31,23 +31,17 @@ sub new {
|
|||
|
||||
$self->{version} = '0.3';
|
||||
%{$self->{modes}} = (
|
||||
'container-usage' => 'cloud::cadvisor::restapi::mode::containerusage',
|
||||
'disk-io' => 'cloud::cadvisor::restapi::mode::diskio',
|
||||
'traffic' => 'cloud::cadvisor::restapi::mode::traffic',
|
||||
'list-containers' => 'cloud::cadvisor::restapi::mode::listcontainers',
|
||||
'node-status' => 'cloud::cadvisor::restapi::mode::nodestatus',
|
||||
);
|
||||
'container-usage' => 'cloud::cadvisor::restapi::mode::containerusage',
|
||||
'disk-io' => 'cloud::cadvisor::restapi::mode::diskio',
|
||||
'traffic' => 'cloud::cadvisor::restapi::mode::traffic',
|
||||
'list-containers' => 'cloud::cadvisor::restapi::mode::listcontainers',
|
||||
'node-status' => 'cloud::cadvisor::restapi::mode::nodestatus',
|
||||
);
|
||||
|
||||
$self->{custom_modes}{api} = 'cloud::cadvisor::restapi::custom::api';
|
||||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ( $self, %options ) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
|
@ -31,22 +31,15 @@ sub new {
|
|||
|
||||
$self->{version} = '0.3';
|
||||
%{$self->{modes}} = (
|
||||
'container-usage' => 'cloud::docker::restapi::mode::containerusage',
|
||||
'list-containers' => 'cloud::docker::restapi::mode::listcontainers',
|
||||
'node-status' => 'cloud::docker::restapi::mode::nodestatus',
|
||||
);
|
||||
'container-usage' => 'cloud::docker::restapi::mode::containerusage',
|
||||
'list-containers' => 'cloud::docker::restapi::mode::listcontainers',
|
||||
'node-status' => 'cloud::docker::restapi::mode::nodestatus',
|
||||
);
|
||||
|
||||
$self->{custom_modes}{api} = 'cloud::docker::restapi::custom::api';
|
||||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ( $self, %options ) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
|
@ -51,12 +51,6 @@ sub new {
|
|||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ( $self, %options ) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
|
@ -31,30 +31,23 @@ sub new {
|
|||
|
||||
$self->{version} = '0.1';
|
||||
%{$self->{modes}} = (
|
||||
'container-status' => 'cloud::prometheus::direct::kubernetes::mode::containerstatus',
|
||||
'daemonset-status' => 'cloud::prometheus::direct::kubernetes::mode::daemonsetstatus',
|
||||
'deployment-status' => 'cloud::prometheus::direct::kubernetes::mode::deploymentstatus',
|
||||
'list-containers' => 'cloud::prometheus::direct::kubernetes::mode::listcontainers',
|
||||
'list-daemonsets' => 'cloud::prometheus::direct::kubernetes::mode::listdaemonsets',
|
||||
'list-deployments' => 'cloud::prometheus::direct::kubernetes::mode::listdeployments',
|
||||
'list-namespaces' => 'cloud::prometheus::direct::kubernetes::mode::listnamespaces',
|
||||
'list-nodes' => 'cloud::prometheus::direct::kubernetes::mode::listnodes',
|
||||
'list-services' => 'cloud::prometheus::direct::kubernetes::mode::listservices',
|
||||
'namespace-status' => 'cloud::prometheus::direct::kubernetes::mode::namespacestatus',
|
||||
'node-status' => 'cloud::prometheus::direct::kubernetes::mode::nodestatus',
|
||||
);
|
||||
'container-status' => 'cloud::prometheus::direct::kubernetes::mode::containerstatus',
|
||||
'daemonset-status' => 'cloud::prometheus::direct::kubernetes::mode::daemonsetstatus',
|
||||
'deployment-status' => 'cloud::prometheus::direct::kubernetes::mode::deploymentstatus',
|
||||
'list-containers' => 'cloud::prometheus::direct::kubernetes::mode::listcontainers',
|
||||
'list-daemonsets' => 'cloud::prometheus::direct::kubernetes::mode::listdaemonsets',
|
||||
'list-deployments' => 'cloud::prometheus::direct::kubernetes::mode::listdeployments',
|
||||
'list-namespaces' => 'cloud::prometheus::direct::kubernetes::mode::listnamespaces',
|
||||
'list-nodes' => 'cloud::prometheus::direct::kubernetes::mode::listnodes',
|
||||
'list-services' => 'cloud::prometheus::direct::kubernetes::mode::listservices',
|
||||
'namespace-status' => 'cloud::prometheus::direct::kubernetes::mode::namespacestatus',
|
||||
'node-status' => 'cloud::prometheus::direct::kubernetes::mode::nodestatus',
|
||||
);
|
||||
|
||||
$self->{custom_modes}{api} = 'cloud::prometheus::restapi::custom::api';
|
||||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ( $self, %options ) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
|
@ -39,12 +39,6 @@ sub new {
|
|||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ( $self, %options ) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
|
@ -31,25 +31,18 @@ sub new {
|
|||
|
||||
$self->{version} = '0.1';
|
||||
%{$self->{modes}} = (
|
||||
'cpu' => 'cloud::prometheus::exporters::cadvisor::mode::cpu',
|
||||
'list-containers' => 'cloud::prometheus::exporters::cadvisor::mode::listcontainers',
|
||||
'load' => 'cloud::prometheus::exporters::cadvisor::mode::load',
|
||||
'memory' => 'cloud::prometheus::exporters::cadvisor::mode::memory',
|
||||
'storage' => 'cloud::prometheus::exporters::cadvisor::mode::storage',
|
||||
'task-state' => 'cloud::prometheus::exporters::cadvisor::mode::taskstate',
|
||||
);
|
||||
'cpu' => 'cloud::prometheus::exporters::cadvisor::mode::cpu',
|
||||
'list-containers' => 'cloud::prometheus::exporters::cadvisor::mode::listcontainers',
|
||||
'load' => 'cloud::prometheus::exporters::cadvisor::mode::load',
|
||||
'memory' => 'cloud::prometheus::exporters::cadvisor::mode::memory',
|
||||
'storage' => 'cloud::prometheus::exporters::cadvisor::mode::storage',
|
||||
'task-state' => 'cloud::prometheus::exporters::cadvisor::mode::taskstate',
|
||||
);
|
||||
|
||||
$self->{custom_modes}{api} = 'cloud::prometheus::restapi::custom::api';
|
||||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ( $self, %options ) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
|
@ -31,24 +31,17 @@ sub new {
|
|||
|
||||
$self->{version} = '0.1';
|
||||
%{$self->{modes}} = (
|
||||
'cpu' => 'cloud::prometheus::exporters::nodeexporter::mode::cpu',
|
||||
'cpu-detailed' => 'cloud::prometheus::exporters::nodeexporter::mode::cpudetailed',
|
||||
'load' => 'cloud::prometheus::exporters::nodeexporter::mode::load',
|
||||
'memory' => 'cloud::prometheus::exporters::nodeexporter::mode::memory',
|
||||
'storage' => 'cloud::prometheus::exporters::nodeexporter::mode::storage',
|
||||
);
|
||||
'cpu' => 'cloud::prometheus::exporters::nodeexporter::mode::cpu',
|
||||
'cpu-detailed' => 'cloud::prometheus::exporters::nodeexporter::mode::cpudetailed',
|
||||
'load' => 'cloud::prometheus::exporters::nodeexporter::mode::load',
|
||||
'memory' => 'cloud::prometheus::exporters::nodeexporter::mode::memory',
|
||||
'storage' => 'cloud::prometheus::exporters::nodeexporter::mode::storage',
|
||||
);
|
||||
|
||||
$self->{custom_modes}{api} = 'cloud::prometheus::restapi::custom::api';
|
||||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ( $self, %options ) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
|
@ -31,21 +31,14 @@ sub new {
|
|||
|
||||
$self->{version} = '0.1';
|
||||
%{$self->{modes}} = (
|
||||
'expression' => 'cloud::prometheus::restapi::mode::expression',
|
||||
'target-status' => 'cloud::prometheus::restapi::mode::targetstatus',
|
||||
);
|
||||
'expression' => 'cloud::prometheus::restapi::mode::expression',
|
||||
'target-status' => 'cloud::prometheus::restapi::mode::targetstatus',
|
||||
);
|
||||
|
||||
$self->{custom_modes}{api} = 'cloud::prometheus::restapi::custom::api';
|
||||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ( $self, %options ) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
|
@ -48,12 +48,6 @@ sub new {
|
|||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ($self, %options) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
|
@ -44,12 +44,6 @@ sub new {
|
|||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ($self, %options) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
|
@ -31,23 +31,17 @@ sub new {
|
|||
|
||||
$self->{version} = '1.0';
|
||||
%{$self->{modes}} = (
|
||||
'xenvs-cpu' => 'storage::emc::xtremio::restapi::mode::xenvscpu',
|
||||
'xenvs-state' => 'storage::emc::xtremio::restapi::mode::xenvsstate',
|
||||
'ssds-endurance' => 'storage::emc::xtremio::restapi::mode::ssdendurance',
|
||||
'ssds-iops' => 'storage::emc::xtremio::restapi::mode::ssdiops',
|
||||
'cluster-health' => 'storage::emc::xtremio::restapi::mode::clusterhealth',
|
||||
);
|
||||
'xenvs-cpu' => 'storage::emc::xtremio::restapi::mode::xenvscpu',
|
||||
'xenvs-state' => 'storage::emc::xtremio::restapi::mode::xenvsstate',
|
||||
'ssds-endurance' => 'storage::emc::xtremio::restapi::mode::ssdendurance',
|
||||
'ssds-iops' => 'storage::emc::xtremio::restapi::mode::ssdiops',
|
||||
'cluster-health' => 'storage::emc::xtremio::restapi::mode::clusterhealth',
|
||||
);
|
||||
|
||||
$self->{custom_modes}{xtremioapi} = 'storage::emc::xtremio::restapi::custom::xtremioapi';
|
||||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ($self, %options) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
|
@ -50,12 +50,6 @@ sub new {
|
|||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ($self, %options) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
|
@ -50,12 +50,6 @@ sub new {
|
|||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ($self, %options) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
|
@ -50,12 +50,6 @@ sub new {
|
|||
return $self;
|
||||
}
|
||||
|
||||
sub init {
|
||||
my ($self, %options) = @_;
|
||||
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
__END__
|
||||
|
|
Loading…
Reference in New Issue