argo-web-api: github.com/ARGOeu/argo-web-api/app/results Index | Files

package results

import "github.com/ARGOeu/argo-web-api/app/results"

Index

Package Files

Controller.go Model.go View.go routing.go

func DailyEndpoint Uses

func DailyEndpoint(filter bson.M) []bson.M

DailyEndpoint query to aggregate daily endpoint a/r results from mongoDB

func DailyEndpointGroup Uses

func DailyEndpointGroup(filter bson.M) []bson.M

DailyEndpointGroup query to aggregate daily results from mongodb

func DailyServiceFlavor Uses

func DailyServiceFlavor(filter bson.M) []bson.M

DailyServiceFlavor query to aggregate daily SF results from mongoDB

func DailySuperGroup Uses

func DailySuperGroup(filter bson.M) []bson.M

DailySuperGroup function to build the MongoDB aggregation query for daily calculations

func FlatDailyEndpoint Uses

func FlatDailyEndpoint(filter bson.M, limit int, skip int) []bson.M

FlatDailyEndpoint query to aggregate daily endpoint a/r results from mongoDB

func FlatListEndpointResults Uses

func FlatListEndpointResults(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

FlatListEndpointResults is responsible for handling request to flat list all available endpoint results

func FlatMonthlyEndpoint Uses

func FlatMonthlyEndpoint(filter bson.M, limit int, skip int) []bson.M

FlatMonthlyEndpoint query to aggregate monthly a/r results from mongoDB

func HandleSubrouter Uses

func HandleSubrouter(s *mux.Router, confhandler *respond.ConfHandler)

HandleSubrouter uses the subrouter for a specific calls and creates a tree of sorts handling each route with a different subrouter

func ListEndpointGroupResults Uses

func ListEndpointGroupResults(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

ListEndpointGroupResults endpoint group availabilities according to the http request

func ListEndpointResults Uses

func ListEndpointResults(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

ListEndpointResults is responsible for handling request to list service flavor results

func ListServiceFlavorResults Uses

func ListServiceFlavorResults(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

ListServiceFlavorResults is responsible for handling request to list service flavor results

func ListSuperGroupResults Uses

func ListSuperGroupResults(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

ListSuperGroupResults supergroup availabilities according to the http request

func MonthlyEndpoint Uses

func MonthlyEndpoint(filter bson.M) []bson.M

MonthlyEndpoint query to aggregate monthly a/r results from mongoDB

func MonthlyEndpointGroup Uses

func MonthlyEndpointGroup(filter bson.M) []bson.M

MonthlyEndpointGroup query to aggregate monthly results from mongodb

func MonthlyServiceFlavor Uses

func MonthlyServiceFlavor(filter bson.M) []bson.M

MonthlyServiceFlavor query to aggregate daily SF results from mongoDB

func MonthlySuperGroup Uses

func MonthlySuperGroup(filter bson.M) []bson.M

MonthlySuperGroup function to build the MongoDB aggregation query for monthly calculations

func Options Uses

func Options(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

type Availability Uses

type Availability struct {
    XMLName      xml.Name `xml:"results" json:"-"`
    Timestamp    string   `xml:"timestamp,attr" json:"timestamp"`
    Availability string   `xml:"availability,attr" json:"availability"`
    Reliability  string   `xml:"reliability,attr" json:"reliability"`
    Unknown      string   `xml:"unknown,attr,omitempty" json:"unknown,omitempty"`
    Uptime       string   `xml:"uptime,attr,omitempty" json:"uptime,omitempty"`
    Downtime     string   `xml:"downtime,attr,omitempty" json:"downtime,omitempty"`
}

Availability struct for formating xml/json

type Endpoint Uses

type Endpoint struct {
    XMLName      xml.Name          `xml:"group" json:"-"`
    Name         string            `xml:"name,attr" json:"name"`
    Service      string            `xml:"service,attr,omitempty" json:"service,omitempty"`
    SuperGroup   string            `xml:"supergroup,attr,omitempty" json:"supergroup,omitempty"`
    Type         string            `xml:"type,attr" json:"type"`
    Info         map[string]string `xml:"-" json:"info,omitempty"`
    Availability []interface{}     `json:"results"`
}

Endpoint A/R struct for formating xml/json

type EndpointGroupInterface Uses

type EndpointGroupInterface struct {
    Name         string  `bson:"name"`
    Report       string  `bson:"report"`
    Date         string  `bson:"date"`
    Type         string  `bson:"type"`
    Up           float64 `bson:"up"`
    Down         float64 `bson:"down"`
    Unknown      float64 `bson:"unknown"`
    Availability float64 `bson:"availability"`
    Reliability  float64 `bson:"reliability"`
    Weights      string  `bson:"weights"`
    SuperGroup   string  `bson:"supergroup"`
}

EndpointGroupInterface for mongodb object exchanging

type EndpointInterface Uses

type EndpointInterface struct {
    Name         string            `bson:"name"`
    Report       string            `bson:"report"`
    Date         string            `bson:"date"`
    Type         string            `bson:"type"`
    Up           float64           `bson:"up"`
    Down         float64           `bson:"down"`
    Unknown      float64           `bson:"unknown"`
    Availability float64           `bson:"availability"`
    Reliability  float64           `bson:"reliability"`
    SuperGroup   string            `bson:"supergroup"`
    Service      string            `bson:"service"`
    Info         map[string]string `bson:"info"`
}

EndpointInterface for mongodb object exchanging

type ErrorResponse Uses

type ErrorResponse respond.ErrorResponse

ErrorResponse shortcut to respond.ErrorResponse

type Group Uses

type Group struct {
    XMLName      xml.Name      `xml:"group" json:"-"`
    Name         string        `xml:"name,attr" json:"name"`
    Type         string        `xml:"type,attr" json:"type"`
    Availability []interface{} `json:"results"`
}

Group struct for formating xml/json

type ServiceEndpointGroup Uses

type ServiceEndpointGroup struct {
    XMLName   xml.Name      `xml:"group" json:"-"`
    Name      string        `xml:"name,attr" json:"name"`
    Type      string        `xml:"type,attr" json:"type"`
    Endpoints []interface{} `json:"endpoints"`
}

ServuceEndpointGroup struct listing included endpoints in a service for formating xml/json

type ServiceFlavor Uses

type ServiceFlavor struct {
    XMLName      xml.Name      `xml:"group" json:"-"`
    Name         string        `xml:"name,attr" json:"name"`
    Type         string        `xml:"type,attr" json:"type"`
    Availability []interface{} `json:"results"`
}

ServiceFlavor struct for formating xml/json

type ServiceFlavorGroup Uses

type ServiceFlavorGroup struct {
    XMLName       xml.Name      `xml:"group" json:"-"`
    Name          string        `xml:"name,attr" json:"name"`
    Type          string        `xml:"type,attr" json:"type"`
    ServiceFlavor []interface{} `json:"serviceflavors"`
}

ServiceFlavorGroup struct for formating xml/json

type ServiceFlavorInterface Uses

type ServiceFlavorInterface struct {
    Name         string  `bson:"name"`
    Report       string  `bson:"report"`
    Date         string  `bson:"date"`
    Type         string  `bson:"type"`
    Up           float64 `bson:"up"`
    Down         float64 `bson:"down"`
    Unknown      float64 `bson:"unknown"`
    Availability float64 `bson:"availability"`
    Reliability  float64 `bson:"reliability"`
    SuperGroup   string  `bson:"supergroup"`
}

ServiceFlavorInterface for mongodb object exchanging

type SuperGroup Uses

type SuperGroup struct {
    XMLName   xml.Name      `xml:"group" json:"-"`
    Name      string        `xml:"name,attr" json:"name"`
    Type      string        `xml:"type,attr" json:"type"`
    Endpoints []interface{} `json:"endpoints,omitempty"`
    Results   []interface{} `json:"results,omitempty"`
}

SuperGroup struct for formating xml/json

type SuperGroupInterface Uses

type SuperGroupInterface struct {
    Report       string  `bson:"report"`
    Date         string  `bson:"date"`
    Type         string  `bson:"type"`
    Up           float64 `bson:"uptime"`
    Down         float64 `bson:"downtime"`
    Unknown      float64 `bson:"unknown"`
    Availability float64 `bson:"availability"`
    Reliability  float64 `bson:"reliability"`
    Weights      string  `bson:"weight"`
    SuperGroup   string  `bson:"supergroup"`
}

SuperGroupInterface for mongodb object exchanging

Package results imports 16 packages (graph) and is imported by 3 packages. Updated 2020-07-11. Refresh now. Tools for package owners.