Documentation
¶
Index ¶
- type CheckDeleteResponse
- type HostedInstance
- type HttpError
- type InitResponse
- type ProbeAddResponse
- type ProbeDeleteResponse
- type SmApi
- func (h *SmApi) AddCheck(ctx context.Context, check synthetic_monitoring.Check) (*synthetic_monitoring.Check, error)
- func (h *SmApi) AddProbe(ctx context.Context, probe synthetic_monitoring.Probe) (*synthetic_monitoring.Probe, []byte, error)
- func (h *SmApi) DeleteCheck(ctx context.Context, id int64) error
- func (h *SmApi) DeleteProbe(ctx context.Context, id int64) error
- func (h *SmApi) Init(ctx context.Context, adminToken string) (*InitResponse, error)
- func (h *SmApi) Save(ctx context.Context, adminToken string, metricInstanceID, logInstanceID int) error
- type TenantDescription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckDeleteResponse ¶
type HostedInstance ¶
type InitResponse ¶
type InitResponse struct {
AccessToken string `json:"accessToken"`
TenantInfo *TenantDescription `json:"tenantInfo,omitempty"`
Instances []HostedInstance `json:"instances"`
}
type ProbeAddResponse ¶
type ProbeAddResponse struct {
Probe synthetic_monitoring.Probe `json:"probe"`
Token []byte `json:"token"`
}
type ProbeDeleteResponse ¶
type SmApi ¶
type SmApi struct {
// contains filtered or unexported fields
}
func (*SmApi) AddCheck ¶
func (h *SmApi) AddCheck(ctx context.Context, check synthetic_monitoring.Check) (*synthetic_monitoring.Check, error)
func (*SmApi) AddProbe ¶
func (h *SmApi) AddProbe(ctx context.Context, probe synthetic_monitoring.Probe) (*synthetic_monitoring.Probe, []byte, error)
type TenantDescription ¶
type TenantDescription struct {
ID int64 `json:"id"`
MetricInstance HostedInstance `json:"metricInstance"`
LogInstance HostedInstance `json:"logInstance"`
}
Click to show internal directories.
Click to hide internal directories.