Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Name string `json:"name"` DisplayName string `json:"displayName"` Description string `json:"description"` Home bool `json:"home"` Address string `json:"address"` Username string `json:"username"` Password string `json:"password"` MetricKeys []string `json:"metricKeys"` }
Config is the structure of the configuration for a single Opsgenie instance.
type Instance ¶
type Instance struct { Name string // contains filtered or unexported fields }
Instance represents a single Jaeger instance, which can be added via the configuration file.
func (*Instance) GetProjectMeasures ¶
func (i *Instance) GetProjectMeasures(ctx context.Context, project string, metricKeys []string) (*ResponseProjectMeasures, error)
GetProjectMeasures returns a list of measures for the specified project from SonarQube.
func (*Instance) GetProjects ¶
func (i *Instance) GetProjects(ctx context.Context, query, pageSize, pageNumber string) (*ResponseProjects, error)
GetProjects returns a list of projects from SonarQube.
type Metric ¶
type Metric struct { Key string `json:"key"` Name string `json:"name"` Description string `json:"description"` Domain string `json:"domain"` Type string `json:"type"` HigherValuesAreBetter bool `json:"higherValuesAreBetter"` Qualitative bool `json:"qualitative"` Hidden bool `json:"hidden"` DecimalScale int `json:"decimalScale,omitempty"` BestValue string `json:"bestValue,omitempty"` WorstValue string `json:"worstValue,omitempty"` }
type ProjectMeasures ¶
type ResponseError ¶
type ResponseError struct { Errors []struct { Msg string `json:"msg"` } `json:"errors"` }
ResponseError is the structure for a failed SonarQube API request.
type ResponseProjectMeasures ¶
type ResponseProjectMeasures struct { Component ProjectMeasures `json:"component"` Metrics []Metric `json:"metrics"` }
type ResponseProjects ¶
Click to show internal directories.
Click to hide internal directories.