Documentation ¶
Index ¶
- Variables
- type AppObjectDef
- type AppStructure
- type AppStructureAppMeta
- type AppStructureBookmark
- type AppStructureDimensionMeta
- type AppStructureMeasureMeta
- type AppStructureNoScenarioActionsError
- type AppStructureObject
- type AppStructureObjectNotFoundError
- type AppStructurePopulatedObjects
- type MetaDef
- type ObjectType
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ObjectTypeEnumMap, _ = enummap.NewEnumMap(map[string]int{
"dimension": int(ObjectTypeDimension),
"measure": int(ObjectTypeMeasure),
"bookmark": int(ObjectTypeBookmark),
"masterobject": int(ObjectTypeMasterObject),
"auto-chart": int(ObjectTypeAutoChart),
"sheet": int(ObjectSheet),
"loadmodel": int(ObjectLoadModel),
"appprops": int(ObjectAppprops),
})
)
Functions ¶
This section is empty.
Types ¶
type AppObjectDef ¶
type AppObjectDef struct { // Id of object Id string `json:"id"` // Type of Sense object Type string `json:"type"` }
AppObjectDef title and ID of a Sense object
type AppStructure ¶
type AppStructure struct { AppMeta AppStructureAppMeta `json:"meta"` // Objects in Sense app Objects map[string]AppStructureObject `json:"objects"` // Bookmark list of bookmarks in the app Bookmarks map[string]AppStructureBookmark `json:"bookmarks"` }
AppStructure of Sense app
func (*AppStructure) GetSelectables ¶
func (structure *AppStructure) GetSelectables(rooObject string) ([]AppStructureObject, error)
GetSelectables get selectable objects from app structure
type AppStructureAppMeta ¶
type AppStructureAppMeta struct { // Title of the app Title string `json:"title"` // Guid of the app Guid string `json:"guid"` }
AppStructureAppMeta meta information about the app
type AppStructureBookmark ¶
type AppStructureBookmark struct { // ID of bookmark ID string `json:"id"` // Title of bookmark Title string `json:"title"` // Description of bookmark Description string `json:"description"` // SheetId connected sheet ID, null if none SheetId *string `json:"sheetId,omitempty"` // SelectionFields fields bookmark would select in SelectionFields string `json:"selectionFields"` // RawProperties of Bookmark object RawProperties json.RawMessage `json:"rawProperties,omitempty"` }
AppStructureBookmark list of bookmarks in the app
type AppStructureDimensionMeta ¶
type AppStructureDimensionMeta struct { // Meta information, only included for library items Meta *MetaDef `json:"meta,omitempty"` // LibraryId connects dimension to separately defined dimension LibraryId string `json:"libraryId,omitempty"` // LabelExpression optional parameter with label expression LabelExpression string `json:"labelExpression,omitempty"` // Defs definitions of dimension Defs []string `json:"defs,omitempty"` // Labels of dimension Labels []string `json:"labels,omitempty"` }
type AppStructureMeasureMeta ¶
type AppStructureMeasureMeta struct { // Meta information, only included for library items Meta *MetaDef `json:"meta,omitempty"` // LibraryId connects measure to separately defined measure LibraryId string `json:"libraryId,omitempty"` // Label of on measure Label string `json:"label,omitempty"` // Def the actual measure definition Def string `json:"def,omitempty"` }
type AppStructureNoScenarioActionsError ¶
type AppStructureNoScenarioActionsError struct{}
func (AppStructureNoScenarioActionsError) Error ¶
func (err AppStructureNoScenarioActionsError) Error() string
Error no applicable actions found in scenario
type AppStructureObject ¶
type AppStructureObject struct { AppObjectDef MetaDef // RawBaseProperties of Sense object RawBaseProperties json.RawMessage `json:"rawBaseProperties,omitempty"` // RawExtendedProperties of extended Sense object RawExtendedProperties json.RawMessage `json:"rawExtendedProperties,omitempty"` // RawGeneratedProperties inner generated properties of auto-chart RawGeneratedProperties json.RawMessage `json:"rawGeneratedProperties,omitempty"` // Children to the sense object Children map[string]string `json:"children,omitempty"` // Selectable true if select can be done in object Selectable bool `json:"selectable"` // Dimensions meta information of dimensions defined in object Dimensions []AppStructureDimensionMeta `json:"dimensions,omitempty"` // Measures meta information of measures defined in object Measures []AppStructureMeasureMeta `json:"measures,omitempty"` // ExtendsId ID of linked object ExtendsId string `json:"extendsId,omitempty"` // Visualization visualization of object, if exists Visualization string `json:"visualization,omitempty"` }
AppStructureObject sense object structure
type AppStructureObjectNotFoundError ¶
type AppStructureObjectNotFoundError string
func (AppStructureObjectNotFoundError) Error ¶
func (err AppStructureObjectNotFoundError) Error() string
Error object was not found in app structure
type AppStructurePopulatedObjects ¶
type AppStructurePopulatedObjects struct { // Parent id of the parent object Parent string // Objects first level app objects returned by the current action Objects []AppStructureObject // Bookmark bookmarks returned by the current action Bookmarks []AppStructureBookmark }
AppStructurePopulatedObjects is the type returned by an action when prompted for selectable objects
type MetaDef ¶
type MetaDef struct { // Title of library item Title string `json:"title,omitempty"` // Description of library item Description string `json:"description,omitempty"` // Tags of of library item Tags []string `json:"tags,omitempty"` }
MetaDef meta information for Library objects such as dimension and measure
type ObjectType ¶
type ObjectType int
const ( ObjectTypeDefault ObjectType = iota ObjectTypeDimension ObjectTypeMeasure ObjectTypeBookmark ObjectTypeMasterObject ObjectTypeAutoChart ObjectSheet ObjectLoadModel ObjectAppprops )
Click to show internal directories.
Click to hide internal directories.