pub trait UnauthenticatedPiHoleAPI {
// Required methods
fn get_summary_raw(&self) -> Result<SummaryRaw, APIError>;
fn get_summary(&self) -> Result<Summary, APIError>;
fn get_over_time_data_10_mins(&self) -> Result<OverTimeData, APIError>;
fn get_version(&self) -> Result<u32, APIError>;
fn get_versions(&self) -> Result<Versions, APIError>;
}
Required Methods§
Sourcefn get_summary_raw(&self) -> Result<SummaryRaw, APIError>
fn get_summary_raw(&self) -> Result<SummaryRaw, APIError>
Get statistics in a raw format (no number format)
Sourcefn get_summary(&self) -> Result<Summary, APIError>
fn get_summary(&self) -> Result<Summary, APIError>
Get statistics in a formatted style
Sourcefn get_over_time_data_10_mins(&self) -> Result<OverTimeData, APIError>
fn get_over_time_data_10_mins(&self) -> Result<OverTimeData, APIError>
Get statistics on the number of domains and ads for each 10 minute period
Sourcefn get_version(&self) -> Result<u32, APIError>
fn get_version(&self) -> Result<u32, APIError>
Get the Pi-Hole version.
Sourcefn get_versions(&self) -> Result<Versions, APIError>
fn get_versions(&self) -> Result<Versions, APIError>
Get the detailed Pi-Hole versions for core, FTL and web interface.