Documentation
¶
Index ¶
- Constants
- type CheckAlert
- type CheckAlertWithStatus
- type CheckDeleteResponse
- type CheckWithAlerts
- type ErrorResponse
- type HostedInstance
- type ProbeAddResponse
- type ProbeDeleteResponse
- type ProbeUpdateResponse
- type RegistrationInstallRequest
- type RegistrationInstallResponse
- type ResponseError
- type TenantDescription
- type TokenCreateResponse
- type TokenDeleteResponse
- type TokenRefreshResponse
- type TokenValidateResponse
Constants ¶
View Source
const ( InstanceTypePrometheus = "prometheus" InstanceTypeLogs = "logs" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckAlert ¶ added in v0.14.0
type CheckAlertWithStatus ¶ added in v0.14.0
type CheckAlertWithStatus struct {
CheckAlert
Status string `json:"status"`
Error string `json:"error,omitempty"`
}
type CheckDeleteResponse ¶
type CheckWithAlerts ¶ added in v0.19.0
type CheckWithAlerts struct {
synthetic_monitoring.Check
Alerts []CheckAlertWithStatus `json:"alerts"`
}
type ErrorResponse ¶
type ErrorResponse = ResponseError
ErrorResponse was the old name for ResponseError. We want to keep backwards compatibility.
type HostedInstance ¶
type ProbeAddResponse ¶
type ProbeAddResponse struct {
Probe synthetic_monitoring.Probe `json:"probe"`
Token []byte `json:"token"`
}
type ProbeDeleteResponse ¶
type ProbeUpdateResponse ¶
type ProbeUpdateResponse struct {
Probe synthetic_monitoring.Probe `json:"probe"`
Token []byte `json:"token,omitempty"`
}
type RegistrationInstallResponse ¶
type RegistrationInstallResponse struct {
AccessToken string `json:"accessToken"`
TenantInfo *TenantDescription `json:"tenantInfo,omitempty"`
}
type ResponseError ¶ added in v0.8.0
func (*ResponseError) Error ¶ added in v0.8.0
func (e *ResponseError) Error() string
func (*ResponseError) MarshalJSON ¶ added in v0.8.0
func (e *ResponseError) MarshalJSON() ([]byte, error)
type TenantDescription ¶
type TenantDescription struct {
ID int64 `json:"id"`
MetricInstance HostedInstance `json:"metricInstance"`
LogInstance HostedInstance `json:"logInstance"`
}
type TokenCreateResponse ¶
type TokenDeleteResponse ¶
type TokenDeleteResponse struct {
Msg string `json:"msg,omitempty"`
}
type TokenRefreshResponse ¶
type TokenValidateResponse ¶
Click to show internal directories.
Click to hide internal directories.