69 lines
1.7 KiB
Go
69 lines
1.7 KiB
Go
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
package models
|
|
|
|
// This file was generated by the swagger tool.
|
|
// Editing this file might prove futile when you re-run the swagger generate command
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/go-openapi/strfmt"
|
|
"github.com/go-openapi/swag"
|
|
)
|
|
|
|
// CommonECUStat common e c u stat
|
|
//
|
|
// swagger:model common.ECUStat
|
|
type CommonECUStat struct {
|
|
|
|
// ecu name
|
|
EcuName string `json:"ecu_name,omitempty"`
|
|
|
|
// incorrect val signal pct
|
|
IncorrectValSignalPct float64 `json:"incorrect_val_signal_pct,omitempty"`
|
|
|
|
// number of ecu signals
|
|
NumberOfEcuSignals int64 `json:"number_of_ecu_signals,omitempty"`
|
|
|
|
// signals all zero
|
|
SignalsAllZero int64 `json:"signals_all_zero,omitempty"`
|
|
|
|
// signals w incorrect values
|
|
SignalswIncorrectValues int64 `json:"signals_w_incorrect_values,omitempty"`
|
|
|
|
// total signal records
|
|
TotalSignalRecords int64 `json:"total_signal_records,omitempty"`
|
|
|
|
// zero signals pct
|
|
ZeroSignalsPct float64 `json:"zero_signals_pct,omitempty"`
|
|
}
|
|
|
|
// Validate validates this common e c u stat
|
|
func (m *CommonECUStat) Validate(formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// ContextValidate validates this common e c u stat based on context it is used
|
|
func (m *CommonECUStat) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// MarshalBinary interface implementation
|
|
func (m *CommonECUStat) MarshalBinary() ([]byte, error) {
|
|
if m == nil {
|
|
return nil, nil
|
|
}
|
|
return swag.WriteJSON(m)
|
|
}
|
|
|
|
// UnmarshalBinary interface implementation
|
|
func (m *CommonECUStat) UnmarshalBinary(b []byte) error {
|
|
var res CommonECUStat
|
|
if err := swag.ReadJSON(b, &res); err != nil {
|
|
return err
|
|
}
|
|
*m = res
|
|
return nil
|
|
}
|