// 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"
)

// RecordingRuleJSON RecordingRuleJSON is the external representation of a recording rule
//
// swagger:model RecordingRuleJSON
type RecordingRuleJSON struct {

	// active
	Active bool `json:"active,omitempty"`

	// count
	Count bool `json:"count,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// dest data source uid
	DestDataSourceUID string `json:"dest_data_source_uid,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// interval
	Interval int64 `json:"interval,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// prom name
	PromName string `json:"prom_name,omitempty"`

	// queries
	Queries []interface{} `json:"queries"`

	// range
	Range int64 `json:"range,omitempty"`

	// target ref id
	TargetRefID string `json:"target_ref_id,omitempty"`
}

// Validate validates this recording rule JSON
func (m *RecordingRuleJSON) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this recording rule JSON based on context it is used
func (m *RecordingRuleJSON) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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