class Pdns::API::Endpoints::Statistics

Defined in:

pdns/api/endpoints/statistics.cr

Instance Method Summary

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.


[View source]