json

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conditions

type Conditions struct {
	Status         string `json:"status"`
	MetricKey      string `json:"metricKey"`
	Comparator     string `json:"comparator"`
	ErrorThreshold string `json:"errorThreshold"`
	ActualValue    string `json:"actualValue"`
}

Conditions struct - SonarRequestJSON.

type JSON

type JSON struct {
	Data interface{}
}

JSON struct that abstract a data mapping a interface.

func (*JSON) PrettyPrintJSON

func (data *JSON) PrettyPrintJSON(pretty bool, value []byte)

PrettyPrintJSON function - check pretty print option and show the information.

type Metrics

type Metrics struct {
	Name        string `json:"name"`
	Value       int    `json:"value"`
	DesiredSize string `json:"desiredSize"`
}

Metrics struct in SpeedioJSON.

type Periods

type Periods struct {
	Index     int    `json:"index"`
	Mode      string `json:"mode"`
	Date      string `json:"date"`
	Parameter string `json:"parameter"`
}

Periods struct - SonarRequestJSON.

type ProjectStatus

type ProjectStatus struct {
	Status            string        `json:"status"`
	Conditions        []*Conditions `json:"conditions"`
	Periods           []*Periods    `json:"periods"`
	IgnoredConditions bool          `json:"ignoredConditions"`
}

ProjectStatus struct - SonarRequestJSON.

type SonarRequestJSON

type SonarRequestJSON struct {
	ProjectStatus *ProjectStatus `json:"projectStatus"`
}

SonarRequestJSON struct - JSON object returned in Sonar GET endpoint Quality Gate.

type SpeedioJSON

type SpeedioJSON struct {
	Subject string     `json:"subject"`
	Metrics []*Metrics `json:"metrics"`
}

SpeedioJSON struct - JSON object returned in Speedio performance file.

Jump to

Keyboard shortcuts

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