12 Commits

Author SHA1 Message Date
123c7ce857 Update copyright header on all files for 2024
Last release of 2023 is probably the best time to do this.
2023-12-29 11:16:59 -05:00
48e41d7b05 Port Faults getFault and getAllFaults to read_many 2023-12-10 16:05:16 -05:00
b9fbfe2ed5 Improve fault ID format
Instead of using random hex characters from an md5sum, use a nice name
in all-caps similar to how Ceph does. This further helps prevent dupes
but also permits a changing health delta within a single event (which
would really only ever apply to plugin faults).
2023-12-09 16:48:14 -05:00
7e6d922877 Improve fault detail handling further
Since we already had a "details" field, simply move where it gets added
to the message later, in generate_fault, after the main message value
was used to generate the ID.
2023-12-09 16:13:36 -05:00
4003204f14 Remove bracketed text from fault_str
This ensures that certain faults e.g. Ceph status faults, will be
combined despite the added text in brackets, while still keeping them
mostly separate.

Also ensure the health text is updated each time to assist with this, as
this health text may now change independent of the fault ID.
2023-12-09 15:34:18 -05:00
4bf80a5913 Fix missing datetime shrink 2023-12-06 17:15:36 -05:00
e0bf7f7d1a Fix bad ID values in acknowledge 2023-12-06 14:18:31 -05:00
20acf3295f Add mass ack/delete of faults 2023-12-06 13:59:39 -05:00
d1e34e7333 Store fault times only to the second
Any more precision is unnecessary and saves 6 chars when displaying
these times elsewhere.
2023-12-06 13:20:18 -05:00
79eb54d5da Move fault generation to common library 2023-12-06 13:17:10 -05:00
2267a9c85d Improve output formatting for simplicity 2023-12-05 10:37:35 -05:00
672e58133f Implement interfaces to faults 2023-12-04 01:37:54 -05:00