8 #ifndef K_FIRESYNC_HEALTH_LOG_H
9 #define K_FIRESYNC_HEALTH_LOG_H
21 #include <kFireSync/Health/kHealthLog.x.h>
Numeric identifier for a health statistic.
Implements persistent health logging.
kStatus kHealthLog_Construct(kHealthLog *log, const kChar *directory, k32u fileLimit, k32u sizeLimit, k32u blockSize, kAlloc allocator)
Constructs a kHealthLog object.
kStatus kHealthLog_FindStatValue(kHealthLog log, kHealthId id, k32u instance, k64s *value)
Gets the latest logged value of the specifid health stat.
kStatus kHealthLog_UnregisterStat(kHealthLog log, kHealthId id, k32u instance)
Notes that a stat has gone offline.
kStatus kHealthLog_CreateSnapshot(kHealthLog log, kArrayList statList)
Adds a new snapshot to the health log.
Represents a summary of health log data.
Essential declarations related to FireSync nodes.
kStatus kHealthLog_Summarize(kHealthLog log, kHealthSummary summary)
Builds a log summary by scanning all snapshot files.
kStatus kHealthLog_RegisterStat(kHealthLog log, kHealthId id, k32u instance, const kChar *name, kBool shouldRestore, k64s value)
Adds or updates metadata for the specified stat.
kStatus kHealthLog_Clear(kHealthLog log)
Marks the log to be cleared the next time that it is reloaded.
kBool(kCall * kHealthLogPruneFx)(kPointer receiver)
Callback signature to determine whether the log should be pruned to reclaim space.
Definition: kHealthLog.h:19