
#                                      Copyright 2024 WebPros International, LLC
#                                                           All rights reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited.

package Whostmgr::360Monitoring::Agent::Settings::Data;

use cPstrict;
use Moo;
use Whostmgr::360Monitoring::Moo;
use Types::Common qw(PositiveInt NonEmptyStr);

extends 'Whostmgr::360Monitoring::Agent::Settings';

conf_has 'api_host' => (
    isa => NonEmptyStr,

    # The default in Agent360 is "ingest.monitoring360.io"
    default => 'http://127.0.0.1/server-status?auto',
);

conf_has 'api_path' => (
    isa     => NonEmptyStr,
    default => '/v2/server/poll',
);

conf_has 'interval' => (
    isa     => PositiveInt,
    default => 1,
);

1;
