Documentation
¶
Index ¶
- Constants
- Variables
- func NewReaderCube() (rhandler.TypedHandler, error)
- func ReaderCubeDatlyType() reflect.Type
- func ReaderDatlyType() reflect.Type
- type ReaderComponent
- type ReaderCubeComponent
- type ReaderCubeDimensions
- type ReaderCubeFilters
- type ReaderCubeFiltersHas
- type ReaderCubeInput
- type ReaderCubeMeasures
- type ReaderCubeOutput
- type RunReportInput
- func (input *RunReportInput) Init(context.Context) error
- func (input *RunReportInput) SetConversationPattern(value string)
- func (input *RunReportInput) SetErrorPattern(value string)
- func (input *RunReportInput) SetFields(value []string)
- func (input *RunReportInput) SetInternalMode(value bool)
- func (input *RunReportInput) SetReportMode(value string)
- func (input *RunReportInput) SetScheduleId(value string)
- func (input *RunReportInput) SetSinceTurn(value string)
- func (input *RunReportInput) SetStatusPattern(value string)
- func (input *RunReportInput) SetVisibilitySubject(value *string)
- type RunReportInputHas
- type RunReportOutput
- type RunReportView
Constants ¶
View Source
const ReaderDatlyResourceNamespace = "datly_run_cube_reader"
DatlyResourceNamespace identifies this package's generated resource filesystem.
Variables ¶
View Source
var ReaderCubeDatly = new(ReaderCubeComponent)
View Source
var ReaderCubeHandler = ReaderCubeComponent{}.DatlyHandler
View Source
var ReaderDatly = new(ReaderComponent)
The public value supports explicit component wiring.
View Source
var ReaderDatlyResources embed.FS
Functions ¶
func NewReaderCube ¶
func NewReaderCube() (rhandler.TypedHandler, error)
func ReaderCubeDatlyType ¶
func ReaderDatlyType ¶
ReaderDatlyType returns the public component type.
Types ¶
type ReaderComponent ¶
type ReaderComponent struct {
Contract xdatly.Component[RunReportInput, RunReportOutput] "" /* 207-byte string literal not displayed */
}
Component is the generated component scaffold for reader.
func (ReaderComponent) EmbedFS ¶
func (ReaderComponent) EmbedFS() *embed.FS
func (ReaderComponent) EmbedNamespace ¶
func (ReaderComponent) EmbedNamespace() string
type ReaderCubeComponent ¶
type ReaderCubeComponent struct {
Contract xdatly.Component[ReaderCubeInput, ReaderCubeOutput] "" /* 154-byte string literal not displayed */
}
func (ReaderCubeComponent) DatlyHandler ¶
func (ReaderCubeComponent) DatlyHandler(name string) func() (rhandler.TypedHandler, error)
type ReaderCubeDimensions ¶
type ReaderCubeDimensions struct {
ScheduleId bool "json:\"scheduleId,omitempty\" desc:\"schedule_id\""
Status bool "json:\"status,omitempty\" desc:\"status\""
ConversationKind bool "json:\"conversationKind,omitempty\" desc:\"conversation_kind\""
EffectiveUserId bool "json:\"effectiveUserId,omitempty\" desc:\"effective_user_id\""
}
type ReaderCubeFilters ¶
type ReaderCubeFilters struct {
ScheduleId *string "json:\"scheduleId,omitempty\""
StatusPattern *string "json:\"statusPattern,omitempty\""
ConversationPattern *string "json:\"conversationPattern,omitempty\""
ErrorPattern *string "json:\"errorPattern,omitempty\""
SinceTurn *string "json:\"sinceTurn,omitempty\""
Has *ReaderCubeFiltersHas "setMarker:\"true\" json:\"-\" sqlx:\"-\""
}
func (*ReaderCubeFilters) SetConversationPattern ¶
func (v *ReaderCubeFilters) SetConversationPattern(value *string)
func (*ReaderCubeFilters) SetErrorPattern ¶
func (v *ReaderCubeFilters) SetErrorPattern(value *string)
func (*ReaderCubeFilters) SetScheduleId ¶
func (v *ReaderCubeFilters) SetScheduleId(value *string)
func (*ReaderCubeFilters) SetSinceTurn ¶
func (v *ReaderCubeFilters) SetSinceTurn(value *string)
func (*ReaderCubeFilters) SetStatusPattern ¶
func (v *ReaderCubeFilters) SetStatusPattern(value *string)
type ReaderCubeFiltersHas ¶
type ReaderCubeInput ¶
type ReaderCubeInput struct {
Dimensions ReaderCubeDimensions "json:\"dimensions,omitempty\" desc:\"Selected grouping dimensions\" parameter:\"Dimensions,kind=body,in=dimensions\""
Measures ReaderCubeMeasures "json:\"measures,omitempty\" desc:\"Selected aggregate measures\" parameter:\"Measures,kind=body,in=measures\""
Filters ReaderCubeFilters "json:\"filters,omitempty\" desc:\"Report filters\" parameter:\"Filters,kind=body,in=filters\""
OrderBy []string "json:\"orderBy,omitempty\" desc:\"Grouped result ordering\" parameter:\"OrderBy,kind=body,in=orderBy\""
Limit *int "json:\"limit,omitempty\" desc:\"Maximum grouped rows\" parameter:\"Limit,kind=body,in=limit\""
Offset *int "json:\"offset,omitempty\" desc:\"Grouped row offset\" parameter:\"Offset,kind=body,in=offset\""
}
type ReaderCubeMeasures ¶
type ReaderCubeOutput ¶
type ReaderCubeOutput = RunReportOutput
type RunReportInput ¶
type RunReportInput struct {
InternalMode bool `parameter:"InternalMode,kind=runaccess,in=internal,dataType=bool,required=true"`
ReportMode string `parameter:"ReportMode,kind=runaccess,in=reportMode,dataType=string,required=true"`
VisibilitySubject *string `parameter:"VisibilitySubject,kind=visibility,in=subject,dataType=*string,required=true"`
ScheduleId string `parameter:"ScheduleId,kind=query,in=scheduleId,dataType=string,required=false" predicate:"equal,t,schedule_id"`
StatusPattern string `` /* 150-byte string literal not displayed */
ConversationPattern string `` /* 171-byte string literal not displayed */
ErrorPattern string `` /* 155-byte string literal not displayed */
SinceTurn string `` /* 152-byte string literal not displayed */
Fields []string `` /* 132-byte string literal not displayed */
Has *RunReportInputHas `setMarker:"true" typeName:"RunReportInputHas" json:"-" sqlx:"-"`
}
RunReportInput is the generated input scaffold for reader.
func (*RunReportInput) SetConversationPattern ¶
func (input *RunReportInput) SetConversationPattern(value string)
func (*RunReportInput) SetErrorPattern ¶
func (input *RunReportInput) SetErrorPattern(value string)
func (*RunReportInput) SetFields ¶
func (input *RunReportInput) SetFields(value []string)
func (*RunReportInput) SetInternalMode ¶
func (input *RunReportInput) SetInternalMode(value bool)
func (*RunReportInput) SetReportMode ¶
func (input *RunReportInput) SetReportMode(value string)
func (*RunReportInput) SetScheduleId ¶
func (input *RunReportInput) SetScheduleId(value string)
func (*RunReportInput) SetSinceTurn ¶
func (input *RunReportInput) SetSinceTurn(value string)
func (*RunReportInput) SetStatusPattern ¶
func (input *RunReportInput) SetStatusPattern(value string)
func (*RunReportInput) SetVisibilitySubject ¶
func (input *RunReportInput) SetVisibilitySubject(value *string)
type RunReportInputHas ¶
type RunReportOutput ¶
type RunReportOutput struct {
Data []*RunReportView `` /* 203-byte string literal not displayed */
}
RunReportOutput is the generated output scaffold for reader.
type RunReportView ¶
type RunReportView struct {
ScheduleId *string `groupable:"true" sqlx:"schedule_id,refTable=schedule,refColumn=id" json:"scheduleId"`
Status string `groupable:"true" sqlx:"status,required=true" json:"status"`
ConversationKind string `groupable:"true" sqlx:"conversation_kind,required=true" json:"conversationKind"`
EffectiveUserId *string `groupable:"true" sqlx:"effective_user_id" json:"effectiveUserId"`
RecordCount int `groupable:"false" sqlx:"record_count" json:"recordCount"`
TotalTokens *int `groupable:"false" sqlx:"total_tokens" json:"totalTokens"`
TotalCost *float64 `groupable:"false" sqlx:"total_cost" json:"totalCost"`
}
RunReportView is generated canonical view metadata for reader.
Click to show internal directories.
Click to hide internal directories.