synthetics

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 14 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 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 MonitorLookupResponse added in v0.4.0

type MonitorLookupResponse struct {
	Actor struct {
		Entities []MonitorEntity `json:"entities"`
	} `json:"actor"`
}

type MonitorSearchResponse added in v0.4.0

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

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"`
	MonitorID           []string `` /* 126-byte string literal not displayed */
	LocatorQuery        string   `short:"q" required:"true" xor:"locator" help:"The query used with NerdGraph to find monitors to export."`
	ParallelWorkers     uint     `short:"w" required:"true" default:"10" hidden:"true" help:"Number of monitors to export in parallel. Defaults to 10"`
	CreateAccountIdFile bool     `short:"a" hidden:"true" default:"true"`
	// contains filtered or unexported fields
}

func NewSyntheticExporterCommand

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

func (*SyntheticExporterCommand) Export

func (*SyntheticExporterCommand) Help

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

func (*SyntheticExporterCommand) Info

Jump to

Keyboard shortcuts

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