package
Version:
v0.0.0-...-64c01a7
Opens a new window with list of versions in this module.
Published: Mar 14, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Alert struct {
ID string `json:"id"`
Subject string `json:"subject"`
Status string `json:"status"`
StartDate string `json:"start_date"`
UpdatedAt string `json:"updated_at"`
Entries []Entry `json:"entries"`
}
type Alerts struct {
ServiceAlerts []ServiceAlert `json:"service_alerts"`
}
Client is a type that represents a client of Vultr Status
NewClient is a function that creates a new Client
Alerts is a method that corresponds to the Vultr Status Alert method
Do is a method that implements requests against Vultr Status
Status is a method that corresponds to the Vultr Status Status method
type Entry struct {
UpdatedAt string `json:"updated_at"`
Message string `json:"message"`
}
type Region struct {
Location string `json:"location"`
Country string `json:"country"`
CountryName string `json:"country_name"`
Alerts []Alert `json:"alerts"`
}
type ServiceAlert struct {
ID string `json:"id"`
Region string `json:"region"`
Subject string `json:"subject"`
StartDate string `json:"start_date"`
UpdatedAt string `json:"updated_at"`
Status string `json:"status"`
Entries []Entry `json:"entries"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.