syntheticsstub

package
v0.0.0-...-92e41f0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeJSONResponse

func EncodeJSONResponse(i interface{}, status *int, w http.ResponseWriter) error

EncodeJSONResponse uses the json encoder to write an interface to the http response with an optional status code

func Logger

func Logger(inner http.Handler, name string) http.Handler

func NewRouter

func NewRouter(routers ...Router) *mux.Router

NewRouter creates a new router for any number of api routers

func ReadFormFileToTempFile

func ReadFormFileToTempFile(r *http.Request, key string) (*os.File, error)

ReadFormFileToTempFile reads file data from a request form and writes it to a temporary file

func ReadFormFilesToTempFiles

func ReadFormFilesToTempFiles(r *http.Request, key string) ([]*os.File, error)

ReadFormFilesToTempFiles reads files array data from a request form and writes it to a temporary files

Types

type ImplResponse

type ImplResponse struct {
	Code int
	Body interface{}
}

Implementation response defines an error code with the associated body

func Response

func Response(code int, body interface{}) ImplResponse

Response return a ImplResponse struct filled

type ProtobufAny

type ProtobufAny struct {
	TypeUrl string `json:"typeUrl,omitempty"`

	Value string `json:"value,omitempty"`
}

type Route

type Route struct {
	Name        string
	Method      string
	Pattern     string
	HandlerFunc http.HandlerFunc
}

A Route defines the parameters for an api endpoint

type Router

type Router interface {
	Routes() Routes
}

Router defines the required methods for retrieving api routes

func NewSyntheticsAdminServiceApiController

func NewSyntheticsAdminServiceApiController(s SyntheticsAdminServiceApiServicer) Router

NewSyntheticsAdminServiceApiController creates a default api controller

func NewSyntheticsDataServiceApiController

func NewSyntheticsDataServiceApiController(s SyntheticsDataServiceApiServicer) Router

NewSyntheticsDataServiceApiController creates a default api controller

type Routes

type Routes []Route

Routes are a collection of defined api endpoints

type RpcStatus

type RpcStatus struct {
	Code int32 `json:"code,omitempty"`

	Message string `json:"message,omitempty"`

	Details []ProtobufAny `json:"details,omitempty"`
}

type SyntheticsAdminServiceApiController

type SyntheticsAdminServiceApiController struct {
	// contains filtered or unexported fields
}

A SyntheticsAdminServiceApiController binds http requests to an api service and writes the service results to the http response

func (*SyntheticsAdminServiceApiController) AgentDelete

AgentDelete - Delete an agent.

func (*SyntheticsAdminServiceApiController) AgentGet

AgentGet - Get information about an agent.

func (*SyntheticsAdminServiceApiController) AgentPatch

AgentPatch - Patch an agent.

func (*SyntheticsAdminServiceApiController) AgentsList

AgentsList - List Agents.

func (*SyntheticsAdminServiceApiController) Routes

Routes returns all of the api route for the SyntheticsAdminServiceApiController

func (*SyntheticsAdminServiceApiController) TestCreate

TestCreate - Create Synthetics Test.

func (*SyntheticsAdminServiceApiController) TestDelete

TestDelete - Delete an Synthetics Test.

func (*SyntheticsAdminServiceApiController) TestGet

TestGet - Get information about Synthetics Test.

func (*SyntheticsAdminServiceApiController) TestPatch

TestPatch - Patch a Synthetics Test.

func (*SyntheticsAdminServiceApiController) TestStatusUpdate

TestStatusUpdate - Update a test status.

func (*SyntheticsAdminServiceApiController) TestsList

TestsList - List Synthetics Tests.

type SyntheticsAdminServiceApiRouter

type SyntheticsAdminServiceApiRouter interface {
	AgentDelete(http.ResponseWriter, *http.Request)
	AgentGet(http.ResponseWriter, *http.Request)
	AgentPatch(http.ResponseWriter, *http.Request)
	AgentsList(http.ResponseWriter, *http.Request)
	TestCreate(http.ResponseWriter, *http.Request)
	TestDelete(http.ResponseWriter, *http.Request)
	TestGet(http.ResponseWriter, *http.Request)
	TestPatch(http.ResponseWriter, *http.Request)
	TestStatusUpdate(http.ResponseWriter, *http.Request)
	TestsList(http.ResponseWriter, *http.Request)
}

