gorelicwrap

package module
v0.0.0-...-edf3fbd Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2017 License: BSD-2-Clause Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInstMetaData

type AppInstMetaData struct {
	ApplicationsInstances []struct {
		ID                 int    `json:"id"`
		ApplicationName    string `json:"application_name"`
		Host               string `json:"host"`
		Language           string `json:"language"`
		ApplicationSummary struct {
			InstanceCount int     `json:"instance_count"`
			Throughput    float64 `json:"throughput"`
			ResponseTime  float64 `json:"response_time"`
			ApdexScore    float64 `json:"apdex_score"`
		} `json:"application_summary"`
		Links struct {
			Applicaiton     int `json:"applicaiton"`
			ApplicationHost int `json:"application_host"`
		} `json:"links"`
	} `json:"application_instances"`
}

type AppInstMetaDataParams

type AppInstMetaDataParams struct {
	FilterHostName string `url:"filter[hostname],omitempty"`
	FilterIds      string `url:"filter[ids],omitempty"`
}

type AppMetaData

type AppMetaData struct {
	Applications []struct {
		ID   int    `json:"id"`
		Name string `json:"name"`
	} `json:"applications"`
}

type AppMetaDataParams

type AppMetaDataParams struct {
	FilterName string `url:"filter[name],omitempty"`
}

type MetricData

type MetricData struct {
	MetricData struct {
		From         string    `json:"from"`
		MetricsFound []string  `json:"metrics_found"`
		Metrics      []Metrics `json:"metrics"`
		To           string    `json:"to"`
	} `json:"metric_data"`
}

type MetricParms

type MetricParms struct {
	From      string   `url:"from,omitempty"`
	Names     []string `url:"names[],omitempty"`
	To        string   `url:"to,omitempty"`
	Raw       string   `url:"raw,omitempty"`
	Summarize string   `url:"summarize,omitempty"`
	Values    []string `url:"values[],omitempty"`
}

type MetricValues

type MetricValues struct {
	AverageCallTime         float32 `json:"average_call_time,omitempty"`
	AverageExclusiveTime    float32 `json:"average_exclusive_time,omitempty"`
	AverageResponseTime     float32 `json:"average_response_time,omitempty"`
	AverageTime             float32 `json:"average_time,omitempty"`
	AverageValue            float32 `json:"average_value,omitempty"`
	AverageValuePerInstance float32 `json:"average_value_per_instance,omitempty"`
	BusyPercent             int     `json:"busy_percent,omitempty"`
	CallCount               int     `json:"call_count,omitempty"`
	CallsPerMinute          int     `json:"calls_per_minute,omitempty"`
	Count                   int     `json:"count,omitempty"`
	F                       int     `json:"f,omitempty"`
	InstanceCount           int     `json:"instance_count,omitempty"`
	MinResponseTime         float32 `json:"min_response_time,omitempty"`
	MaxResponseTime         float32 `json:"max_response_time,omitempty"`
	Percent                 float32 `json:"percent,omitempty"`
	RequestsPerMinute       float32 `json:"requests_per_minute,omitempty"`
	S                       int     `json:"s,omitempty"`
	Score                   float32 `json:"score,omitempty"`
	SessionsActive          int     `json:"sessions_active,omitempty"`
	StandardDeviation       float32 `json:"standard_deviation,omitempty"`
	T                       int     `json:"t,omitempty"`
	Threshold               float32 `json:"threshold,omitempty"`
	ThresholdMin            float32 `json:"threshold_min,omitempty"`
	TotalCallTimePerMinute  float32 `json:"total_call_time_per_minute,omitempty"`
	TotalTime               int     `json:"total_time,omitempty"`
	TotalUsedMb             float32 `json:"total_used_mb,omitempty"`
	UsedBytesByHost         float32 `json:"used_bytes_by_host,omitempty"`
	UsedMbByHost            float32 `json:"used_mb_by_host,omitempty"`
	Value                   float32 `json:"value,omitempty"`
}

type Metrics

type Metrics struct {
	Name       string `json:"name"`
	Timeslices []struct {
		From   string       `json:"from"`
		To     string       `json:"to"`
		Values MetricValues `json:"values"`
	} `json:"timeslices"`
}

type NRClient

type NRClient struct {
	// contains filtered or unexported fields
}

NRClient allows for reuse of the NewRelic client

func NewNRClient

func NewNRClient(client *http.Client) *NRClient

NewNRClient returns an initialized NRClient

func (*NRClient) GetAppID

func (client *NRClient) GetAppID(appName string) int

func (*NRClient) GetAppInstances

func (client *NRClient) GetAppInstances(appID string) *AppInstMetaData

func (*NRClient) GetAppInstancesMetricData

func (client *NRClient) GetAppInstancesMetricData(appID, appInstID string, params *MetricParms) *MetricData

func (*NRClient) GetAppMetricData

func (client *NRClient) GetAppMetricData(appID string, params *MetricParms) *MetricData

type NewRelic

type NewRelic struct {
	// contains filtered or unexported fields
}

NewRelic defines the fields for storing NewRelic info necessary for making API requests

Jump to

Keyboard shortcuts

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