class Pdns::API::Endpoints::Statistics
- Pdns::API::Endpoints::Statistics
- Pdns::API::Endpoint
- Reference
- Object
Defined in:
pdns/api/endpoints/statistics.crInstance Method Summary
-
#query(*, statistic : String? = nil, include_rings : Bool? = nil) : Array(StatisticItem | MapStatisticItem | RingStatisticItem)
Query statistics.
Constructor methods inherited from class Pdns::API::Endpoint
new(api : API, base_path : String)
new
Instance Method Detail
def query(*, statistic : String? = nil, include_rings : Bool? = nil) : Array(StatisticItem | MapStatisticItem | RingStatisticItem)
#
Query statistics.
Query PowerDNS internal statistics.
statistic - When set to the name of a specific statistic, only this value is returned. If no statistic with that name exists, the method raise an error.
include_rings - whether to include the Ring items, which can contain
thousands of log messages or queried domains. Setting this to false
may make the response a lot smaller.