SyntheticsAdminServiceApiRouter defines the required methods for binding the api requests to a responses for the SyntheticsAdminServiceApi The SyntheticsAdminServiceApiRouter implementation should parse necessary information from the http request, pass the data to a SyntheticsAdminServiceApiServicer to perform the required actions, then write the service results to the http response.

type SyntheticsAdminServiceApiService

type SyntheticsAdminServiceApiService struct {
	// contains filtered or unexported fields
}

SyntheticsAdminServiceApiService is a service that implements the logic for the SyntheticsAdminServiceApiServicer This service should implement the business logic for every endpoint for the SyntheticsAdminServiceApi API. Include any external packages or services that will be required by this service.

func (*SyntheticsAdminServiceApiService) AgentDelete

AgentDelete - Delete an agent.

func (*SyntheticsAdminServiceApiService) AgentGet

AgentGet - Get information about an agent.

func (*SyntheticsAdminServiceApiService) AgentPatch

AgentPatch - Patch an agent.

func (*SyntheticsAdminServiceApiService) AgentsList

AgentsList - List Agents.

func (*SyntheticsAdminServiceApiService) TestCreate

TestCreate - Create Synthetics Test.

func (*SyntheticsAdminServiceApiService) TestDelete

TestDelete - Delete an Synthetics Test.

func (*SyntheticsAdminServiceApiService) TestGet

TestGet - Get information about Synthetics Test.

func (*SyntheticsAdminServiceApiService) TestPatch

TestPatch - Patch a Synthetics Test.

func (*SyntheticsAdminServiceApiService) TestStatusUpdate

TestStatusUpdate - Update a test status.

func (*SyntheticsAdminServiceApiService) TestsList

TestsList - List Synthetics Tests.

type SyntheticsAdminServiceApiServicer

SyntheticsAdminServiceApiServicer defines the api actions for the SyntheticsAdminServiceApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.

func NewSyntheticsAdminServiceApiService

func NewSyntheticsAdminServiceApiService(repo *SyntheticsRepo) SyntheticsAdminServiceApiServicer

NewSyntheticsAdminServiceApiService creates a default api service

type SyntheticsDataServiceApiController

type SyntheticsDataServiceApiController struct {
	// contains filtered or unexported fields
}

A SyntheticsDataServiceApiController binds http requests to an api service and writes the service results to the http response

func (*SyntheticsDataServiceApiController) GetHealthForTests

GetHealthForTests - Get health status for synthetics test.

func (*SyntheticsDataServiceApiController) GetTraceForTest

GetTraceForTest - Get trace route data.

func (*SyntheticsDataServiceApiController) Routes

Routes returns all of the api route for the SyntheticsDataServiceApiController

type SyntheticsDataServiceApiRouter

type SyntheticsDataServiceApiRouter interface {
	GetHealthForTests(http.ResponseWriter, *http.Request)
	GetTraceForTest(http.ResponseWriter, *http.Request)
}

SyntheticsDataServiceApiRouter defines the required methods for binding the api requests to a responses for the SyntheticsDataServiceApi The SyntheticsDataServiceApiRouter implementation should parse necessary information from the http request, pass the data to a SyntheticsDataServiceApiServicer to perform the required actions, then write the service results to the http response.

type SyntheticsDataServiceApiService

type SyntheticsDataServiceApiService struct {
	// contains filtered or unexported fields
}

SyntheticsDataServiceApiService is a service that implements the logic for the SyntheticsDataServiceApiServicer This service should implement the business logic for every endpoint for the SyntheticsDataServiceApi API. Include any external packages or services that will be required by this service.

func (*SyntheticsDataServiceApiService) GetHealthForTests

GetHealthForTests - Get health status for synthetics test.

func (*SyntheticsDataServiceApiService) GetTraceForTest

GetTraceForTest - Get trace route data.

type SyntheticsDataServiceApiServicer

type SyntheticsDataServiceApiServicer interface {
	GetHealthForTests(context.Context, V202101beta1GetHealthForTestsRequest) (ImplResponse, error)
	GetTraceForTest(context.Context, string, V202101beta1GetTraceForTestRequest) (ImplResponse, error)
}

SyntheticsDataServiceApiServicer defines the api actions for the SyntheticsDataServiceApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.

func NewSyntheticsDataServiceApiService

func NewSyntheticsDataServiceApiService(repo *SyntheticsRepo) SyntheticsDataServiceApiServicer

