tinkerbell / pbnj

Service for interacting with BMCs
Apache License 2.0
109 stars 37 forks source link

Add get systemeventlog support #162

Open mattcburns opened 8 months ago

mattcburns commented 8 months ago

Description

Add support for getting the system event log (sel) via grpc and command line.

client.go: SystemEventLog - Returns a slice of SystemEventLogEntry with an opinionated format (ID, Timestamp, Description, Message) SystemEventLogRaw - Returns a blob of text that is the raw response from the BMC. (Log)

Why is this needed

Implements functionality added to bmclib so that SEL events can be captured.

Fixes: #

How Has This Been Tested?

Tests are added and pass.

How are existing users impacted? What migration steps/scripts do we need?

No migrations.

Checklist:

I have:

codecov[bot] commented 8 months ago

Codecov Report

Attention: Patch coverage is 27.45098% with 37 lines in your changes are missing coverage. Please review.

:exclamation: No coverage uploaded for pull request base (main@1e47be6). Click here to learn what that means.

Files Patch % Lines
grpc/rpc/diagnostic.go 27.45% 37 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #162 +/- ## ======================================= Coverage ? 74.82% ======================================= Files ? 9 Lines ? 584 Branches ? 0 ======================================= Hits ? 437 Misses ? 132 Partials ? 15 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.