NAME
OpenSearch::Cluster
- OpenSearch Cluster API
SYNOPSIS
use strict;
use warnings;
use OpenSearch;
my $opensearch = OpenSearch->new(
user => 'admin',
pass => 'admin',
hosts => ['http://localhost:9200'],
secure => 0,
allow_insecure => 1,
);
my $cluster = $opensearch->cluster;
my $allocation = $cluster->allocation;
my $health = $cluster->health;
my $stats = $cluster->stats;
my $settings = $cluster->settings;
DESCRIPTION
This is the Module for the OpenSearch Cluster API. The following Endpoints are currently supported:
Cluster Allocation
Cluster Health
Cluster Settings
Cluster Stats
METHODS
allocation
returns a new OpenSearch::Cluster::Allocation object
my $allocation = $opensearch->cluster->allocation;
health
returns a new OpenSearch::Cluster::Health object
my $health = $opensearch->cluster->health;
stats
returns a new OpenSearch::Cluster::Stats object
my $stats = $opensearch->cluster->stats;
settings
returns a new OpenSearch::Cluster::Settings object
my $settings = $opensearch->cluster->settings;
LICENSE
Copyright (C) localh0rst.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
localh0rst <git@fail.ninja>