model

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: MPL-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthProvider added in v0.3.0

type AuthProvider interface {
	GetCredentials(method, uri string, body []byte) string
}

type DataPayload added in v0.6.0

type DataPayload struct {
	MetricBodyList           []MetricPayload
	MetricResourceCreateList []MetricPayload
	LogBodyList              []LogPayload
	UpdatePropertiesBody     UpdateProperties
}

type DataPoint

type DataPoint struct {
	DataPointName            string            `json:"dataPointName"`
	DataPointType            string            `json:"dataPointType"`
	DataPointDescription     string            `json:"dataPointDescription,omitempty"`
	DataPointAggregationType string            `json:"dataPointAggregationType"`
	Value                    map[string]string `json:"values"`
}

type DataPointInput

type DataPointInput struct {
	DataPointName            string
	DataPointType            string
	DataPointDescription     string
	DataPointAggregationType string
	Value                    map[string]string
}

type DatasourceInput

type DatasourceInput struct {
	DataSourceName        string
	DataSourceDisplayName string
	DataSourceGroup       string
	DataSourceID          int
}

type DefaultAuthenticator added in v0.3.0

type DefaultAuthenticator struct {
}

DefaultAuthenticator implements AuthProvider interface

func (DefaultAuthenticator) GetCredentials added in v0.3.0

func (da DefaultAuthenticator) GetCredentials(method, uri string, body []byte) string

type Instance

type Instance struct {
	InstanceName        string            `json:"instanceName"`
	InstanceID          int               `json:"instanceId"`
	InstanceDisplayName string            `json:"instanceDisplayName,omitempty"`
	InstanceGroup       string            `json:"instanceGroup,omitempty"`
	InstanceProperties  map[string]string `json:"instanceProperties,omitempty"`
	DataPoints          []DataPoint       `json:"dataPoints"`
}

type InstanceInput

type InstanceInput struct {
	InstanceName        string
	InstanceID          int
	InstanceDisplayName string
	InstanceGroup       string
	InstanceProperties  map[string]string
}

type LMIngest added in v0.6.0

type LMIngest interface {
	BatchInterval() time.Duration
	URI() string
	CreateRequestBody() DataPayload
	ExportData(body DataPayload, uri, method string) error
}

type LogInput

type LogInput struct {
	Message    string
	ResourceID map[string]string
	Metadata   map[string]string
	Timestamp  string
}

type LogPayload

type LogPayload map[string]interface{}

type MetricPayload

type MetricPayload struct {
	ResourceName          string            `json:"resourceName"`
	ResourceDescription   string            `json:"resourceDescription,omitempty"`
	ResourceID            map[string]string `json:"resourceIds"`
	ResourceProperties    map[string]string `json:"resourceProperties,omitempty"`
	DataSourceName        string            `json:"dataSource"`
	DataSourceDisplayName string            `json:"dataSourceDisplayName,omitempty"`
	DataSourceGroup       string            `json:"dataSourceGroup,omitempty"`
	DataSourceID          int               `json:"dataSourceId"`
	Instances             []Instance        `json:"instances"`
}

type MetricsInput

type MetricsInput struct {
	Resource   ResourceInput
	Datasource DatasourceInput
	Instance   InstanceInput
	DataPoint  DataPointInput
}

type ResourceInput

type ResourceInput struct {
	ResourceName        string
	ResourceDescription string
	ResourceID          map[string]string
	ResourceProperties  map[string]string
	IsCreate            bool
}

type UpdateProperties

type UpdateProperties struct {
	ResourceName          string            `json:"resourceName"`
	ResourceID            map[string]string `json:"resourceIds"`
	ResourceProperties    map[string]string `json:"resourceProperties"`
	DataSourceName        string            `json:"dataSource"`
	DataSourceDisplayName string            `json:"dataSourceDisplayName,omitempty"`
	InstanceName          string            `json:"instanceName"`
	InstanceProperties    map[string]string `json:"instanceProperties"`
}

Jump to

Keyboard shortcuts

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