Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACIClient ¶
ACIClient represents an instance of the acigo ACI API client.
ACIClient implements the of.ACIClient interface.
func NewACIClient ¶
NewACIClient returns a new instance of ACIClient configured by an of.ACIClientConfig struct.
type ACIFaultSeverityID ¶
type ACIFaultSeverityID struct {
// contains filtered or unexported fields
}
ACIFaultSeverityID represents a ACI fault's severity level ID as mapped inside the Observability Framework.
ACIFaultSeverityID implements the of.ACIFaultSeverityIDParser interface.
func NewACIFaultSeverityID ¶
func NewACIFaultSeverityID(id int) (ACIFaultSeverityID, error)
NewACIFaultSeverityID returns a new instance of ACIFaultSeverityID.
func (ACIFaultSeverityID) Raw ¶
func (s ACIFaultSeverityID) Raw() of.ACIFaultSeverityRaw
Raw returns the ACIFaultSeverityID's equivalent ACIFaultSeverityRaw.
func (ACIFaultSeverityID) String ¶
func (s ACIFaultSeverityID) String() string
String implements the fmt.Stringer interface.
type ACIFaultSeverityRaw ¶
type ACIFaultSeverityRaw struct {
// contains filtered or unexported fields
}
ACIFaultSeverityRaw represents a ACI fault's severity level string as mapped inside the Observability Framework.
ACIFaultSeverityRaw implements the of.ACIFaultSeverityRawParser interface.
func NewACIFaultSeverityRaw ¶
func NewACIFaultSeverityRaw(s string) (ACIFaultSeverityRaw, error)
NewACIFaultSeverityRaw returns a new instance of ACIFaultSeverityRaw.
func (ACIFaultSeverityRaw) ID ¶
func (s ACIFaultSeverityRaw) ID() of.ACIFaultSeverityID
ID returns the ACIFaultSeverityRaw's equivalent ACIFaultSeverityID.
func (ACIFaultSeverityRaw) String ¶
func (s ACIFaultSeverityRaw) String() string
String implements the fmt.Stringer interface.
type FaultParser ¶
type FaultParser struct { Fault of.ACIFaultRaw Log *logger.Logger }
func (*FaultParser) Created ¶
func (f *FaultParser) Created() (time.Time, error)
Created returns the ACI API's created time for the fault in UTC timezone and as RFC3339 time format.
func (*FaultParser) LastTransition ¶
func (f *FaultParser) LastTransition() (time.Time, error)
LastTransition returns the ACI API's last transition time for the fault in UTC timezone and as RFC3339 time format.
func (*FaultParser) SeverityID ¶
func (f *FaultParser) SeverityID() (of.ACIFaultSeverityID, error)
ServerityID returns a numerical severity for the fault based on the return value from ACIFaultRawSeverityIDParser.
func (*FaultParser) SubID ¶
func (f *FaultParser) SubID() (string, error)
SubID returns the fault's `sub_id`. The return value is result of pruning pattern `/fault-.*` from the fault's Distinguished Name (or DN).