NewSyntheticsDataServiceApiService creates a default api service

type SyntheticsRepo

type SyntheticsRepo struct {
	// contains filtered or unexported fields
}

SyntheticsRepo is local storage for Synthetics data

func NewSyntheticsRepo

func NewSyntheticsRepo(fileName string) *SyntheticsRepo

func (*SyntheticsRepo) CreateTest

NOTE: multiple tests with same name are allowed

func (*SyntheticsRepo) DeleteAgent

func (r *SyntheticsRepo) DeleteAgent(id string) error

func (*SyntheticsRepo) DeleteTest

func (r *SyntheticsRepo) DeleteTest(id string) error

func (*SyntheticsRepo) GetAgent

func (r *SyntheticsRepo) GetAgent(id string) *V202101beta1Agent

func (*SyntheticsRepo) GetHealthForTests

func (r *SyntheticsRepo) GetHealthForTests() []V202101beta1TestHealth

NOTE: in live server GetHealthForTests comes with set of filters; here we just return same result everytime for simplicity

func (*SyntheticsRepo) GetIpInfo

func (r *SyntheticsRepo) GetIpInfo() []V202101beta1IpInfo

NOTE: in live server GetIpInfo comes with set of filters; here we just return same result everytime for simplicity

func (*SyntheticsRepo) GetTest

func (r *SyntheticsRepo) GetTest(id string) *V202101beta1Test

func (*SyntheticsRepo) GetTraceRoutes

func (r *SyntheticsRepo) GetTraceRoutes() []V202101beta1TracerouteResult

NOTE: in live server GetTraceRoutes comes with set of filters; here we just return same result everytime for simplicity

func (*SyntheticsRepo) ListAgents

func (r *SyntheticsRepo) ListAgents() []V202101beta1Agent

func (*SyntheticsRepo) ListTests

func (r *SyntheticsRepo) ListTests() []V202101beta1Test

func (*SyntheticsRepo) PatchAgent

NOTE: in live server PATCH comes with update mask; here we just update the entire agent object for simplicity

func (*SyntheticsRepo) PatchTest

NOTE: in live server PATCH comes with update mask; here we just update the entire test object for simplicity

func (*SyntheticsRepo) UpdateTestStatus

func (r *SyntheticsRepo) UpdateTestStatus(id string, status V202101beta1TestStatus) error

type V202101beta1Agent

type V202101beta1Agent struct {
	Id string `json:"id,omitempty"`

	Name string `json:"name,omitempty"`

	Status V202101beta1AgentStatus `json:"status,omitempty"`

	Alias string `json:"alias,omitempty"`

	Type string `json:"type,omitempty"`

	Os string `json:"os,omitempty"`

	Ip string `json:"ip,omitempty"`

	Lat float64 `json:"lat,omitempty"`

	Long float64 `json:"long,omitempty"`

	LastAuthed time.Time `json:"lastAuthed,omitempty"`

	Family V202101beta1IpFamily `json:"family,omitempty"`

	Asn int64 `json:"asn,omitempty"`

	SiteId string `json:"siteId,omitempty"`

	Version string `json:"version,omitempty"`

	Challenge string `json:"challenge,omitempty"`

	City string `json:"city,omitempty"`

	Region string `json:"region,omitempty"`

	Country string `json:"country,omitempty"`

	TestIds []string `json:"testIds,omitempty"`

	LocalIp string `json:"localIp,omitempty"`
}

type V202101beta1AgentHealth

type V202101beta1AgentHealth struct {
	Agent V202101beta1Agent `json:"agent,omitempty"`

	Health []V202101beta1HealthMoment `json:"health,omitempty"`

	OverallHealth V202101beta1Health `json:"overallHealth,omitempty"`
}

type V202101beta1AgentStatus

type V202101beta1AgentStatus string
const (
	V202101BETA1AGENTSTATUS_UNSPECIFIED V202101beta1AgentStatus = "AGENT_STATUS_UNSPECIFIED"
	V202101BETA1AGENTSTATUS_OK          V202101beta1AgentStatus = "AGENT_STATUS_OK"
	V202101BETA1AGENTSTATUS_WAIT        V202101beta1AgentStatus = "AGENT_STATUS_WAIT"
	V202101BETA1AGENTSTATUS_DELETED     V202101beta1AgentStatus = "AGENT_STATUS_DELETED"
)

List of V202101beta1AgentStatus

type V202101beta1AgentTaskConfig

