import "github.com/boonlogic/amber-go-sdk"
func LoadCsvRecords(csvFile string) ([]string, error)
utility function to create csv payloads given a csv data file. output will be one continuous string of comma separated values
func PackCsvAsByteSlice(csv string) ([]byte, error)
type AmberClient struct {
// contains filtered or unexported fields
}
func NewAmberClientFromFile(licenseId *string, licenseFile *string) (*AmberClient, error)
Create new AmberClient using Amber license file
func NewAmberClientFromProfile(profile LicenseProfile) (*AmberClient, error)
Create new AmberClient given LicenseProfile structure
func (a *AmberClient) ConfigureFusion(sensorId string, payload amberModels.PutConfigRequest) (*amberModels.PutConfigResponse, *amberModels.Error)
func (a *AmberClient) ConfigureSensor(sensorId string, payload amberModels.PostConfigRequest) (*amberModels.PostConfigResponse, *amberModels.Error)
func (a *AmberClient) CreateSensor(label string) (*amberModels.PostSensorResponse, *amberModels.Error)
func (a *AmberClient) DeleteSensor(sensorId string) *amberModels.Error
func (a *AmberClient) EnableLearning(sensorId string, payload amberModels.PutConfigRequest) (*amberModels.PutConfigResponse, *amberModels.Error)
func (a *AmberClient) GetConfig(sensorId string) (*amberModels.GetConfigResponse, *amberModels.Error)
func (a *AmberClient) GetPretrainState(sensorId string) (*amberModels.GetPretrainResponse, *amberModels.Error)
func (a *AmberClient) GetRootCause(sensorId string, clusterIds []int32, patterns [][]float32) (*amberModels.GetRootCauseResponse, *amberModels.Error)
func (a *AmberClient) GetSensor(sensorId string) (*amberModels.GetSensorResponse, *amberModels.Error)
func (a *AmberClient) GetStatus(sensorId string) (*amberModels.GetStatusResponse, *amberModels.Error)
func (a *AmberClient) GetVersion() (*amberModels.Version, *amberModels.Error)
func (a *AmberClient) ListSensors() (*amberModels.GetSensorsResponse, *amberModels.Error)
func (a *AmberClient) PostOutage(sensorId string) (*amberModels.PostOutageResponse, *amberModels.Error)
func (a *AmberClient) PretrainSensor(sensorId string, payload amberModels.PostPretrainRequest) (*amberModels.PostPretrainResponse, *amberModels.Error)
func (a *AmberClient) PretrainSensorXL(sensorId string, request amberModels.PostPretrainRequest) (*amberModels.PostPretrainResponse, *amberModels.Error)
func (a *AmberClient) SetCert(cert string) error
func (a *AmberClient) SetProxy(proxy string) error
func (a *AmberClient) SetTimeout(timeout int) error
func (a *AmberClient) SetVerify(value bool) error
func (a *AmberClient) StreamFusion(sensorId string, payload amberModels.PutStreamRequest) (*amberModels.PutStreamResponse, *amberModels.Error)
func (a *AmberClient) StreamSensor(sensorId string, payload amberModels.PostStreamRequest) (*amberModels.PostStreamResponse, *amberModels.Error)
func (a *AmberClient) UpdateLabel(sensorId string, label string) (*amberModels.PutSensorResponse, *amberModels.Error)
type CustomRoundTripper struct {
.RoundTripper
Proxied http}
func (crt CustomRoundTripper) RoundTrip(req *http.Request) (res *http.Response, e error)
type LicenseProfile struct {
string `json:"username"`
Username string `json:"password"`
Password string `json:"server"`
Server string `json:"oauth-server"`
OauthServer }
import "github.com/boonlogic/amber-go-sdk/models"
const (
// FeatureConfigSubmitRuleSubmit captures enum value "submit"
string = "submit"
FeatureConfigSubmitRuleSubmit
// FeatureConfigSubmitRuleNosubmit captures enum value "nosubmit"
string = "nosubmit"
FeatureConfigSubmitRuleNosubmit )
const (
// FusionConfigSubmitRuleSubmit captures enum value "submit"
string = "submit"
FusionConfigSubmitRuleSubmit
// FusionConfigSubmitRuleNosubmit captures enum value "nosubmit"
string = "nosubmit"
FusionConfigSubmitRuleNosubmit )
const (
// PutStreamRequestSubmitRuleDefault captures enum value "default"
string = "default"
PutStreamRequestSubmitRuleDefault
// PutStreamRequestSubmitRuleSubmit captures enum value "submit"
string = "submit"
PutStreamRequestSubmitRuleSubmit
// PutStreamRequestSubmitRuleNosubmit captures enum value "nosubmit"
string = "nosubmit"
PutStreamRequestSubmitRuleNosubmit )
swagger:model endpointUsageInfo
type EndpointUsageInfo struct {
// number of calls to this endpoint during the current billing period
// Required: true
*uint64 `json:"callsThisPeriod"`
CallsThisPeriod
// total number of calls to this endpoint
// Required: true
*uint64 `json:"callsTotal"`
CallsTotal
// ISO formatted time of last call to this endpoint
// Required: true
*string `json:"lastCalled"`
LastCalled }
func (m *EndpointUsageInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this endpoint usage info based on context it is used
func (m *EndpointUsageInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *EndpointUsageInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *EndpointUsageInfo) Validate(formats strfmt.Registry) error
Validate validates this endpoint usage info
swagger:model Error
type Error struct {
// code
uint16 `json:"code,omitempty"`
Code
// message
string `json:"message,omitempty"`
Message }
func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this error based on context it is used
func (m *Error) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *Error) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *Error) Validate(formats strfmt.Registry) error
Validate validates this error
swagger:model featureConfig
type FeatureConfig struct {
// label associated with feature
string `json:"label,omitempty"`
Label
// corresponding maximum value
float32 `json:"maxVal"`
MaxVal
// the value that should be considered the minimum value for this feature. This can be set to a value larger than the actual min if you want to treat all value less than that as the same (for instance, to keep a noise spike from having undue influence in the clustering
float32 `json:"minVal"`
MinVal
// policy for submitting sensor fusion vector when this feature is updated. One of "submit", "nosubmit" (defaults to "submit")
// Enum: [submit nosubmit]
string `json:"submitRule,omitempty"`
SubmitRule
// corresponding weight
uint16 `json:"weight,omitempty"`
Weight }
func (m *FeatureConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this feature config based on context it is used
func (m *FeatureConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *FeatureConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *FeatureConfig) Validate(formats strfmt.Registry) error
Validate validates this feature config
swagger:model float32Array
type Float32Array []float32
func (m Float32Array) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this float32 array based on context it is used
func (m Float32Array) Validate(formats strfmt.Registry) error
Validate validates this float32 array
swagger:model fusionConfig
type FusionConfig struct {
// label associated with feature
// Required: true
*string `json:"label"`
Label
// policy for submitting sensor fusion vector when this feature is updated. One of "submit", "nosubmit" (defaults to "submit")
// Enum: [submit nosubmit]
string `json:"submitRule,omitempty"`
SubmitRule }
func (m *FusionConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this fusion config based on context it is used
func (m *FusionConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *FusionConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *FusionConfig) Validate(formats strfmt.Registry) error
Validate validates this fusion config
swagger:model getConfigResponse
type GetConfigResponse struct {
StreamingParameters
// number of features per sample
// Required: true
*uint16 `json:"featureCount"`
FeatureCount
// features
// Required: true
[]*FeatureConfig `json:"features"`
Features
// the percent variation (for instance, 0.025 gives 2.5% variation) used for clustering
// Required: true
*float32 `json:"percentVariation"`
PercentVariation
// override autotuned percent variation with this value
float32 `json:"percentVariationOverride,omitempty"`
PercentVariationOverride
// the number of samples to be applied before autotuning begins
// Required: true
*uint32 `json:"samplesToBuffer"`
SamplesToBuffer
// streaming window size
// Required: true
// Maximum: 500
*uint16 `json:"streamingWindowSize"`
StreamingWindowSize }
func (m *GetConfigResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get config response based on the context it is used
func (m *GetConfigResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m GetConfigResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (m *GetConfigResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *GetConfigResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
func (m *GetConfigResponse) Validate(formats strfmt.Registry) error
Validate validates this get config response
swagger:model getPretrainResponse
type GetPretrainResponse struct {
// latest pretrain message
string `json:"message,omitempty"`
Message
// state of pretraining, one of: None, Chunking, Pretraining, Pretrained, Error
// Required: true
*string `json:"state"`
State }
func (m *GetPretrainResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get pretrain response based on context it is used
func (m *GetPretrainResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *GetPretrainResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *GetPretrainResponse) Validate(formats strfmt.Registry) error
Validate validates this get pretrain response
swagger:model getRootCauseResponse
type GetRootCauseResponse []Float32Array
func (m GetRootCauseResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get root cause response based on the context it is used
func (m GetRootCauseResponse) Validate(formats strfmt.Registry) error
Validate validates this get root cause response
swagger:model getSensorResponse
type GetSensorResponse struct {
// Additional label to be assigned for sensor
// Required: true
*string `json:"label"`
Label
// Unique identifier for sensor
// Required: true
*string `json:"sensorId"`
SensorID
// Sensor usage info
// Required: true
*SensorUsageInfo `json:"usageInfo"`
UsageInfo }
func (m *GetSensorResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get sensor response based on the context it is used
func (m *GetSensorResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *GetSensorResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *GetSensorResponse) Validate(formats strfmt.Registry) error
Validate validates this get sensor response
swagger:model getSensorsResponse
type GetSensorsResponse []*SensorInstance
func (m GetSensorsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get sensors response based on the context it is used
func (m GetSensorsResponse) Validate(formats strfmt.Registry) error
Validate validates this get sensors response
swagger:model getStatusResponse
type GetStatusResponse struct {
// anomaly indexes
// Required: true
`json:"anomalyIndexes"`
AnomalyIndexes Uint16Array
// anomaly threshold
// Required: true
*uint16 `json:"anomalyThreshold"`
AnomalyThreshold
// cluster growth
// Required: true
`json:"clusterGrowth"`
ClusterGrowth Uint64Array
// cluster sizes
// Required: true
`json:"clusterSizes"`
ClusterSizes Uint64Array
// distance indexes
// Required: true
`json:"distanceIndexes"`
DistanceIndexes Uint16Array
// frequency indexes
// Required: true
`json:"frequencyIndexes"`
FrequencyIndexes Uint16Array
// num clusters
// Required: true
*uint64 `json:"numClusters"`
NumClusters
// pca
// Required: true
`json:"pca"`
Pca PCA
// state of the sensor. Possible state variables are: Error, Buffering, Autotuning, Learning, Monitoring
// Required: true
*string `json:"state"`
State
// inferences since the most recent restart
// Required: true
*uint64 `json:"totalInferences"`
TotalInferences }
func (m *GetStatusResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get status response based on the context it is used
func (m *GetStatusResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *GetStatusResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *GetStatusResponse) Validate(formats strfmt.Registry) error
Validate validates this get status response
swagger:model getSummaryResponse
type GetSummaryResponse struct {
// magic number
`json:"MagicNumber,omitempty"`
MagicNumber MagicNumber
// version number
`json:"VersionNumber,omitempty"`
VersionNumber VersionNumber
// m amber alert critical value
// Required: true
*uint64 `json:"m_AmberAlertCriticalValue"`
MAmberAlertCriticalValue
// m amber status
// Required: true
*MAmberStatus `json:"m_AmberStatus"`
MAmberStatus
// m amber warning critical value
// Required: true
*uint64 `json:"m_AmberWarningCriticalValue"`
MAmberWarningCriticalValue
// m anomaly metric by anomaly count
[]float32 `json:"m_AnomalyMetricByAnomalyCount"`
MAnomalyMetricByAnomalyCount
// m anomaly threshold
// Required: true
*uint16 `json:"m_AnomalyThreshold"`
MAnomalyThreshold
// m autotune
// Required: true
*MAutotune `json:"m_Autotune"`
MAutotune
// m autotuning elbow cluster counts
// Required: true
[]uint16 `json:"m_AutotuningElbowClusterCounts"`
MAutotuningElbowClusterCounts
// m autotuning elbow p v array
// Required: true
[]float32 `json:"m_AutotuningElbowPVArray"`
MAutotuningElbowPVArray
// m buffer stats
*MBufferStats `json:"m_BufferStats,omitempty"`
MBufferStats
// m clustering parameters initialized
bool `json:"m_ClusteringParametersInitialized,omitempty"`
MClusteringParametersInitialized
// m error string buffer
string `json:"m_ErrorStringBuffer,omitempty"`
MErrorStringBuffer
// m modified at
uint64 `json:"m_ModifiedAt,omitempty"`
MModifiedAt
// m nano
// Required: true
*MNano `json:"m_Nano"`
MNano
// m recent a ds
// Required: true
*MRecentAnalytics `json:"m_RecentADs"`
MRecentADs
// m recent a hs
// Required: true
*MRecentAnalytics `json:"m_RecentAHs"`
MRecentAHs
// m recent a ms
*MRecentAMs `json:"m_RecentAMs,omitempty"`
MRecentAMs
// m recent a ws
// Required: true
*MRecentAnalytics `json:"m_RecentAWs"`
MRecentAWs
// m recent anomaly count
uint16 `json:"m_RecentAnomalyCount,omitempty"`
MRecentAnomalyCount
// m recent i ds
*MRecentIDs `json:"m_RecentIDs,omitempty"`
MRecentIDs
// m recent r is
// Required: true
*MRecentAnalytics `json:"m_RecentRIs"`
MRecentRIs
// m recent raw samples
// Required: true
*MRecentSamples `json:"m_RecentRawSamples"`
MRecentRawSamples
// m recent s is
// Required: true
*MRecentAnalytics `json:"m_RecentSIs"`
MRecentSIs
// m recent samples
// Required: true
*MRecentSamples `json:"m_RecentSamples"`
MRecentSamples
// m recent times
// Required: true
*MRecentTimes `json:"m_RecentTimes"`
MRecentTimes
// m results ID array
[]uint32 `json:"m_ResultsIDArray"`
MResultsIDArray
// m streaming mode
bool `json:"m_StreamingMode,omitempty"`
MStreamingMode
// m streaming mode status
uint16 `json:"m_StreamingModeStatus,omitempty"`
MStreamingModeStatus
// m streaming parameters
// Required: true
*MStreamingParameters `json:"m_StreamingParameters"`
MStreamingParameters
// m training
// Required: true
*MTraining `json:"m_Training"`
MTraining
// m training samples
*MRecentSamples `json:"m_TrainingSamples,omitempty"`
MTrainingSamples }
func (m *GetSummaryResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get summary response based on the context it is used
func (m *GetSummaryResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *GetSummaryResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *GetSummaryResponse) Validate(formats strfmt.Registry) error
Validate validates this get summary response
swagger:model int32Array
type Int32Array []int32
func (m Int32Array) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this int32 array based on context it is used
func (m Int32Array) Validate(formats strfmt.Registry) error
Validate validates this int32 array
swagger:model learningParameters
type LearningParameters struct {
// learning graduation requirement for stopping learning upon reaching this cluster count
*uint16 `json:"learningMaxClusters,omitempty"`
LearningMaxClusters
// learning graduation requirement for stopping learning after acquiring this many samples
*uint64 `json:"learningMaxSamples,omitempty"`
LearningMaxSamples
// enables graduation requirements for learning
*uint64 `json:"learningRateDenominator,omitempty"`
LearningRateDenominator
// enables graduation requirements for learning
*uint64 `json:"learningRateNumerator,omitempty"`
LearningRateNumerator }
func (m *LearningParameters) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this learning parameters based on context it is used
func (m *LearningParameters) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *LearningParameters) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *LearningParameters) Validate(formats strfmt.Registry) error
Validate validates this learning parameters
swagger:model m_AP
type MAP struct {
// version number
`json:"VersionNumber,omitempty"`
VersionNumber VersionNumber
// m autotune by features
// Required: true
*bool `json:"m_AutotuneByFeatures"`
MAutotuneByFeatures
// m autotune p v
// Required: true
*bool `json:"m_AutotunePV"`
MAutotunePV
// m autotune range
// Required: true
*bool `json:"m_AutotuneRange"`
MAutotuneRange
// m features to tune array
[]uint16 `json:"m_FeaturesToTuneArray"`
MFeaturesToTuneArray
// m max clusters
uint16 `json:"m_MaxClusters,omitempty"`
MMaxClusters }
func (m *MAP) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this m a p based on the context it is used
func (m *MAP) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *MAP) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *MAP) Validate(formats strfmt.Registry) error
Validate validates this m a p
swagger:model m_AmberStatus
type MAmberStatus struct {
// version number
`json:"VersionNumber,omitempty"`
VersionNumber VersionNumber
// m current cluster count
// Required: true
*uint32 `json:"m_CurrentClusterCount"`
MCurrentClusterCount
// m message
string `json:"m_Message,omitempty"`
MMessage
// m progress
uint16 `json:"m_Progress,omitempty"`
MProgress
// m retry count
// Required: true
*uint16 `json:"m_RetryCount"`
MRetryCount
// m status
// Required: true
*string `json:"m_Status"`
MStatus
// m streaming window size
// Required: true
*uint16 `json:"m_StreamingWindowSize"`
MStreamingWindowSize
// m total inferences
// Required: true
*uint64 `json:"m_TotalInferences"`
MTotalInferences
// m total samples written
uint64 `json:"m_TotalSamplesWritten,omitempty"`
MTotalSamplesWritten }
func (m *MAmberStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this m amber status based on the context it is used
func (m *MAmberStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *MAmberStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *MAmberStatus) Validate(formats strfmt.Registry) error
Validate validates this m amber status
swagger:model m_Autotune
type MAutotune struct {
// version number
`json:"VersionNumber,omitempty"`
VersionNumber VersionNumber
// m a p
// Required: true
*MAP `json:"m_AP"`
MAP
// m autotuning in progress
bool `json:"m_AutotuningInProgress,omitempty"`
MAutotuningInProgress
// m autotuning succeeded
bool `json:"m_AutotuningSucceeded,omitempty"`
MAutotuningSucceeded
// m error string buffer
string `json:"m_ErrorStringBuffer,omitempty"`
MErrorStringBuffer
// m features to tune array
[]bool `json:"m_FeaturesToTuneArray"`
MFeaturesToTuneArray
// m n c p
*MNCP `json:"m_NCP,omitempty"`
MNCP
// m num patterns to autotune
uint64 `json:"m_NumPatternsToAutotune,omitempty"`
MNumPatternsToAutotune
// m percent complete
float64 `json:"m_PercentComplete,omitempty"`
MPercentComplete }
func (m *MAutotune) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this m autotune based on the context it is used
func (m *MAutotune) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *MAutotune) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *MAutotune) Validate(formats strfmt.Registry) error
Validate validates this m autotune
swagger:model m_BufferStats
type MBufferStats struct {
// load buffer capacity
uint64 `json:"LoadBufferCapacity,omitempty"`
LoadBufferCapacity
// load buffer length
uint64 `json:"LoadBufferLength,omitempty"`
LoadBufferLength
// total bytes processed
uint64 `json:"TotalBytesProcessed,omitempty"`
TotalBytesProcessed
// total bytes written
uint64 `json:"TotalBytesWritten,omitempty"`
TotalBytesWritten
// version number
`json:"VersionNumber,omitempty"`
VersionNumber VersionNumber }
func (m *MBufferStats) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this m buffer stats based on the context it is used
func (m *MBufferStats) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *MBufferStats) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *MBufferStats) Validate(formats strfmt.Registry) error
Validate validates this m buffer stats
swagger:model m_NCP
type MNCP struct {
// num of features
uint16 `json:"NumOfFeatures,omitempty"`
NumOfFeatures
// version number
`json:"VersionNumber,omitempty"`
VersionNumber VersionNumber
// m accuracy
float32 `json:"m_Accuracy,omitempty"`
MAccuracy
// m numeric format
uint16 `json:"m_NumericFormat,omitempty"`
MNumericFormat
// m percent variation
float32 `json:"m_PercentVariation,omitempty"`
MPercentVariation
// m streaming window size
uint16 `json:"m_StreamingWindowSize,omitempty"`
MStreamingWindowSize }
func (m *MNCP) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this m n c p based on the context it is used
func (m *MNCP) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *MNCP) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *MNCP) Validate(formats strfmt.Registry) error
Validate validates this m n c p
swagger:model m_Nano
type MNano struct {
// backend version
uint16 `json:"BackendVersion,omitempty"`
BackendVersion
// magic number
`json:"MagicNumber,omitempty"`
MagicNumber MagicNumber
// version number
`json:"VersionNumber,omitempty"`
VersionNumber VersionNumber
// m error msg
string `json:"m_ErrorMsg,omitempty"`
MErrorMsg
// m nano backend
*MNanoBackend `json:"m_NanoBackend,omitempty"`
MNanoBackend
// m nano config
// Required: true
*MNanoConfig `json:"m_NanoConfig"`
MNanoConfig }
func (m *MNano) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this m nano based on the context it is used
func (m *MNano) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *MNano) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *MNano) Validate(formats strfmt.Registry) error
Validate validates this m nano
swagger:model m_NanoBackend
type MNanoBackend struct {
// version number
`json:"VersionNumber,omitempty"`
VersionNumber VersionNumber
// m init complete
bool `json:"m_InitComplete,omitempty"`
MInitComplete
// m learning is on
bool `json:"m_LearningIsOn,omitempty"`
MLearningIsOn
// m num of patterns clustered
uint64 `json:"m_NumOfPatternsClustered,omitempty"`
MNumOfPatternsClustered
// m pattern length
uint16 `json:"m_PatternLength,omitempty"`
MPatternLength
// m pattern memory
*MPatternMemory `json:"m_PatternMemory,omitempty"`
MPatternMemory }
func (m *MNanoBackend) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this m nano backend based on the context it is used
func (m *MNanoBackend) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *MNanoBackend) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *MNanoBackend) Validate(formats strfmt.Registry) error
Validate validates this m nano backend
swagger:model m_NanoConfig
type MNanoConfig struct {
// features
// Required: true
[]*FeatureConfig `json:"Features"`
Features
// num of features
// Required: true
*uint16 `json:"NumOfFeatures"`
NumOfFeatures
// version number
`json:"VersionNumber,omitempty"`
VersionNumber VersionNumber
// m accuracy
float32 `json:"m_Accuracy,omitempty"`
MAccuracy
// m numeric format
uint16 `json:"m_NumericFormat,omitempty"`
MNumericFormat
// the percent variation (for instance, 0.025 gives 2.5% variation) used for clustering
// Required: true
*float32 `json:"m_PercentVariation"`
MPercentVariation }
func (m *MNanoConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this m nano config based on the context it is used
func (m *MNanoConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *MNanoConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *MNanoConfig) Validate(formats strfmt.Registry) error
Validate validates this m nano config
swagger:model m_PatternMemory
type MPatternMemory struct {
// version number
`json:"VersionNumber,omitempty"`
VersionNumber VersionNumber }
func (m *MPatternMemory) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this m pattern memory based on the context it is used
func (m *MPatternMemory) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *MPatternMemory) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *MPatternMemory) Validate(formats strfmt.Registry) error
Validate validates this m pattern memory
swagger:model m_RecentAMs
type MRecentAMs struct {
// version number
`json:"VersionNumber,omitempty"`
VersionNumber VersionNumber
// m values
// Required: true
[]float32 `json:"m_Values"`
MValues }
func (m *MRecentAMs) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this m recent a ms based on the context it is used
func (m *MRecentAMs) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *MRecentAMs) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *MRecentAMs) Validate(formats strfmt.Registry) error
Validate validates this m recent a ms
swagger:model m_RecentAnalytics
type MRecentAnalytics struct {
// version number
`json:"VersionNumber,omitempty"`
VersionNumber VersionNumber
// m values
// Required: true
[]uint16 `json:"m_Values"`
MValues }
func (m *MRecentAnalytics) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this m recent analytics based on the context it is used
func (m *MRecentAnalytics) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *MRecentAnalytics) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *MRecentAnalytics) Validate(formats strfmt.Registry) error
Validate validates this m recent analytics
swagger:model m_RecentFloats
type MRecentFloats struct {
// version number
`json:"VersionNumber,omitempty"`
VersionNumber VersionNumber
// m values
// Required: true
[]float32 `json:"m_Values"`
MValues }
func (m *MRecentFloats) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this m recent floats based on the context it is used
func (m *MRecentFloats) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *MRecentFloats) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *MRecentFloats) Validate(formats strfmt.Registry) error
Validate validates this m recent floats
swagger:model m_RecentIDs
type MRecentIDs struct {
// version number
`json:"VersionNumber,omitempty"`
VersionNumber VersionNumber
// m values
// Required: true
[]uint32 `json:"m_Values"`
MValues }
func (m *MRecentIDs) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this m recent i ds based on the context it is used
func (m *MRecentIDs) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *MRecentIDs) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *MRecentIDs) Validate(formats strfmt.Registry) error
Validate validates this m recent i ds
swagger:model m_RecentSamples
type MRecentSamples struct {
// version number
`json:"VersionNumber,omitempty"`
VersionNumber VersionNumber
// m values
// Required: true
[][]float32 `json:"m_Values"`
MValues }
func (m *MRecentSamples) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this m recent samples based on the context it is used
func (m *MRecentSamples) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *MRecentSamples) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *MRecentSamples) Validate(formats strfmt.Registry) error
Validate validates this m recent samples
swagger:model m_RecentTimes
type MRecentTimes struct {
// version number
`json:"VersionNumber,omitempty"`
VersionNumber VersionNumber
// m values
// Required: true
[]uint64 `json:"m_Values"`
MValues }
func (m *MRecentTimes) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this m recent times based on the context it is used
func (m *MRecentTimes) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *MRecentTimes) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *MRecentTimes) Validate(formats strfmt.Registry) error
Validate validates this m recent times
swagger:model m_StreamingParameters
type MStreamingParameters struct {
// version number
`json:"VersionNumber,omitempty"`
VersionNumber VersionNumber
// m enable autotuning
bool `json:"m_EnableAutotuning,omitempty"`
MEnableAutotuning
// m graduate at max clusters
// Required: true
*uint16 `json:"m_GraduateAtMaxClusters"`
MGraduateAtMaxClusters
// m graduate at max samples
// Required: true
*uint64 `json:"m_GraduateAtMaxSamples"`
MGraduateAtMaxSamples
// m graduation at rate denominator
// Required: true
*uint64 `json:"m_GraduationAtRateDenominator"`
MGraduationAtRateDenominator
// m graduation at rate numerator
// Required: true
*uint64 `json:"m_GraduationAtRateNumerator"`
MGraduationAtRateNumerator
// m samples to buffer for autotuning
// Required: true
*uint32 `json:"m_SamplesToBufferForAutotuning"`
MSamplesToBufferForAutotuning }
func (m *MStreamingParameters) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this m streaming parameters based on the context it is used
func (m *MStreamingParameters) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *MStreamingParameters) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *MStreamingParameters) Validate(formats strfmt.Registry) error
Validate validates this m streaming parameters
swagger:model m_Training
type MTraining struct {
// version number
[]VersionNumber `json:"VersionNumber"`
VersionNumber
// m anomaly indexes
[]uint32 `json:"m_AnomalyIndexes"`
MAnomalyIndexes
// m cluster growth
// Required: true
[]uint64 `json:"m_ClusterGrowth"`
MClusterGrowth
// m geometric plot x
// Required: true
[]uint32 `json:"m_GeometricPlotX"`
MGeometricPlotX
// m geometric plot y
// Required: true
[]float32 `json:"m_GeometricPlotY"`
MGeometricPlotY }
func (m *MTraining) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this m training based on the context it is used
func (m *MTraining) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *MTraining) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *MTraining) Validate(formats strfmt.Registry) error
Validate validates this m training
swagger:model MagicNumber
type MagicNumber uint16
func (m MagicNumber) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this magic number based on context it is used
func (m MagicNumber) Validate(formats strfmt.Registry) error
Validate validates this magic number
swagger:model PCA
type PCA [][]float32
func (m PCA) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this p c a based on context it is used
func (m PCA) Validate(formats strfmt.Registry) error
Validate validates this p c a
swagger:model postAuth2Request
type PostAuth2Request struct {
// Password for authenticating
// Required: true
*string `json:"password"`
Password
// Username for authenticating
// Required: true
*string `json:"username"`
Username }
func (m *PostAuth2Request) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this post auth2 request based on context it is used
func (m *PostAuth2Request) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *PostAuth2Request) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *PostAuth2Request) Validate(formats strfmt.Registry) error
Validate validates this post auth2 request
swagger:model postAuth2Response
type PostAuth2Response struct {
// Amount of time before token expires
// Required: true
*string `json:"expiresIn"`
ExpiresIn
// Identifier token to be used as Bearer token
// Required: true
*string `json:"idToken"`
IDToken
// Refresh token identifier
// Required: true
*string `json:"refreshToken"`
RefreshToken
// Type of authentication token
// Required: true
*string `json:"tokenType"`
TokenType }
func (m *PostAuth2Response) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this post auth2 response based on context it is used
func (m *PostAuth2Response) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *PostAuth2Response) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *PostAuth2Response) Validate(formats strfmt.Registry) error
Validate validates this post auth2 response
swagger:model postConfigRequest
type PostConfigRequest struct {
StreamingParameters
// number of features per sample
// Required: true
// Minimum: 1
*uint16 `json:"featureCount"`
FeatureCount
// features
[]*FeatureConfig `json:"features"`
Features
// override autotuned percent variation with this value
*float32 `json:"percentVariationOverride,omitempty"`
PercentVariationOverride
// the number of samples to be applied before autotuning begins
*uint32 `json:"samplesToBuffer,omitempty"`
SamplesToBuffer
// streaming window size
// Required: true
// Maximum: 500
*uint16 `json:"streamingWindowSize"`
StreamingWindowSize }
func (m *PostConfigRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this post config request based on the context it is used
func (m *PostConfigRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m PostConfigRequest) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (m *PostConfigRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *PostConfigRequest) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
func (m *PostConfigRequest) Validate(formats strfmt.Registry) error
Validate validates this post config request
swagger:model postConfigResponse
type PostConfigResponse struct {
StreamingParameters
// number of features per sample
// Required: true
*uint16 `json:"featureCount"`
FeatureCount
// features
[]*FeatureConfig `json:"features"`
Features
// override autotuned percent variation with this value
float32 `json:"percentVariationOverride,omitempty"`
PercentVariationOverride
// the number of samples to be applied before autotuning begins
// Required: true
*uint32 `json:"samplesToBuffer"`
SamplesToBuffer
// streaming window size
// Required: true
// Maximum: 500
*uint16 `json:"streamingWindowSize"`
StreamingWindowSize }
func (m *PostConfigResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this post config response based on the context it is used
func (m *PostConfigResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m PostConfigResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (m *PostConfigResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *PostConfigResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
func (m *PostConfigResponse) Validate(formats strfmt.Registry) error
Validate validates this post config response
swagger:model postOutageResponse
type PostOutageResponse struct {
StreamStatus}
func (m *PostOutageResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this post outage response based on the context it is used
func (m *PostOutageResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m PostOutageResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (m *PostOutageResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *PostOutageResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
func (m *PostOutageResponse) Validate(formats strfmt.Registry) error
Validate validates this post outage response
swagger:model postPretrainRequest
type PostPretrainRequest struct {
// autotune config
*bool `json:"autotuneConfig,omitempty"`
AutotuneConfig
// data
// Required: true
*string `json:"data"`
Data
// format of 'data' field, [csv | b64float]
*string `json:"format,omitempty"`
Format }
func (m *PostPretrainRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this post pretrain request based on context it is used
func (m *PostPretrainRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *PostPretrainRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *PostPretrainRequest) Validate(formats strfmt.Registry) error
Validate validates this post pretrain request
swagger:model postPretrainResponse
type PostPretrainResponse struct {
// amber chunk
string `json:"amberChunk,omitempty"`
AmberChunk
// amber transaction
string `json:"amberTransaction,omitempty"`
AmberTransaction
// latest pretrain message
string `json:"message,omitempty"`
Message
// state of pretraining, one of: Chunking, Pretraining, Pretrained, Error
// Required: true
*string `json:"state"`
State }
func (m *PostPretrainResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this post pretrain response based on context it is used
func (m *PostPretrainResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *PostPretrainResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *PostPretrainResponse) Validate(formats strfmt.Registry) error
Validate validates this post pretrain response
swagger:model postSensorRequest
type PostSensorRequest struct {
// Additional label to be assigned for sensor
string `json:"label,omitempty"`
Label }
func (m *PostSensorRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this post sensor request based on context it is used
func (m *PostSensorRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *PostSensorRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *PostSensorRequest) Validate(formats strfmt.Registry) error
Validate validates this post sensor request
swagger:model postSensorResponse
type PostSensorResponse struct {
// Additional label to be assigned for sensor
// Required: true
*string `json:"label"`
Label
// Unique identifier for sensor
// Required: true
*string `json:"sensorId"`
SensorID }
func (m *PostSensorResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this post sensor response based on context it is used
func (m *PostSensorResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *PostSensorResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *PostSensorResponse) Validate(formats strfmt.Registry) error
Validate validates this post sensor response
swagger:model postStreamRequest
type PostStreamRequest struct {
// data
// Required: true
*string `json:"data"`
Data
// save the sensor after calculation
*bool `json:"saveImage,omitempty"`
SaveImage }
func (m *PostStreamRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this post stream request based on context it is used
func (m *PostStreamRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *PostStreamRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *PostStreamRequest) Validate(formats strfmt.Registry) error
Validate validates this post stream request
swagger:model postStreamResponse
type PostStreamResponse struct {
StreamStatus
// a d
// Required: true
`json:"AD"`
AD Uint16Array
// a h
// Required: true
`json:"AH"`
AH Uint16Array
// a m
// Required: true
`json:"AM"`
AM Float32Array
// a w
// Required: true
`json:"AW"`
AW Uint16Array
// ID
// Required: true
`json:"ID"`
ID Int32Array
// n i
// Required: true
`json:"NI"`
NI Uint16Array
// n s
// Required: true
`json:"NS"`
NS Uint16Array
// n w
// Required: true
`json:"NW"`
NW Float32Array
// o m
// Required: true
`json:"OM"`
OM Float32Array
// r i
// Required: true
`json:"RI"`
RI Uint16Array
// s i
// Required: true
`json:"SI"`
SI Uint16Array }
func (m *PostStreamResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this post stream response based on the context it is used
func (m *PostStreamResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m PostStreamResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (m *PostStreamResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *PostStreamResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
func (m *PostStreamResponse) Validate(formats strfmt.Registry) error
Validate validates this post stream response
swagger:model putConfigRequest
type PutConfigRequest struct {
// features
[]*FusionConfig `json:"features"`
Features
// streaming
*LearningParameters `json:"streaming,omitempty"`
Streaming }
func (m *PutConfigRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this put config request based on the context it is used
func (m *PutConfigRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *PutConfigRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *PutConfigRequest) Validate(formats strfmt.Registry) error
Validate validates this put config request
swagger:model putConfigResponse
type PutConfigResponse struct {
// features
[]*FusionConfig `json:"features"`
Features
// streaming
*LearningParameters `json:"streaming,omitempty"`
Streaming }
func (m *PutConfigResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this put config response based on the context it is used
func (m *PutConfigResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *PutConfigResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *PutConfigResponse) Validate(formats strfmt.Registry) error
Validate validates this put config response
swagger:model putSensorRequest
type PutSensorRequest struct {
// Label to be updated for sensor
// Required: true
*string `json:"label"`
Label }
func (m *PutSensorRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this put sensor request based on context it is used
func (m *PutSensorRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *PutSensorRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *PutSensorRequest) Validate(formats strfmt.Registry) error
Validate validates this put sensor request
swagger:model putSensorResponse
type PutSensorResponse struct {
// Additional label to be assigned for sensor
// Required: true
*string `json:"label"`
Label
// Unique identifier for sensor
// Required: true
*string `json:"sensorId"`
SensorID }
func (m *PutSensorResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this put sensor response based on context it is used
func (m *PutSensorResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *PutSensorResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *PutSensorResponse) Validate(formats strfmt.Registry) error
Validate validates this put sensor response
swagger:model putStreamFeature
type PutStreamFeature struct {
// label associated with feature
// Required: true
*string `json:"label"`
Label
// ISO-format timestamp for this data value
string `json:"ts,omitempty"`
Ts
// new value for this feature in sensor fusion vector
// Required: true
*float32 `json:"value"`
Value }
func (m *PutStreamFeature) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this put stream feature based on context it is used
func (m *PutStreamFeature) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *PutStreamFeature) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *PutStreamFeature) Validate(formats strfmt.Registry) error
Validate validates this put stream feature
swagger:model putStreamRequest
type PutStreamRequest struct {
// Policy for submitting sensor fusion vector on this request, overriding per-feature submit rules in fusion configuration. One of "default", "submit", "nosubmit" (defaults to "default"). Under "default" policy, the per-feature settings of "submit" or "nosubmit" are used to determine whether this update to the fusion vector triggers an inference.
// Enum: [default submit nosubmit]
string `json:"submitRule,omitempty"`
SubmitRule
// vector
// Required: true
[]*PutStreamFeature `json:"vector"`
Vector }
func (m *PutStreamRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this put stream request based on the context it is used
func (m *PutStreamRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *PutStreamRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *PutStreamRequest) Validate(formats strfmt.Registry) error
Validate validates this put stream request
swagger:model putStreamResponse
type PutStreamResponse struct {
// streaming results when available
*PostStreamResponse `json:"results,omitempty"`
Results
// updated sensor fusion vector as a string of comma-separated values
// Required: true
*string `json:"vector"`
Vector }
func (m *PutStreamResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this put stream response based on the context it is used
func (m *PutStreamResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *PutStreamResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *PutStreamResponse) Validate(formats strfmt.Registry) error
Validate validates this put stream response
swagger:model sensorInstance
type SensorInstance struct {
// Additional label to be assigned for sensor
// Required: true
*string `json:"label"`
Label
// Unique identifier for sensor
// Required: true
*string `json:"sensorId"`
SensorID }
func (m *SensorInstance) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this sensor instance based on context it is used
func (m *SensorInstance) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *SensorInstance) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *SensorInstance) Validate(formats strfmt.Registry) error
Validate validates this sensor instance
swagger:model sensorUsageInfo
type SensorUsageInfo struct {
// getAmberSummary endpoint usage info
// Required: true
*EndpointUsageInfo `json:"getAmberSummary"`
GetAmberSummary
// getConfig endpoint usage info
// Required: true
*EndpointUsageInfo `json:"getConfig"`
GetConfig
// getPretrain endpoint usage info
// Required: true
*EndpointUsageInfo `json:"getPretrain"`
GetPretrain
// getRootCause endpoint usage info
// Required: true
*EndpointUsageInfo `json:"getRootCause"`
GetRootCause
// getSensor endpoint usage info
// Required: true
*EndpointUsageInfo `json:"getSensor"`
GetSensor
// getStatus endpoint usage info
// Required: true
*EndpointUsageInfo `json:"getStatus"`
GetStatus
// postConfig endpoint usage info
// Required: true
*EndpointUsageInfo `json:"postConfig"`
PostConfig
// postOutage endpoint usage info
// Required: true
*EndpointUsageInfo `json:"postOutage"`
PostOutage
// postPretrain endpoint usage info
// Required: true
*EndpointUsageInfo `json:"postPretrain"`
PostPretrain
// postStream endpoint usage info
// Required: true
*StreamingEndpointUsageInfo `json:"postStream"`
PostStream
// putSensor endpoint usage info
// Required: true
*EndpointUsageInfo `json:"putSensor"`
PutSensor }
func (m *SensorUsageInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this sensor usage info based on the context it is used
func (m *SensorUsageInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *SensorUsageInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *SensorUsageInfo) Validate(formats strfmt.Registry) error
Validate validates this sensor usage info
swagger:model streamStatus
type StreamStatus struct {
// current cluster count (applies to Learning and Monitoring states)
// Required: true
*uint32 `json:"clusterCount"`
ClusterCount
// Unix time stamp of the last posted stream data
uint64 `json:"lastModified,omitempty"`
LastModified
// number of seconds since the last posted stream data
uint64 `json:"lastModifiedDelta,omitempty"`
LastModifiedDelta
// message to accompany the current state
// Required: true
*string `json:"message"`
Message
// completion percentage (applies to Buffering and Autotuning states)
// Required: true
*uint16 `json:"progress"`
Progress
// number of restarts that have happened during autotuning
// Required: true
*uint16 `json:"retryCount"`
RetryCount
// state of the sensor, states will be prefixed with a state variable followed by a colon followed by a message indicating progress. Possible state variables are: Not streaming, Buffering, Autotuning, Learning, Learning Complete, Monitoring, Streaming error, Autotuning error, Autotuning retry
// Required: true
*string `json:"state"`
State
// the current streaming window size that is being used
// Required: true
*uint16 `json:"streamingWindowSize"`
StreamingWindowSize
// inferences since the most recent restart
// Required: true
*uint64 `json:"totalInferences"`
TotalInferences }
func (m *StreamStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this stream status based on context it is used
func (m *StreamStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *StreamStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *StreamStatus) Validate(formats strfmt.Registry) error
Validate validates this stream status
swagger:model streamingEndpointUsageInfo
type StreamingEndpointUsageInfo struct {
// number of calls to this endpoint during the current billing period
// Required: true
*uint64 `json:"callsThisPeriod"`
CallsThisPeriod
// total number of calls to this endpoint
// Required: true
*uint64 `json:"callsTotal"`
CallsTotal
// ISO formatted time of last call to this endpoint
// Required: true
*string `json:"lastCalled"`
LastCalled
// number of samples processed during the current billing period
// Required: true
*uint64 `json:"samplesThisPeriod"`
SamplesThisPeriod
// total number of samples processed
// Required: true
*uint64 `json:"samplesTotal"`
SamplesTotal }
func (m *StreamingEndpointUsageInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this streaming endpoint usage info based on context it is used
func (m *StreamingEndpointUsageInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *StreamingEndpointUsageInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *StreamingEndpointUsageInfo) Validate(formats strfmt.Registry) error
Validate validates this streaming endpoint usage info
swagger:model streamingParameters
type StreamingParameters struct {
// the number of samples to use when calculating AH
*uint32 `json:"anomalyHistoryWindow,omitempty"`
AnomalyHistoryWindow
// learning graduation requirement for stopping learning upon reaching this cluster count
*uint16 `json:"learningMaxClusters,omitempty"`
LearningMaxClusters
// learning graduation requirement for stopping learning after acquiring this many samples
*uint64 `json:"learningMaxSamples,omitempty"`
LearningMaxSamples
// enables graduation requirements for learning
*uint64 `json:"learningRateDenominator,omitempty"`
LearningRateDenominator
// enables graduation requirements for learning
*uint64 `json:"learningRateNumerator,omitempty"`
LearningRateNumerator }
func (m *StreamingParameters) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this streaming parameters based on context it is used
func (m *StreamingParameters) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *StreamingParameters) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *StreamingParameters) Validate(formats strfmt.Registry) error
Validate validates this streaming parameters
swagger:model uint16Array
type Uint16Array []uint16
func (m Uint16Array) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this uint16 array based on context it is used
func (m Uint16Array) Validate(formats strfmt.Registry) error
Validate validates this uint16 array
swagger:model uint32Array
type Uint32Array []uint32
func (m Uint32Array) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this uint32 array based on context it is used
func (m Uint32Array) Validate(formats strfmt.Registry) error
Validate validates this uint32 array
swagger:model uint64Array
type Uint64Array []uint64
func (m Uint64Array) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this uint64 array based on context it is used
func (m Uint64Array) Validate(formats strfmt.Registry) error
Validate validates this uint64 array
swagger:model version
type Version struct {
// api version
// Required: true
*string `json:"api-version"`
APIVersion
// builder
// Required: true
*string `json:"builder"`
Builder
// expert api
// Required: true
*string `json:"expert-api"`
ExpertAPI
// expert common
// Required: true
*string `json:"expert-common"`
ExpertCommon
// nano secure
// Required: true
*string `json:"nano-secure"`
NanoSecure
// release
// Required: true
*string `json:"release"`
Release
// swagger ui
// Required: true
*string `json:"swagger-ui"`
SwaggerUI }
func (m *Version) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this version based on context it is used
func (m *Version) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (m *Version) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (m *Version) Validate(formats strfmt.Registry) error
Validate validates this version
swagger:model VersionNumber
type VersionNumber uint16
func (m VersionNumber) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this version number based on context it is used
func (m VersionNumber) Validate(formats strfmt.Registry) error
Validate validates this version number
Generated by gomarkdoc