// 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 (
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// CentralQuerySlowQueriesBody central query slow queries body
//
// swagger:model centralQuerySlowQueriesBody
type CentralQuerySlowQueriesBody struct {

	// begin time
	BeginTime int32 `json:"begin_time,omitempty"`

	// db
	Db []string `json:"db"`

	// desc
	Desc bool `json:"desc,omitempty"`

	// digest
	Digest string `json:"digest,omitempty"`

	// end time
	EndTime int32 `json:"end_time,omitempty"`

	// fields
	Fields string `json:"fields,omitempty"`

	// limit
	Limit int32 `json:"limit,omitempty"`

	// order by
	OrderBy string `json:"orderBy,omitempty"`

	// plans
	Plans []string `json:"plans"`

	// text
	Text string `json:"text,omitempty"`
}

// Validate validates this central query slow queries body
func (m *CentralQuerySlowQueriesBody) Validate(formats strfmt.Registry) error {
	return nil
}

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

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