github.com/kubearmor/cilium@v1.6.12/api/v1/health/models/load_response.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 // LoadResponse System load on node 15 // swagger:model LoadResponse 16 type LoadResponse struct { 17 18 // Load average over the past 15 minutes 19 Last15min string `json:"last15min,omitempty"` 20 21 // Load average over the past minute 22 Last1min string `json:"last1min,omitempty"` 23 24 // Load average over the past 5 minutes 25 Last5min string `json:"last5min,omitempty"` 26 } 27 28 // Validate validates this load response 29 func (m *LoadResponse) Validate(formats strfmt.Registry) error { 30 return nil 31 } 32 33 // MarshalBinary interface implementation 34 func (m *LoadResponse) MarshalBinary() ([]byte, error) { 35 if m == nil { 36 return nil, nil 37 } 38 return swag.WriteJSON(m) 39 } 40 41 // UnmarshalBinary interface implementation 42 func (m *LoadResponse) UnmarshalBinary(b []byte) error { 43 var res LoadResponse 44 if err := swag.ReadJSON(b, &res); err != nil { 45 return err 46 } 47 *m = res 48 return nil 49 }