Documentation ¶
Index ¶
- Constants
- Variables
- func ServiceIdToTopic(id string) string
- type Analytics
- func (this *Analytics) DeployDevice(token auth.AuthToken, label string, user string, deploymentId string, ...) (pipelineId string, err error)
- func (this *Analytics) DeployDeviceWithMarshaller(token auth.AuthToken, label string, user string, deploymentId string, ...) (pipelineId string, err error)
- func (this *Analytics) DeployGenericSource(token auth.AuthToken, label string, user string, ...) (pipelineId string, err error)
- func (this *Analytics) DeployGroup(token auth.AuthToken, label string, user string, ...) (pipelineId string, err error)
- func (this *Analytics) DeployImport(token auth.AuthToken, label string, user string, ...) (pipelineId string, err error)
- func (this *Analytics) GetEventStates(owner string, eventIds []string) (states map[string]bool, err error)
- func (this *Analytics) GetFlowInputs(id string, user string) (result []FlowModelCell, err error, code int)
- func (this *Analytics) GetPipelineByEventId(owner string, eventId string) (pipelineId string, exists bool, err error)
- func (this *Analytics) GetPipelinesByDeploymentId(owner string, deploymentId string) (pipelineIds []string, err error)
- func (this *Analytics) GetPipelinesByDeviceGroupId(owner string, groupId string) (pipelineIds []string, ...)
- func (this *Analytics) Remove(user string, pipelineId string) error
- func (this *Analytics) UpdateGroupDeployment(token auth.AuthToken, pipelineId string, label string, user string, ...) (err error)
- type CellConfig
- type EventNode
- type EventPipelineDescription
- type FactoryType
- type Flow
- type FlowModel
- type FlowModelCell
- type InputTopic
- type Mapping
- type NodeConfig
- type NodeInput
- type NodeValue
- type Operator
- type Pipeline
- type PipelineNode
- type PipelineRequest
Constants ¶
View Source
const DeviceFilterType = "deviceId"
View Source
const ImportFilterType = "ImportId"
Variables ¶
View Source
var Factory = &FactoryType{}
Functions ¶
func ServiceIdToTopic ¶
Types ¶
type Analytics ¶
type Analytics struct {
// contains filtered or unexported fields
}
func (*Analytics) DeployDevice ¶
func (this *Analytics) DeployDevice(token auth.AuthToken, label string, user string, deploymentId string, flowId string, eventId string, deviceId string, serviceId string, value string, path string, castFrom string, castTo string, castExtensions []model.ConverterExtension) (pipelineId string, err error)
func (*Analytics) DeployDeviceWithMarshaller ¶
func (this *Analytics) DeployDeviceWithMarshaller(token auth.AuthToken, label string, user string, deploymentId string, flowId string, eventId string, deviceId string, serviceId string, value string, path string, functionId string, aspectNodeId string, targetCharacteristicId string) (pipelineId string, err error)
func (*Analytics) DeployGenericSource ¶
func (*Analytics) DeployGroup ¶
func (this *Analytics) DeployGroup(token auth.AuthToken, label string, user string, desc model.GroupEventDescription, serviceIds []string, serviceToDeviceIdsMapping map[string][]string, serviceToPathsMapping map[string][]string, serviceToPathAndCharacteristic map[string][]model.PathAndCharacteristic, castExtensions []model.ConverterExtension, useMarshaller bool) (pipelineId string, err error)
func (*Analytics) DeployImport ¶
func (*Analytics) GetEventStates ¶
func (*Analytics) GetFlowInputs ¶
func (*Analytics) GetPipelineByEventId ¶
func (*Analytics) GetPipelinesByDeploymentId ¶
func (*Analytics) GetPipelinesByDeviceGroupId ¶
func (*Analytics) UpdateGroupDeployment ¶
func (this *Analytics) UpdateGroupDeployment(token auth.AuthToken, pipelineId string, label string, user string, desc model.GroupEventDescription, serviceIds []string, serviceToDeviceIdsMapping map[string][]string, serviceToPathsMapping map[string][]string, serviceToPathAndCharacteristic map[string][]model.PathAndCharacteristic, castExtensions []model.ConverterExtension, useMarshaller bool) (err error)
type CellConfig ¶
type EventNode ¶
type EventNode struct { Id string `json:"id"` Name string `json:"name"` Configs []NodeConfig `json:"configs"` }
type EventPipelineDescription ¶
type EventPipelineDescription struct { GenericEventSource *deploymentmodel.GenericEventSource `json:"generic_event_source,omitempty"` ImportId string `json:"import_id,omitempty"` DeviceGroupId string `json:"device_group_id,omitempty"` DeviceId string `json:"device_id,omitempty"` ServiceId string `json:"service_id,omitempty"` FunctionId string `json:"function_id,omitempty"` AspectId string `json:"aspect_id,omitempty"` ValuePath string `json:"value_path,omitempty"` OperatorValue string `json:"operator_value"` EventId string `json:"event_id"` DeploymentId string `json:"deployment_id"` FlowId string `json:"flow_id,omitempty"` UseMarshaller bool `json:"use_marshaller,omitempty"` }
type FactoryType ¶
type FactoryType struct{}
func (*FactoryType) New ¶
func (this *FactoryType) New(ctx context.Context, config config.Config) (interfaces.Analytics, error)
type FlowModel ¶
type FlowModel struct {
Cells []FlowModelCell `json:"cells"`
}
type FlowModelCell ¶
type FlowModelCell struct { Id string `json:"id"` Name string `json:"name"` DeploymentType string `json:"deploymentType"` InPorts []string `json:"inPorts,omitempty"` OutPorts []string `json:"outPorts,omitempty"` Type string `json:"type"` Source map[string]interface{} `json:"source"` Target map[string]interface{} `json:"target"` Image string `json:"image"` Config []CellConfig `json:"config,omitempty"` OperatorId string `json:"operatorId"` }
type InputTopic ¶
type NodeConfig ¶
type Operator ¶
type Operator struct { Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` ImageId string `json:"imageId,omitempty"` DeploymentType string `json:"deploymentType,omitempty"` OperatorId string `json:"operatorId,omitempty"` Config map[string]string `json:"config,omitempty"` InputTopics []InputTopic }
type PipelineNode ¶
type PipelineNode struct { NodeId string `json:"nodeId,omitempty"` Inputs []NodeInput `json:"inputs,omitempty"` Config []NodeConfig `json:"config,omitempty"` }
type PipelineRequest ¶
Click to show internal directories.
Click to hide internal directories.