type V202101beta1AgentTaskConfig struct {
	Id string `json:"id,omitempty"`

	Targets []string `json:"targets,omitempty"`
}

type V202101beta1AgentTest

type V202101beta1AgentTest struct {
	Target string `json:"target,omitempty"`
}

type V202101beta1Asn

type V202101beta1Asn struct {
	Id int64 `json:"id,omitempty"`

	Name string `json:"name,omitempty"`
}

type V202101beta1City

type V202101beta1City struct {
	Id string `json:"id,omitempty"`

	Name string `json:"name,omitempty"`

	Latitude float64 `json:"latitude,omitempty"`

	Longitude float64 `json:"longitude,omitempty"`
}

type V202101beta1Country

type V202101beta1Country struct {
	Code string `json:"code,omitempty"`

	Name string `json:"name,omitempty"`
}

type V202101beta1CreateTestRequest

type V202101beta1CreateTestRequest struct {
	Test V202101beta1Test `json:"test,omitempty"`
}

type V202101beta1CreateTestResponse

type V202101beta1CreateTestResponse struct {
	Test V202101beta1Test `json:"test,omitempty"`
}

type V202101beta1Dns

type V202101beta1Dns struct {
	Name string `json:"name,omitempty"`
}

type V202101beta1DnsTaskDefinition

type V202101beta1DnsTaskDefinition struct {
	Target string `json:"target,omitempty"`

	Period int64 `json:"period,omitempty"`

	Expiry int64 `json:"expiry,omitempty"`

	Count int64 `json:"count,omitempty"`

	Port int64 `json:"port,omitempty"`

	Type string `json:"type,omitempty"`

	Resolver string `json:"resolver,omitempty"`
}

type V202101beta1DnsTest

type V202101beta1DnsTest struct {
	Target string `json:"target,omitempty"`
}

type V202101beta1FlowTest

type V202101beta1FlowTest struct {
	Target string `json:"target,omitempty"`

	TargetRefreshIntervalMillis int64 `json:"targetRefreshIntervalMillis,omitempty"`

	MaxTasks int64 `json:"maxTasks,omitempty"`

	Type string `json:"type,omitempty"`

	InetDirection string `json:"inetDirection,omitempty"`

	Direction string `json:"direction,omitempty"`
}

type V202101beta1Geo

type V202101beta1Geo struct {
	Country V202101beta1Country `json:"country,omitempty"`

	Region V202101beta1Region `json:"region,omitempty"`

	City V202101beta1City `json:"city,omitempty"`
}

type V202101beta1GetAgentResponse

type V202101beta1GetAgentResponse struct {
	Agent V202101beta1Agent `json:"agent,omitempty"`
}

type V202101beta1GetHealthForTestsRequest

type V202101beta1GetHealthForTestsRequest struct {

	// List of ids of the tests to get health for.
	Ids []string `json:"ids,omitempty"`

	// Start of the time interval for this query.
	StartTime time.Time `json:"startTime,omitempty"`

	// End of the time interval for this query.
	EndTime time.Time `json:"endTime,omitempty"`

	AgentIds []string `json:"agentIds,omitempty"`

	// Optionally only look at a subset of tasks -- this lets you limit targets.
	TaskIds []string `json:"taskIds,omitempty"`

	Augment bool `json:"augment,omitempty"`
}

type V202101beta1GetHealthForTestsResponse

type V202101beta1GetHealthForTestsResponse struct {
	Health []V202101beta1TestHealth `json:"health,omitempty"`
}

type V202101beta1GetTestResponse

type V202101beta1GetTestResponse struct {
	Test V202101beta1Test `json:"test,omitempty"`
}

type V202101beta1GetTraceForTestRequest

type V202101beta1GetTraceForTestRequest struct {
	Id string `json:"id,omitempty"`

	// Start of the time interval for this query.
	StartTime time.Time `json:"startTime,omitempty"`

	// End of the time interval for this query.
	EndTime time.Time `json:"endTime,omitempty"`

	AgentIds []string `json:"agentIds,omitempty"`

	TargetIps []string `json:"targetIps,omitempty"`
}

type V202101beta1GetTraceForTestResponse

type V202101beta1GetTraceForTestResponse struct {
	IpInfo []V202101beta1IpInfo `json:"ipInfo,omitempty"`

	TraceRoutes []V202101beta1TracerouteResult `json:"traceRoutes,omitempty"`
}

