Documentation
¶
Overview ¶
* Copyright (c) 2022 GRNET S.A. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the * License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an "AS * IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language * governing permissions and limitations under the License. * * The views and conclusions contained in the software and * documentation are those of the authors and should not be * interpreted as representing official policies, either expressed * or implied, of GRNET S.A. *
Index ¶
- func HandleSubrouter(s *mux.Router, confhandler *respond.ConfHandler)
- func ListStatus(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func ListStatusByID(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func Options(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- type EndpointData
- type GroupData
- type InputParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleSubrouter ¶
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 ListStatus ¶
ListStatus lists group and endpoint status timelines
func ListStatusByID ¶
ListStatusByID lists endpoint status timeline for a specific resource id
Types ¶
type EndpointData ¶
type EndpointData struct {
Report string `bson:"report"`
Timestamp string `bson:"timestamp"`
EndpointGroup string `bson:"endpoint_group"`
Service string `bson:"service"`
Hostname string `bson:"host"`
Status string `bson:"status"`
DateInt int `bson:"date_integer"`
HasThresholdRule bool `bson:"has_threshold_rule"`
Info map[string]string `bson:"info"`
}
EndpointData struct holds the queried data from datastore
type GroupData ¶
type GroupData struct {
Report string `bson:"report"`
Timestamp string `bson:"timestamp"`
Group string `bson:"endpoint_group"`
Status string `bson:"status"`
DateInteger int `bson:"date_integer"`
HasThresholdRule bool `bson:"has_threshold_rule"`
}
GroupData struct holds the grouped queried data from datastore
type InputParams ¶
type InputParams struct {
ID string
// contains filtered or unexported fields
}
InputParams struct holds as input all the url params of the request