github.com/kubearmor/cilium@v1.6.12/api/v1/models/monitor_status.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 // MonitorStatus Status of the node monitor 15 // swagger:model MonitorStatus 16 type MonitorStatus struct { 17 18 // Number of CPUs to listen on for events. 19 Cpus int64 `json:"cpus,omitempty"` 20 21 // Number of samples lost by perf. 22 Lost int64 `json:"lost,omitempty"` 23 24 // Number of pages used for the perf ring buffer. 25 Npages int64 `json:"npages,omitempty"` 26 27 // Pages size used for the perf ring buffer. 28 Pagesize int64 `json:"pagesize,omitempty"` 29 30 // Number of unknown samples. 31 Unknown int64 `json:"unknown,omitempty"` 32 } 33 34 // Validate validates this monitor status 35 func (m *MonitorStatus) Validate(formats strfmt.Registry) error { 36 return nil 37 } 38 39 // MarshalBinary interface implementation 40 func (m *MonitorStatus) MarshalBinary() ([]byte, error) { 41 if m == nil { 42 return nil, nil 43 } 44 return swag.WriteJSON(m) 45 } 46 47 // UnmarshalBinary interface implementation 48 func (m *MonitorStatus) UnmarshalBinary(b []byte) error { 49 var res MonitorStatus 50 if err := swag.ReadJSON(b, &res); err != nil { 51 return err 52 } 53 *m = res 54 return nil 55 }