type V202101beta1GridTest

type V202101beta1GridTest struct {
	Targets []string `json:"targets,omitempty"`
}

type V202101beta1Health

type V202101beta1Health struct {
	Health string `json:"health,omitempty"`

	Time time.Time `json:"time,omitempty"`
}

type V202101beta1HealthMoment

type V202101beta1HealthMoment struct {
	Time time.Time `json:"time,omitempty"`

	SrcIp string `json:"srcIp,omitempty"`

	DstIp string `json:"dstIp,omitempty"`

	PacketLoss float64 `json:"packetLoss,omitempty"`

	AvgLatency int64 `json:"avgLatency,omitempty"`

	AvgWeightedLatency int64 `json:"avgWeightedLatency,omitempty"`

	RollingAvgLatency int64 `json:"rollingAvgLatency,omitempty"`

	RollingStddevLatency int64 `json:"rollingStddevLatency,omitempty"`

	RollingAvgWeightedLatency int64 `json:"rollingAvgWeightedLatency,omitempty"`

	LatencyHealth string `json:"latencyHealth,omitempty"`

	PacketLossHealth string `json:"packetLossHealth,omitempty"`

	OverallHealth V202101beta1Health `json:"overallHealth,omitempty"`

	AvgJitter int64 `json:"avgJitter,omitempty"`

	RollingAvgJitter int64 `json:"rollingAvgJitter,omitempty"`

	RollingStdJitter int64 `json:"rollingStdJitter,omitempty"`

	JitterHealth string `json:"jitterHealth,omitempty"`

	Data string `json:"data,omitempty"`

	Size int64 `json:"size,omitempty"`

	Status int64 `json:"status,omitempty"`

	TaskType string `json:"taskType,omitempty"`
}

type V202101beta1HealthSettings

type V202101beta1HealthSettings struct {
	LatencyCritical float32 `json:"latencyCritical,omitempty"`

	LatencyWarning float32 `json:"latencyWarning,omitempty"`

	PacketLossCritical float32 `json:"packetLossCritical,omitempty"`

	PacketLossWarning float32 `json:"packetLossWarning,omitempty"`

	JitterCritical float32 `json:"jitterCritical,omitempty"`

	JitterWarning float32 `json:"jitterWarning,omitempty"`

	HttpLatencyCritical float32 `json:"httpLatencyCritical,omitempty"`

	HttpLatencyWarning float32 `json:"httpLatencyWarning,omitempty"`

	HttpValidCodes []int64 `json:"httpValidCodes,omitempty"`

	DnsValidCodes []int64 `json:"dnsValidCodes,omitempty"`
}

type V202101beta1HostnameTest

type V202101beta1HostnameTest struct {
	Target string `json:"target,omitempty"`
}

type V202101beta1HttpConfig

type V202101beta1HttpConfig struct {
	Period int64 `json:"period,omitempty"`

	Expiry int64 `json:"expiry,omitempty"`

	Method string `json:"method,omitempty"`

	Headers map[string]string `json:"headers,omitempty"`

	Body string `json:"body,omitempty"`

	IgnoreTlsErrors bool `json:"ignoreTlsErrors,omitempty"`
}

type V202101beta1HttpTaskDefinition

type V202101beta1HttpTaskDefinition struct {
	Target string `json:"target,omitempty"`

	Period int64 `json:"period,omitempty"`

	Expiry int64 `json:"expiry,omitempty"`
}

type V202101beta1IpFamily

type V202101beta1IpFamily string
const (
	V202101BETA1IPFAMILY_UNSPECIFIED V202101beta1IpFamily = "IP_FAMILY_UNSPECIFIED"
	V202101BETA1IPFAMILY_V4          V202101beta1IpFamily = "IP_FAMILY_V4"
	V202101BETA1IPFAMILY_V6          V202101beta1IpFamily = "IP_FAMILY_V6"
	V202101BETA1IPFAMILY_DUAL        V202101beta1IpFamily = "IP_FAMILY_DUAL"
)

List of V202101beta1IpFamily

type V202101beta1IpInfo

type V202101beta1IpInfo struct {
	Ip string `json:"ip,omitempty"`

	Asn V202101beta1Asn `json:"asn,omitempty"`

	Geo V202101beta1Geo `json:"geo,omitempty"`

	Dns V202101beta1Dns `json:"dns,omitempty"`
}

