Mattermost/V4/API/Resource/Cluster.pm

filter: Statementstmt 71.4% 5 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 1 / 2 Podpod 100% 1 / 1 totaltotal 70.0% 7 / 10 CC 1 SCAR 4.1
CC
1
Cov
71%
status
2.0
BEGIN
1.0
CRAP 1.5
« Mattermost/V4/API/Resource/Cache.pm ↑ Summary Mattermost/V4/API/Resource/Database.pm »
1 package WebService::Mattermost::V4::API::Resource::Cluster;
2  
3 # ABSTRACT: Wrapped API methods for the cluster API endpoints.
4  
5 12 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 12 extends 'WebService::Mattermost::V4::API::Resource';
8  
9 ################################################################################
10  
11 sub status {
12 0 ▶ my $self = shift;
Subroutine status: not called CC=1 SCAR=6.9
Pod documented
13  
14 0 return $self->_get({ endpoint => 'status' });
15 }
16  
17 ################################################################################
18  
19 12 1;
20  
21 __END__
22  
23 =pod
24  
25 =encoding UTF-8
26  
27 =head1 NAME
28  
29 WebService::Mattermost::V4::API::Resource::Cluster - Wrapped API methods for the cluster API endpoints.
30  
31 =head1 VERSION
32  
33 version 0.28
34  
35 =head1 DESCRIPTION
36  
37 =head2 USAGE
38  
39 use WebService::Mattermost;
40  
41 my $mm = WebService::Mattermost->new({
42 authenticate => 1,
43 username => 'email@address.com',
44 password => 'passwordhere',
45 base_url => 'https://my.mattermost.server.com/api/v4/',
46 });
47  
48 my $cluster = $mm->api->cluster;
49  
50 =head2 METHODS
51  
52 =over 4
53  
54 =item C<status()>
55  
56 my $response = $cluster->status;
57  
58 =back
59  
60 =head1 SEE ALSO
61  
62 =over 4
63  
64 =item L<https://api.mattermost.com/#tag/cluster>
65  
66 Official "cluster" API documentation.
67  
68 =back
69  
70 =head1 AUTHOR
71  
72 Mike Jones <mike@netsplit.org.uk>
73  
74 =head1 COPYRIGHT AND LICENSE
75  
76 This software is Copyright (c) 2020 by Mike Jones.
77  
78 This is free software, licensed under:
79  
80 The MIT (X11) License
81  
82 =cut
« Mattermost/V4/API/Resource/Cache.pm ↑ Summary Mattermost/V4/API/Resource/Database.pm »