// Code generated by go-swagger; DO NOT EDIT.

package types

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	strfmt "github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// ThrottlingData ThrottlingData stores CPU throttling stats of one running container.
// swagger:model ThrottlingData
type ThrottlingData struct {

	// Number of periods with throttling active.
	Periods uint64 `json:"periods,omitempty"`

	// Number of periods when the container hits its throttling limit.
	ThrottledPeriods uint64 `json:"throttled_periods,omitempty"`

	// Aggregate time the container was throttled for in nanoseconds.
	ThrottledTime uint64 `json:"throttled_time,omitempty"`
}

// Validate validates this throttling data
func (m *ThrottlingData) Validate(formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *ThrottlingData) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *ThrottlingData) UnmarshalBinary(b []byte) error {
	var res ThrottlingData
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