type V202101beta1IpTest

type V202101beta1IpTest struct {
	Targets []string `json:"targets,omitempty"`
}

type V202101beta1KnockTaskDefinition

type V202101beta1KnockTaskDefinition struct {
	Target string `json:"target,omitempty"`

	Period int64 `json:"period,omitempty"`

	Expiry int64 `json:"expiry,omitempty"`

	Count int64 `json:"count,omitempty"`

	Port int64 `json:"port,omitempty"`
}

type V202101beta1ListAgentsResponse

type V202101beta1ListAgentsResponse struct {
	Agents []V202101beta1Agent `json:"agents,omitempty"`

	InvalidAgentsCount int64 `json:"invalidAgentsCount,omitempty"`
}

type V202101beta1ListTestsResponse

type V202101beta1ListTestsResponse struct {
	Tests []V202101beta1Test `json:"tests,omitempty"`

	InvalidTestsCount int64 `json:"invalidTestsCount,omitempty"`
}

type V202101beta1MeshColumn

type V202101beta1MeshColumn struct {
	Id string `json:"id,omitempty"`

	Name string `json:"name,omitempty"`

	Alias string `json:"alias,omitempty"`

	Target string `json:"target,omitempty"`

	Metrics V202101beta1MeshMetrics `json:"metrics,omitempty"`

	Health []V202101beta1MeshMetrics `json:"health,omitempty"`
}

type V202101beta1MeshMetric

type V202101beta1MeshMetric struct {
	Name string `json:"name,omitempty"`

	Health string `json:"health,omitempty"`

	Value string `json:"value,omitempty"`
}

type V202101beta1MeshMetrics

type V202101beta1MeshMetrics struct {
	Time time.Time `json:"time,omitempty"`

	Latency V202101beta1MeshMetric `json:"latency,omitempty"`

	PacketLoss V202101beta1MeshMetric `json:"packetLoss,omitempty"`

	Jitter V202101beta1MeshMetric `json:"jitter,omitempty"`
}

type V202101beta1MeshResponse

type V202101beta1MeshResponse struct {
	Id string `json:"id,omitempty"`

	Name string `json:"name,omitempty"`

	LocalIp string `json:"localIp,omitempty"`

	Ip string `json:"ip,omitempty"`

	Alias string `json:"alias,omitempty"`

	Columns []V202101beta1MeshColumn `json:"columns,omitempty"`
}

type V202101beta1PatchAgentRequest

type V202101beta1PatchAgentRequest struct {
	Agent V202101beta1Agent `json:"agent,omitempty"`

	Mask string `json:"mask,omitempty"`
}

type V202101beta1PatchAgentResponse

type V202101beta1PatchAgentResponse struct {
	Agent V202101beta1Agent `json:"agent,omitempty"`
}

type V202101beta1PatchTestRequest

type V202101beta1PatchTestRequest struct {
	Test V202101beta1Test `json:"test,omitempty"`

	Mask string `json:"mask,omitempty"`
}

type V202101beta1PatchTestResponse

type V202101beta1PatchTestResponse struct {
	Test V202101beta1Test `json:"test,omitempty"`
}

type V202101beta1PingTaskDefinition

type V202101beta1PingTaskDefinition struct {
	Target string `json:"target,omitempty"`

	Period int64 `json:"period,omitempty"`

	Expiry int64 `json:"expiry,omitempty"`

	Count int64 `json:"count,omitempty"`
}

type V202101beta1Region

type V202101beta1Region struct {
	Id string `json:"id,omitempty"`

	Name string `json:"name,omitempty"`
}

type V202101beta1SetTestStatusRequest

type V202101beta1SetTestStatusRequest struct {
	Id string `json:"id,omitempty"`

	Status V202101beta1TestStatus `json:"status,omitempty"`
}

type V202101beta1ShakeTaskDefinition

type V202101beta1ShakeTaskDefinition struct {
	Target string `json:"target,omitempty"`

	Port int64 `json:"port,omitempty"`

	Period int64 `json:"period,omitempty"`

	Expiry int64 `json:"expiry,omitempty"`
}

type V202101beta1SiteTest

type V202101beta1SiteTest struct {
	Target string `json:"target,omitempty"`
}

type V202101beta1TagTest

type V202101beta1TagTest struct {
	Target string `json:"target,omitempty"`
}

type V202101beta1Task

type V202101beta1Task struct {
	Id string `json:"id,omitempty"`

	TestId string `json:"testId,omitempty"`

	DeviceId string `json:"deviceId,omitempty"`

	State V202101beta1TaskState `json:"state,omitempty"`

	Status string `json:"status,omitempty"`

	Family V202101beta1IpFamily `json:"family,omitempty"`

	Ping V202101beta1PingTaskDefinition `json:"ping,omitempty"`

	Traceroute V202101beta1TraceTaskDefinition `json:"traceroute,omitempty"`

	Http V202101beta1HttpTaskDefinition `json:"http,omitempty"`

	Knock V202101beta1KnockTaskDefinition `json:"knock,omitempty"`

	Dns V202101beta1DnsTaskDefinition `json:"dns,omitempty"`

	Shake V202101beta1ShakeTaskDefinition `json:"shake,omitempty"`
}

type V202101beta1TaskHealth

type V202101beta1TaskHealth struct {
	Task V202101beta1Task `json:"task,omitempty"`

	Agents []V202101beta1AgentHealth `json:"agents,omitempty"`

	OverallHealth V202101beta1Health `json:"overallHealth,omitempty"`

	TargetAgent V202101beta1Agent `json:"targetAgent,omitempty"`
}

type V202101beta1TaskState

type V202101beta1TaskState string
const (
	V202101BETA1TASKSTATE_UNSPECIFIED V202101beta1TaskState = "TASK_STATE_UNSPECIFIED"
	V202101BETA1TASKSTATE_CREATED     V202101beta1TaskState = "TASK_STATE_CREATED"
	V202101BETA1TASKSTATE_UPDATED     V202101beta1TaskState = "TASK_STATE_UPDATED"
	V202101BETA1TASKSTATE_DELETED     V202101beta1TaskState = "TASK_STATE_DELETED"
)

List of V202101beta1TaskState

type V202101beta1Test

type V202101beta1Test struct {
	Id string `json:"id,omitempty"`

	Name string `json:"name,omitempty"`

	Type string `json:"type,omitempty"`

	DeviceId string `json:"deviceId,omitempty"`

	Status V202101beta1TestStatus `json:"status,omitempty"`

	Settings V202101beta1TestSettings `json:"settings,omitempty"`

	ExpiresOn time.Time `json:"expiresOn,omitempty"`

	Cdate time.Time `json:"cdate,omitempty"`

	Edate time.Time `json:"edate,omitempty"`

	CreatedBy V202101beta1UserInfo `json:"createdBy,omitempty"`

	LastUpdatedBy V202101beta1UserInfo `json:"lastUpdatedBy,omitempty"`
}

type V202101beta1TestHealth

type V202101beta1TestHealth struct {
	TestId string `json:"testId,omitempty"`

	Tasks []V202101beta1TaskHealth `json:"tasks,omitempty"`

	OverallHealth V202101beta1Health `json:"overallHealth,omitempty"`

	HealthTs []V202101beta1Health `json:"healthTs,omitempty"`

	AgentTaskConfig []V202101beta1AgentTaskConfig `json:"agentTaskConfig,omitempty"`

	Mesh []V202101beta1MeshResponse `json:"mesh,omitempty"`
}

type V202101beta1TestMonitoringSettings

type V202101beta1TestMonitoringSettings struct {
	ActivationGracePeriod string `json:"activationGracePeriod,omitempty"`

	ActivationTimeUnit string `json:"activationTimeUnit,omitempty"`

	ActivationTimeWindow string `json:"activationTimeWindow,omitempty"`

	ActivationTimes string `json:"activationTimes,omitempty"`

	NotificationChannels []string `json:"notificationChannels,omitempty"`
}

type V202101beta1TestPingSettings

type V202101beta1TestPingSettings struct {
	Period float32 `json:"period,omitempty"`

	Count float32 `json:"count,omitempty"`

	Expiry float32 `json:"expiry,omitempty"`

	Delay float32 `json:"delay,omitempty"`
}

type V202101beta1TestSettings

