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

// AlertInstancesResponse alert instances response
//
// swagger:model AlertInstancesResponse
type AlertInstancesResponse struct {

	// Instances is an array of arrow encoded dataframes
	// each frame has a single row, and a column for each instance (alert identified by unique labels) with a boolean value (firing/not firing)
	Instances [][]uint8 `json:"instances"`
}

// Validate validates this alert instances response
func (m *AlertInstancesResponse) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this alert instances response based on context it is used
func (m *AlertInstancesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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