Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventService ¶
type EventService struct {
redfish.EventService
}
func FromEventService ¶
func FromEventService(eventservice *redfish.EventService) (*EventService, error)
FromEventService converts a standard EventService object to the OEM implementation.
func (*EventService) SubmitTestEvent ¶
func (eventservice *EventService) SubmitTestEvent(msgID string) error
SubmitTestEvent sends event according to msgId and returns error. ZT systems redfish current firmware limits the SubmitTestEvent() request rate. The first request will be OK, but if another request is sent with-in 5-15 sec, it will get a 400 error response. This issue is reported at https://bugzilla.redhat.com/show_bug.cgi?id=2094842 To work around this limit, we retry sending the request until we get a good response.
func (*EventService) Subscribe ¶
func (eventservice *EventService) Subscribe(eventsReceiverURL string, protocol redfish.EventDestinationProtocol) (string, error)
Subscribe to ZT systems redfish eventsReceiverURL is the http/s URL that will accept the events sent from redfish protocol is usually "redfish"
type SubscribeResponseType ¶
type SubscribeResponseType struct { ODataContext string `json:"@odata.context"` ODataEtag string `json:"@odata.etag"` ODataID string `json:"@odata.id"` ODataType string `json:"@odata.type"` Context string `json:"Context"` DeliveryRetryPolicy string `json:"DeliveryRetryPolicy"` Description string `json:"Description"` Destination string `json:"Destination"` EventFormatType string `json:"EventFormatType"` ID int `json:"ID"` Name string `json:"Name"` Protocol string `json:"Protocol"` Status common.Status SubordinateResources bool `json:"SubordinateResources"` SubscriptionType string `json:"SubscriptionType"` }
SubscribeResponseType zt uses a unique subscription response.