model

package
v0.0.0-...-f5406f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CamundaCompleteRequest

type CamundaCompleteRequest struct {
	WorkerId  string                     `json:"workerId,omitempty"`
	Variables map[string]CamundaVariable `json:"localVariables,omitempty"`
}

type CamundaExternalTask

type CamundaExternalTask struct {
	Id                  string                     `json:"id,omitempty"`
	Variables           map[string]CamundaVariable `json:"variables,omitempty"`
	ActivityId          string                     `json:"activityId,omitempty"`
	Retries             int64                      `json:"retries"`
	ExecutionId         string                     `json:"executionId"`
	ProcessInstanceId   string                     `json:"processInstanceId"`
	ProcessDefinitionId string                     `json:"processDefinitionId"`
	TenantId            string                     `json:"tenantId"`
	Error               string                     `json:"errorMessage"`
}

type CamundaFetchRequest

type CamundaFetchRequest struct {
	WorkerId string         `json:"workerId,omitempty"`
	MaxTasks int64          `json:"maxTasks,omitempty"`
	Topics   []CamundaTopic `json:"topics,omitempty"`
}

type CamundaTopic

type CamundaTopic struct {
	Name         string `json:"topicName,omitempty"`
	LockDuration int64  `json:"lockDuration,omitempty"`
}

type CamundaVariable

type CamundaVariable struct {
	Type  string      `json:"type,omitempty"`
	Value interface{} `json:"value,omitempty"`
}

type DeviceGroupSelection

type DeviceGroupSelection struct {
	Id string `json:"id"`
}

type DeviceSelection

type DeviceSelection struct {
	DeviceId         string  `json:"device_id"`
	ServiceId        *string `json:"service_id"`
	Path             *string `json:"path"`
	CharacteristicId *string `json:"characteristic_id,omitempty"`
}

type GenericEventSource

type GenericEventSource struct {
	FilterType       string  `json:"filter_type"`
	FilterIds        string  `json:"filter_ids"`
	Topic            string  `json:"topic"`
	Path             string  `json:"path"`
	CharacteristicId *string `json:"characteristic_id,omitempty"`
}

type ImportSelection

type ImportSelection struct {
	Id               string  `json:"id"`
	Path             *string `json:"path"`
	CharacteristicId *string `json:"characteristic_id,omitempty"`
}

type IotOption

type IotOption struct {
	DeviceSelection      *DeviceSelection      `json:"device_selection,omitempty"`
	DeviceGroupSelection *DeviceGroupSelection `json:"device_group_selection,omitempty"`
	ImportSelection      *ImportSelection      `json:"import_selection,omitempty"`
	GenericEventSource   *GenericEventSource   `json:"generic_event_source,omitempty"`
}

type ModulQuery

type ModulQuery struct {
	KeyFilter  *string
	TypeFilter *string
}

type Module

type Module struct {
	Id               string
	ProcesInstanceId string
	SmartServiceModuleInit
}

type ModuleDeleteInfo

type ModuleDeleteInfo struct {
	Url    string `json:"url" bson:"url"` //url receives a DELETE request and responds with a status code < 300 || code == 404 if ok
	UserId string `json:"user_id" bson:"user_id"`
}

type SmartServiceInstance

type SmartServiceInstance struct {
	SmartServiceInstanceInit `bson:",inline"`
	Id                       string   `json:"id" bson:"id"`
	UserId                   string   `json:"user_id" bson:"user_id"`
	DesignId                 string   `json:"design_id" bson:"design_id"`
	ReleaseId                string   `json:"release_id" bson:"release_id"`
	NewReleaseId             string   `json:"new_release_id,omitempty"`
	RunningMaintenanceIds    []string `json:"running_maintenance_ids,omitempty"`
	Ready                    bool     `json:"ready" bson:"ready"`
	Deleting                 bool     `json:"deleting,omitempty" bson:"deleting"`
	Error                    string   `json:"error,omitempty" bson:"error"` //is set if module-worker notifies the repository about a error
	CreatedAt                int64    `json:"created_at" bson:"created_at"` //unix timestamp, set by service on creation
	UpdatedAt                int64    `json:"updated_at" bson:"updated_at"` //unix timestamp, set by service on creation
}

type SmartServiceInstanceInfo

type SmartServiceInstanceInfo struct {
	Name        string `json:"name" bson:"name"`
	Description string `json:"description" bson:"description"`
}

type SmartServiceInstanceInit

type SmartServiceInstanceInit struct {
	SmartServiceInstanceInfo `bson:",inline"`
	Parameters               []SmartServiceParameter `json:"parameters" bson:"parameters"`
}

type SmartServiceModule

type SmartServiceModule struct {
	SmartServiceModuleBase `bson:",inline"`
	SmartServiceModuleInit `bson:",inline"`
}

type SmartServiceModuleBase

type SmartServiceModuleBase struct {
	Id         string `json:"id"`
	UserId     string `json:"user_id" bson:"user_id"`
	InstanceId string `json:"instance_id" bson:"instance_id"`
	DesignId   string `json:"design_id" bson:"design_id"`
	ReleaseId  string `json:"release_id" bson:"release_id"`
}

type SmartServiceModuleInit

type SmartServiceModuleInit struct {
	DeleteInfo *ModuleDeleteInfo      `json:"delete_info" bson:"delete_info"`
	ModuleType string                 `json:"module_type" bson:"module_type"` //"process-deployment" | "analytics" ...
	ModuleData map[string]interface{} `json:"module_data" bson:"module_data"`
	Keys       []string               `json:"keys" bson:"keys"`
}

type SmartServiceParameter

type SmartServiceParameter struct {
	Id         string      `json:"id"`
	Value      interface{} `json:"value"`
	Label      string      `json:"label"`
	ValueLabel string      `json:"value_label,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL