model

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InstanceTypePrometheus = "prometheus"
	InstanceTypeLogs       = "logs"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckDeleteResponse

type CheckDeleteResponse struct {
	Msg     string `json:"msg"`
	CheckID int64  `json:"checkId"`
}

type ErrorResponse

type ErrorResponse = ResponseError

ErrorResponse was the old name for ResponseError. We want to keep backwards compatibility.

type HostedInstance

type HostedInstance struct {
	ID   int64  `json:"id"`
	Type string `json:"type"`
	Name string `json:"name"`
	URL  string `json:"url"`
}

type ProbeAddResponse

type ProbeAddResponse struct {
	Probe synthetic_monitoring.Probe `json:"probe"`
	Token []byte                     `json:"token"`
}

type ProbeDeleteResponse

type ProbeDeleteResponse struct {
	Msg     string `json:"msg"`
	ProbeID int64  `json:"probeId"`
}

type ProbeUpdateResponse

type ProbeUpdateResponse struct {
	Probe synthetic_monitoring.Probe `json:"probe"`
	Token []byte                     `json:"token,omitempty"`
}

type RegistrationInstallRequest

type RegistrationInstallRequest struct {
	StackID           int64 `json:"stackId"`
	MetricsInstanceID int64 `json:"metricsInstanceId"`
	LogsInstanceID    int64 `json:"logsInstanceId"`
}

type RegistrationInstallResponse

type RegistrationInstallResponse struct {
	AccessToken string             `json:"accessToken"`
	TenantInfo  *TenantDescription `json:"tenantInfo,omitempty"`
}

type ResponseError added in v0.8.0

type ResponseError struct {
	Msg string `json:"msg,omitempty"`
	Err error  `json:"err,omitempty"`
}

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 TokenCreateResponse struct {
	Msg         string `json:"msg,omitempty"`
	AccessToken string `json:"accessToken"`
}

type TokenDeleteResponse

type TokenDeleteResponse struct {
	Msg string `json:"msg,omitempty"`
}

type TokenRefreshResponse

type TokenRefreshResponse struct {
	Msg         string `json:"msg,omitempty"`
	AccessToken string `json:"accessToken"`
}

type TokenValidateResponse

type TokenValidateResponse struct {
	Msg     string `json:"msg,omitempty"`
	IsValid bool   `json:"isValid"`
}

Jump to

Keyboard shortcuts

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