README

vectie/moontown/health does not have a README file

#
Anomaly

pub struct Anomaly {
title : String
detail : String
} derive(Eq,
Debug
)

impl Show for Anomaly

#
BookHealth

pub struct BookHealth {
book_id : String
level : HealthLevel
note : String
} derive(Eq,
Debug
)

impl Show for BookHealth

#
HealthLevel

pub enum HealthLevel {
Healthy
Degraded
Critical
} derive(Eq,
Debug
)

impl Show for HealthLevel

#
HealthReport

pub struct HealthReport {
worker_health : Array[WorkerHealth]
book_health : Array[BookHealth]
anomalies : Array[Anomaly]
} derive(Eq,
Debug
)

#
RecoveryAction

pub struct RecoveryAction {
kind : String
detail : String
} derive(Eq,
Debug
)

#
WorkerHealth

pub struct WorkerHealth {
worker_id : String
level : HealthLevel
note : String
} derive(Eq,
Debug
)

#
count_health_anomalies_by_title

fn count_health_anomalies_by_title(report : HealthReport, title : String) -> Int

#
inspect_town

#
recovery_actions

fn recovery_actions(report : HealthReport) -> Array[RecoveryAction]