model

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 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 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 IngestResponse added in v1.0.0

type IngestResponse struct {
	StatusCode  int    `json:"statusCode"`
	Success     bool   `json:"success"`
	Message     string `json:"message"`
	Error       error  `json:"error"`
	MultiStatus []struct {
		Code  float64 `json:"code"`
		Error string  `json:"error"`
	} `json:"multiStatus"`
	RequestID  uuid.UUID `json:"requestId"`
	RetryAfter int       `json:"retryAfter"`
}

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 LogInput

type LogInput struct {
	Message    interface{}
	ResourceID map[string]interface{}
	Metadata   map[string]interface{}
	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 TracesPayload added in v1.0.0

type TracesPayload struct {
	TraceData ptrace.Traces
}

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