type V202101beta1TestSettings struct {
	Hostname V202101beta1HostnameTest `json:"hostname,omitempty"`

	Ip V202101beta1IpTest `json:"ip,omitempty"`

	Agent V202101beta1AgentTest `json:"agent,omitempty"`

	Flow V202101beta1FlowTest `json:"flow,omitempty"`

	Site V202101beta1SiteTest `json:"site,omitempty"`

	Tag V202101beta1TagTest `json:"tag,omitempty"`

	Dns V202101beta1DnsTest `json:"dns,omitempty"`

	Url V202101beta1UrlTest `json:"url,omitempty"`

	NetworkGrid V202101beta1GridTest `json:"networkGrid,omitempty"`

	PageLoad V202101beta1UrlTest `json:"pageLoad,omitempty"`

	DnsGrid V202101beta1GridTest `json:"dnsGrid,omitempty"`

	AgentIds []string `json:"agentIds,omitempty"`

	Period int64 `json:"period,omitempty"`

	Count int64 `json:"count,omitempty"`

	Expiry int64 `json:"expiry,omitempty"`

	Limit int64 `json:"limit,omitempty"`

	Tasks []string `json:"tasks,omitempty"`

	HealthSettings V202101beta1HealthSettings `json:"healthSettings,omitempty"`

	MonitoringSettings V202101beta1TestMonitoringSettings `json:"monitoringSettings,omitempty"`

	Ping V202101beta1TestPingSettings `json:"ping,omitempty"`

	Trace V202101beta1TestTraceSettings `json:"trace,omitempty"`

	Port int64 `json:"port,omitempty"`

	Protocol string `json:"protocol,omitempty"`

	Family V202101beta1IpFamily `json:"family,omitempty"`

	Servers []string `json:"servers,omitempty"`

	TargetType string `json:"targetType,omitempty"`

	TargetValue string `json:"targetValue,omitempty"`

	UseLocalIp bool `json:"useLocalIp,omitempty"`

	Reciprocal bool `json:"reciprocal,omitempty"`

	RollupLevel int64 `json:"rollupLevel,omitempty"`

	Http V202101beta1HttpConfig `json:"http,omitempty"`
}

type V202101beta1TestStatus

type V202101beta1TestStatus string
const (
	V202101BETA1TESTSTATUS_UNSPECIFIED V202101beta1TestStatus = "TEST_STATUS_UNSPECIFIED"
	V202101BETA1TESTSTATUS_ACTIVE      V202101beta1TestStatus = "TEST_STATUS_ACTIVE"
	V202101BETA1TESTSTATUS_PAUSED      V202101beta1TestStatus = "TEST_STATUS_PAUSED"
	V202101BETA1TESTSTATUS_DELETED     V202101beta1TestStatus = "TEST_STATUS_DELETED"
)

List of V202101beta1TestStatus

type V202101beta1TestTraceSettings

type V202101beta1TestTraceSettings struct {
	Period float32 `json:"period,omitempty"`

	Count float32 `json:"count,omitempty"`

	Protocol string `json:"protocol,omitempty"`

	Port float32 `json:"port,omitempty"`

	Expiry float32 `json:"expiry,omitempty"`

	Limit float32 `json:"limit,omitempty"`

	Delay float32 `json:"delay,omitempty"`
}

type V202101beta1Trace

type V202101beta1Trace struct {
	Hops []V202101beta1TraceHop `json:"hops,omitempty"`

	Target string `json:"target,omitempty"`

	Ips []string `json:"ips,omitempty"`
}

type V202101beta1TraceHop

type V202101beta1TraceHop struct {
	Agent bool `json:"agent,omitempty"`

	AgentId string `json:"agentId,omitempty"`

	Ttl int32 `json:"ttl,omitempty"`

	Ip string `json:"ip,omitempty"`

	Latencies []string `json:"latencies,omitempty"`

	Timeout bool `json:"timeout,omitempty"`
}

type V202101beta1TraceTaskDefinition

type V202101beta1TraceTaskDefinition struct {
	Target string `json:"target,omitempty"`

	Period int64 `json:"period,omitempty"`

	Expiry int64 `json:"expiry,omitempty"`

	Limit int64 `json:"limit,omitempty"`
}

type V202101beta1TracerouteResult

type V202101beta1TracerouteResult struct {
	Time time.Time `json:"time,omitempty"`

	Traces []V202101beta1Trace `json:"traces,omitempty"`
}

type V202101beta1UrlTest

type V202101beta1UrlTest struct {
	Target string `json:"target,omitempty"`
}

type V202101beta1UserInfo

type V202101beta1UserInfo struct {
	Id string `json:"id,omitempty"`

	Email string `json:"email,omitempty"`

	FullName string `json:"fullName,omitempty"`
}

Source Files

Jump to

Keyboard shortcuts

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