statuspageio

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchStatusPages

func FetchStatusPages(log *zap.Logger, client *resty.Client, targetUrls []string)

FetchStatusPages fetch given status pages and export result as metrics.

func IsStatusPageIOPage

func IsStatusPageIOPage(log *zap.Logger, targetURL string, client *resty.Client) bool

IsStatusPageIOPage checks if given URL is StatusPage.io page.

Types

type AtlassianStatusPageResponse

type AtlassianStatusPageResponse struct {
	Page struct {
		Name string `json:"name"`
		URL  string `json:"url"`
	} `json:"page"`
	Components []struct {
		Name        string `json:"name"`
		Description string `json:"description"`
		Status      string `json:"status"`
	} `json:"components"`
}

AtlassianStatusPageResponse is a response from Atlassian StatusPage API.

Jump to

Keyboard shortcuts

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