Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChunkHistoryParams ¶
type ChunkHistoryParams struct {
// filter
Filter *TimeRangeFilter `json:"filter,omitempty"`
// Limit number of results in a single chunk. Undefined means +inf.
Limit *int64 `json:"limit,omitempty"`
// unit
Unit *TimeUnit `json:"unit,omitempty"`
}
ChunkHistoryParams chunk history params
swagger:model ChunkHistoryParams
func (*ChunkHistoryParams) ContextValidate ¶
ContextValidate validate this chunk history params based on the context it is used
func (*ChunkHistoryParams) MarshalBinary ¶
func (m *ChunkHistoryParams) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChunkHistoryParams) UnmarshalBinary ¶
func (m *ChunkHistoryParams) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type History ¶
type History struct {
// cmd
// Required: true
Cmd *string `json:"cmd"`
// paths
// Min Items: 1
Paths []string `json:"paths"`
// when
// Required: true
When *Timestamp `json:"when"`
}
History history
swagger:model History
func (*History) ContextValidate ¶
ContextValidate validate this history based on the context it is used
func (*History) MarshalBinary ¶
MarshalBinary interface implementation
func (*History) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type HistoryBlock ¶
type HistoryBlock struct {
// count
// Required: true
Count *int64 `json:"count"`
// from
// Required: true
From *Timestamp `json:"from"`
// histories
// Min Items: 1
Histories []*History `json:"histories"`
// to
// Required: true
To *Timestamp `json:"to"`
}
HistoryBlock history block
swagger:model HistoryBlock
func (*HistoryBlock) ContextValidate ¶
ContextValidate validate this history block based on the context it is used
func (*HistoryBlock) MarshalBinary ¶
func (m *HistoryBlock) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HistoryBlock) UnmarshalBinary ¶
func (m *HistoryBlock) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HistoryBlocks ¶
type HistoryBlocks struct {
// blocks
// Min Items: 1
Blocks []*HistoryBlock `json:"blocks"`
// unit
// Required: true
Unit *TimeUnit `json:"unit"`
}
HistoryBlocks history blocks
swagger:model HistoryBlocks
func (*HistoryBlocks) ContextValidate ¶
ContextValidate validate this history blocks based on the context it is used
func (*HistoryBlocks) MarshalBinary ¶
func (m *HistoryBlocks) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HistoryBlocks) UnmarshalBinary ¶
func (m *HistoryBlocks) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TimeRangeFilter ¶
type TimeRangeFilter struct {
// from
From *TimestampNullable `json:"from,omitempty"`
// to
To *TimestampNullable `json:"to,omitempty"`
}
TimeRangeFilter time range filter
swagger:model TimeRangeFilter
func (*TimeRangeFilter) ContextValidate ¶
ContextValidate validate this time range filter based on the context it is used
func (*TimeRangeFilter) MarshalBinary ¶
func (m *TimeRangeFilter) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TimeRangeFilter) UnmarshalBinary ¶
func (m *TimeRangeFilter) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TimeUnit ¶
type TimeUnit string
TimeUnit time unit
swagger:model TimeUnit
const ( // TimeUnitAll captures enum value "all" TimeUnitAll TimeUnit = "all" // TimeUnitYear captures enum value "year" TimeUnitYear TimeUnit = "year" // TimeUnitMonth captures enum value "month" TimeUnitMonth TimeUnit = "month" // TimeUnitWeek captures enum value "week" TimeUnitWeek TimeUnit = "week" // TimeUnitDay captures enum value "day" TimeUnitDay TimeUnit = "day" // TimeUnitHour captures enum value "hour" TimeUnitHour TimeUnit = "hour" // TimeUnitMinute captures enum value "minute" TimeUnitMinute TimeUnit = "minute" // TimeUnitSecond captures enum value "second" TimeUnitSecond TimeUnit = "second" )
func NewTimeUnit ¶
func (TimeUnit) ContextValidate ¶
ContextValidate validates this time unit based on context it is used
type Timestamp ¶
type Timestamp int64
Timestamp Timestamp in unixtime seconds.
swagger:model Timestamp
func (Timestamp) ContextValidate ¶
ContextValidate validates this timestamp based on context it is used
type TimestampNullable ¶
type TimestampNullable int64
TimestampNullable Timestamp in unixtime seconds.
swagger:model TimestampNullable
func (TimestampNullable) ContextValidate ¶
ContextValidate validates this timestamp nullable based on context it is used
type TimezoneResponse ¶
type TimezoneResponse struct {
// name
// Required: true
Name *string `json:"name"`
// Timezone offset in seconds.
// Required: true
Offset *int64 `json:"offset"`
}
TimezoneResponse timezone response
swagger:model TimezoneResponse
func (*TimezoneResponse) ContextValidate ¶
ContextValidate validates this timezone response based on context it is used
func (*TimezoneResponse) MarshalBinary ¶
func (m *TimezoneResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TimezoneResponse) UnmarshalBinary ¶
func (m *TimezoneResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation