status

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0, Apache-2.0 Imports: 14 Imported by: 0

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

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

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

ListStatus lists group and endpoint status timelines

func ListStatusByID

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

ListStatusByID lists endpoint status timeline for a specific resource id

func Options

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

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

Jump to

Keyboard shortcuts

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