synthetics

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string = "0.0.1"

Functions

This section is empty.

Types

type GetMonitorsResponse

type GetMonitorsResponse struct {
	Actor struct {
		EntitySearch struct {
			Results struct {
				Entities []MonitorEntity `json:"entities"`
			} `json:"results"`
		} `json:"entitySearch"`
	} `json:"actor"`
}

type GetScriptResponse

type GetScriptResponse struct {
	Actor struct {
		Account struct {
			Synthetics struct {
				Script struct {
					Text string `json:"text"`
				} `json:"script"`
			} `json:"synthetics"`
		} `json:"account"`
	} `json:"actor"`
}

type GetStepsResponse

type GetStepsResponse struct {
	Actor struct {
		Account struct {
			Synthetics struct {
				Steps []MonitorStep `json:"steps"`
			} `json:"synthetics"`
		} `json:"account"`
	} `json:"actor"`
}

type MonitorEntity

type MonitorEntity struct {
	GUID         string `json:"guid"`
	Name         string `json:"name"`
	MonitorType  string `json:"monitorType"`
	MonitoredURL string `json:"monitoredUrl"`
	GoldenTags   struct {
		Tags []MonitorTag `json:"tags"`
	} `json:"goldenTags"`
	Tags []MonitorTag `json:"tags"`
}

type MonitorStep

type MonitorStep struct {
	Ordinal int64    `json:"ordinal"`
	Type    string   `json:"type"`
	Values  []string `json:"values"`
}

type MonitorTag

type MonitorTag struct {
	Key    string   `json:"key"`
	Values []string `json:"values,omitempty"`
}

type SyntheticExporterCommand

type SyntheticExporterCommand struct {
	AccountID       int    `short:"i" required:"true" help:"The New Relic Account ID"`
	APIKey          string `short:"k" required:"true" help:"An API Key for the New Relic Acccount ID"`
	LocatorQuery    string `` /* 153-byte string literal not displayed */
	ParallelWorkers uint   `short:"w" required:"true" default:"10" hidden:"true" help:"Number of monitors to export in parallel. Defaults to 10"`
	// contains filtered or unexported fields
}

func NewSyntheticExporterCommand

func NewSyntheticExporterCommand(options ...newrelic.ConfigOption) *SyntheticExporterCommand

func (*SyntheticExporterCommand) Export

func (s *SyntheticExporterCommand) Export(request plugin.ExportCommandRequest) (plugin.ExportResponse, error)

func (*SyntheticExporterCommand) Help

func (s *SyntheticExporterCommand) Help() (string, error)

func (*SyntheticExporterCommand) Info

func (s *SyntheticExporterCommand) Info() (plugin.CommandInfo, error)

Jump to

Keyboard shortcuts

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