internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAndExportData

func CreateAndExportData(li LMIngest)

func MakeRequest

func MakeRequest(client *http.Client, url string, body []byte, uri, method string) (*utils.Response, error)

MakeRequest compresses the payload and exports it to LM Platform

Types

type DataPayload

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

type LMIngest

type LMIngest interface {
	BatchInterval() int
	URI() string
	CreateRequestBody() DataPayload
	ExportData(body DataPayload, uri, method string) (*utils.Response, error)
}

Jump to

Keyboard shortcuts

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