| 92 | } |
| 93 | |
| 94 | func (m *BaseMetrics) validateOs(formats strfmt.Registry) error { |
| 95 | if swag.IsZero(m.Os) { // not required |
| 96 | return nil |
| 97 | } |
| 98 | |
| 99 | if m.Os != nil { |
| 100 | if err := m.Os.Validate(formats); err != nil { |
| 101 | if ve, ok := err.(*errors.Validation); ok { |
| 102 | return ve.ValidateName("os") |
| 103 | } else if ce, ok := err.(*errors.CompositeError); ok { |
| 104 | return ce.ValidateName("os") |
| 105 | } |
| 106 | return err |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | return nil |
| 111 | } |
| 112 | |
| 113 | func (m *BaseMetrics) validateUtcStartupTimestamp(formats strfmt.Registry) error { |
| 114 | |