Documentation ¶
Index ¶
- func QueryGOCDB(address string, method string, isPrivate bool, scope string, apiKey string, ...) ([]byte, error)
- type Downtime
- type DowntimeService
- type DowntimeServices
- type Downtimes
- type Extension
- type Extensions
- type Service
- type ServiceEndpoint
- type ServiceEndpoints
- type ServiceType
- type ServiceTypes
- type Services
- type Site
- type Sites
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Downtime ¶
type Downtime struct { Severity string `xml:"SEVERITY"` StartDate int64 `xml:"START_DATE"` EndDate int64 `xml:"END_DATE"` AffectedServices DowntimeServices `xml:"SERVICES"` }
Downtime is a scheduled downtime for a site.
type DowntimeService ¶
type DowntimeService struct {
Type string `xml:"SERVICE_TYPE"`
}
DowntimeService represents a service scheduled for downtime.
type DowntimeServices ¶
type DowntimeServices struct {
Services []*DowntimeService `xml:"SERVICE"`
}
DowntimeServices represents a list of DowntimeService objects.
type Downtimes ¶
type Downtimes struct {
Downtimes []*Downtime `xml:"DOWNTIME"`
}
Downtimes represents a list of Downtime objects.
type Extensions ¶
type Extensions struct {
Extensions []*Extension `xml:"EXTENSION"`
}
Extensions is a list of Extension objects.
type Service ¶
type Service struct { Host string `xml:"HOSTNAME"` Type string `xml:"SERVICE_TYPE"` IsMonitored string `xml:"NODE_MONITORED"` URL string `xml:"URL"` Endpoints ServiceEndpoints `xml:"ENDPOINTS"` Extensions Extensions `xml:"EXTENSIONS"` }
Service represents a service in GOCDB.
type ServiceEndpoint ¶
type ServiceEndpoint struct { Name string `xml:"NAME"` URL string `xml:"URL"` Type string `xml:"INTERFACENAME"` IsMonitored string `xml:"ENDPOINT_MONITORED"` Extensions Extensions `xml:"EXTENSIONS"` }
ServiceEndpoint represents an additional service endpoint of a service in GOCDB.
type ServiceEndpoints ¶
type ServiceEndpoints struct {
Endpoints []*ServiceEndpoint `xml:"ENDPOINT"`
}
ServiceEndpoints is a list of ServiceEndpoint objects.
type ServiceType ¶
type ServiceType struct { Name string `xml:"SERVICE_TYPE_NAME"` Description string `xml:"SERVICE_TYPE_DESC"` }
ServiceType represents a service type in GOCDB.
type ServiceTypes ¶
type ServiceTypes struct {
Types []*ServiceType `xml:"SERVICE_TYPE"`
}
ServiceTypes is a list of ServiceType objects.
type Services ¶
type Services struct {
Services []*Service `xml:"SERVICE_ENDPOINT"`
}
Services is a list of Service objects.
type Site ¶
type Site struct { ShortName string `xml:"SHORT_NAME"` OfficialName string `xml:"OFFICIAL_NAME"` Description string `xml:"SITE_DESCRIPTION"` Homepage string `xml:"HOME_URL"` Email string `xml:"CONTACT_EMAIL"` Domain string `xml:"DOMAIN>DOMAIN_NAME"` Country string `xml:"COUNTRY"` CountryCode string `xml:"COUNTRY_CODE"` Latitude float32 `xml:"LATITUDE"` Longitude float32 `xml:"LONGITUDE"` Extensions Extensions `xml:"EXTENSIONS"` }
Site represents a site in GOCDB.
Click to show internal directories.
Click to hide internal directories.