github.com/kubearmor/cilium@v1.6.12/api/v1/models/message_forwarding_statistics.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 package models 4 5 // This file was generated by the swagger tool. 6 // Editing this file might prove futile when you re-run the swagger generate command 7 8 import ( 9 strfmt "github.com/go-openapi/strfmt" 10 11 "github.com/go-openapi/swag" 12 ) 13 14 // MessageForwardingStatistics Statistics of a message forwarding entity 15 // swagger:model MessageForwardingStatistics 16 type MessageForwardingStatistics struct { 17 18 // Number of messages denied 19 Denied int64 `json:"denied,omitempty"` 20 21 // Number of errors while parsing messages 22 Error int64 `json:"error,omitempty"` 23 24 // Number of messages forwarded 25 Forwarded int64 `json:"forwarded,omitempty"` 26 27 // Number of messages received 28 Received int64 `json:"received,omitempty"` 29 } 30 31 // Validate validates this message forwarding statistics 32 func (m *MessageForwardingStatistics) Validate(formats strfmt.Registry) error { 33 return nil 34 } 35 36 // MarshalBinary interface implementation 37 func (m *MessageForwardingStatistics) MarshalBinary() ([]byte, error) { 38 if m == nil { 39 return nil, nil 40 } 41 return swag.WriteJSON(m) 42 } 43 44 // UnmarshalBinary interface implementation 45 func (m *MessageForwardingStatistics) UnmarshalBinary(b []byte) error { 46 var res MessageForwardingStatistics 47 if err := swag.ReadJSON(b, &res); err != nil { 48 return err 49 } 50 *m = res 51 return nil 52 }