Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetNode ¶
type AssetNode struct { Criticality Criticality `json:"criticality"` Type string `json:"type,omitempty"` Class string `json:"class,omitempty"` Sequence string `json:"sequence,omitempty"` }
type BaseNode ¶
type BaseNode struct { ID uuid.UUID `json:"id"` Type NodeType `json:"nodeType"` SubType NodeSubType `json:"nodeSubType"` Origin *Origin `json:"origin,omitempty"` Label string `json:"label"` Description string `json:"description"` Tags string `json:"tags"` }
Node represent a hierarchy node
type Criticality ¶
type Criticality string
const ( CriticalityA Criticality = "criticality_a" CriticalityB Criticality = "criticality_b" CriticalityC Criticality = "criticality_c" CriticalityUnknown Criticality = "criticality_unknown" )
func ParseCriticality ¶ added in v1.16.0
func ParseCriticality(dbCriticality string) Criticality
func (Criticality) ValidateCriticaltiy ¶ added in v1.16.0
func (cr Criticality) ValidateCriticaltiy() error
type InspectionPoint ¶
type InspectionPoint struct { ValueType ValueType `json:"valueType"` NumericUnit string `json:"unit"` Answers Answers `json:"answers"` VisualizationType VisualizationType `json:"visualizationType"` VisualizationMinValue string `json:"visualizationMinValue"` VisualizationMaxValue string `json:"visualizationMaxValue"` }
type MeasurementPoint ¶
type MeasurementPoint struct { Bearing int32 `json:"bearing"` Angular Orientation `json:"orientation"` MeasurementType MeasurementType `json:"measurementType"` Shaft string `json:"shaft"` ShaftSide ShaftSide `json:"shaftSide"` FixedSpeedRPM float64 `json:"fixedSpeedRPM"` }
type MeasurementType ¶
type MeasurementType string
const ( Displacement MeasurementType = "displacement" Acceleration MeasurementType = "acceleration" Velocity MeasurementType = "velocity" Temperature MeasurementType = "temperature" DCGAP MeasurementType = "dc_gap" AMPLPHASE MeasurementType = "ampl_phase" BOV MeasurementType = "bov" Speed MeasurementType = "speed" Envelope3 MeasurementType = "envelope_3" Envelope2 MeasurementType = "envelope_2" )
type Node ¶
type Node struct { BaseNode *AssetNode *MeasurementPoint *InspectionPoint }
type NodeSubType ¶
type NodeSubType string
const ( NodeSubTypeRoot NodeSubType = "root" NodeSubTypeCompany NodeSubType = "company" NodeSubTypeSite NodeSubType = "site" NodeSubTypePlant NodeSubType = "plant" NodeSubTypeShip NodeSubType = "ship" NodeSubTypeSystem NodeSubType = "system" NodeSubTypeFunctionalLocation NodeSubType = "functional_location" NodeSubTypeAsset NodeSubType = "asset" NodeSubTypeMeasurementPoint NodeSubType = "measurement_point" NodeSubTypeInspectionPoint NodeSubType = "inspection_point" )
type NodeType ¶
type NodeType string
const ( NodeTypeRoot NodeType = "root" NodeTypeCompany NodeType = "company" NodeTypeSite NodeType = "site" NodeTypePlant NodeType = "plant" NodeTypeSystem NodeType = "system" NodeTypeFunctionalLocation NodeType = "functional_location" NodeTypeAsset NodeType = "asset" NodeTypeMeasurementPoint NodeType = "measurement_point" NodeTypeInspectionPoint NodeType = "inspection_point" )
type Orientation ¶
type Orientation string
const ( Axial Orientation = "axial" Radial Orientation = "radial" Horizontal Orientation = "horizontal" Vertical Orientation = "vertical" )
type Relation ¶
type Relation struct { ID uuid.UUID `json:"id"` FromID uuid.UUID `json:"fromId"` ToID uuid.UUID `json:"toId"` }
Relation represents a relation between two nodes
type VisualizationType ¶
type VisualizationType string
VisualizationType - defines visualization type when value type is numeric
const ( VisualizationTypeNone VisualizationType = "visualization_none" VisualizationTypeCircularGauge VisualizationType = "visualization_circular_gauge" VisualizationTypeLevelGauge VisualizationType = "visualization_level_gauge" )
Constants for VisualizationType
Click to show internal directories.
Click to hide internal directories.