Documentation ¶
Index ¶
- func EncodeJSONResponse(i interface{}, status *int, w http.ResponseWriter) error
- func Logger(inner http.Handler, name string) http.Handler
- func NewRouter(routers ...Router) *mux.Router
- func ReadFormFileToTempFile(r *http.Request, key string) (*os.File, error)
- func ReadFormFilesToTempFiles(r *http.Request, key string) ([]*os.File, error)
- type ImplResponse
- type ProtobufAny
- type Route
- type Router
- type Routes
- type RpcStatus
- type SyntheticsAdminServiceApiController
- func (c *SyntheticsAdminServiceApiController) AgentDelete(w http.ResponseWriter, r *http.Request)
- func (c *SyntheticsAdminServiceApiController) AgentGet(w http.ResponseWriter, r *http.Request)
- func (c *SyntheticsAdminServiceApiController) AgentPatch(w http.ResponseWriter, r *http.Request)
- func (c *SyntheticsAdminServiceApiController) AgentsList(w http.ResponseWriter, r *http.Request)
- func (c *SyntheticsAdminServiceApiController) Routes() Routes
- func (c *SyntheticsAdminServiceApiController) TestCreate(w http.ResponseWriter, r *http.Request)
- func (c *SyntheticsAdminServiceApiController) TestDelete(w http.ResponseWriter, r *http.Request)
- func (c *SyntheticsAdminServiceApiController) TestGet(w http.ResponseWriter, r *http.Request)
- func (c *SyntheticsAdminServiceApiController) TestPatch(w http.ResponseWriter, r *http.Request)
- func (c *SyntheticsAdminServiceApiController) TestStatusUpdate(w http.ResponseWriter, r *http.Request)
- func (c *SyntheticsAdminServiceApiController) TestsList(w http.ResponseWriter, r *http.Request)
- type SyntheticsAdminServiceApiRouter
- type SyntheticsAdminServiceApiService
- func (s *SyntheticsAdminServiceApiService) AgentDelete(_ context.Context, agentId string) (ImplResponse, error)
- func (s *SyntheticsAdminServiceApiService) AgentGet(_ context.Context, agentId string) (ImplResponse, error)
- func (s *SyntheticsAdminServiceApiService) AgentPatch(_ context.Context, agentId string, body V202101beta1PatchAgentRequest) (ImplResponse, error)
- func (s *SyntheticsAdminServiceApiService) AgentsList(_ context.Context) (ImplResponse, error)
- func (s *SyntheticsAdminServiceApiService) TestCreate(_ context.Context, body V202101beta1CreateTestRequest) (ImplResponse, error)
- func (s *SyntheticsAdminServiceApiService) TestDelete(_ context.Context, id string) (ImplResponse, error)
- func (s *SyntheticsAdminServiceApiService) TestGet(_ context.Context, id string) (ImplResponse, error)
- func (s *SyntheticsAdminServiceApiService) TestPatch(_ context.Context, id string, body V202101beta1PatchTestRequest) (ImplResponse, error)
- func (s *SyntheticsAdminServiceApiService) TestStatusUpdate(_ context.Context, id string, body V202101beta1SetTestStatusRequest) (ImplResponse, error)
- func (s *SyntheticsAdminServiceApiService) TestsList(_ context.Context, preset bool) (ImplResponse, error)
- type SyntheticsAdminServiceApiServicer
- type SyntheticsDataServiceApiController
- type SyntheticsDataServiceApiRouter
- type SyntheticsDataServiceApiService
- type SyntheticsDataServiceApiServicer
- type SyntheticsRepo
- func (r *SyntheticsRepo) CreateTest(t V202101beta1Test) (*V202101beta1Test, error)
- func (r *SyntheticsRepo) DeleteAgent(id string) error
- func (r *SyntheticsRepo) DeleteTest(id string) error
- func (r *SyntheticsRepo) GetAgent(id string) *V202101beta1Agent
- func (r *SyntheticsRepo) GetHealthForTests() []V202101beta1TestHealth
- func (r *SyntheticsRepo) GetIpInfo() []V202101beta1IpInfo
- func (r *SyntheticsRepo) GetTest(id string) *V202101beta1Test
- func (r *SyntheticsRepo) GetTraceRoutes() []V202101beta1TracerouteResult
- func (r *SyntheticsRepo) ListAgents() []V202101beta1Agent
- func (r *SyntheticsRepo) ListTests() []V202101beta1Test
- func (r *SyntheticsRepo) PatchAgent(a V202101beta1Agent) (*V202101beta1Agent, error)
- func (r *SyntheticsRepo) PatchTest(t V202101beta1Test) (*V202101beta1Test, error)
- func (r *SyntheticsRepo) UpdateTestStatus(id string, status V202101beta1TestStatus) error
- type V202101beta1Agent
- type V202101beta1AgentHealth
- type V202101beta1AgentStatus
- type V202101beta1AgentTaskConfig
- type V202101beta1AgentTest
- type V202101beta1Asn
- type V202101beta1City
- type V202101beta1Country
- type V202101beta1CreateTestRequest
- type V202101beta1CreateTestResponse
- type V202101beta1Dns
- type V202101beta1DnsTaskDefinition
- type V202101beta1DnsTest
- type V202101beta1FlowTest
- type V202101beta1Geo
- type V202101beta1GetAgentResponse
- type V202101beta1GetHealthForTestsRequest
- type V202101beta1GetHealthForTestsResponse
- type V202101beta1GetTestResponse
- type V202101beta1GetTraceForTestRequest
- type V202101beta1GetTraceForTestResponse
- type V202101beta1GridTest
- type V202101beta1Health
- type V202101beta1HealthMoment
- type V202101beta1HealthSettings
- type V202101beta1HostnameTest
- type V202101beta1HttpConfig
- type V202101beta1HttpTaskDefinition
- type V202101beta1IpFamily
- type V202101beta1IpInfo
- type V202101beta1IpTest
- type V202101beta1KnockTaskDefinition
- type V202101beta1ListAgentsResponse
- type V202101beta1ListTestsResponse
- type V202101beta1MeshColumn
- type V202101beta1MeshMetric
- type V202101beta1MeshMetrics
- type V202101beta1MeshResponse
- type V202101beta1PatchAgentRequest
- type V202101beta1PatchAgentResponse
- type V202101beta1PatchTestRequest
- type V202101beta1PatchTestResponse
- type V202101beta1PingTaskDefinition
- type V202101beta1Region
- type V202101beta1SetTestStatusRequest
- type V202101beta1ShakeTaskDefinition
- type V202101beta1SiteTest
- type V202101beta1TagTest
- type V202101beta1Task
- type V202101beta1TaskHealth
- type V202101beta1TaskState
- type V202101beta1Test
- type V202101beta1TestHealth
- type V202101beta1TestMonitoringSettings
- type V202101beta1TestPingSettings
- type V202101beta1TestSettings
- type V202101beta1TestStatus
- type V202101beta1TestTraceSettings
- type V202101beta1Trace
- type V202101beta1TraceHop
- type V202101beta1TraceTaskDefinition
- type V202101beta1TracerouteResult
- type V202101beta1UrlTest
- type V202101beta1UserInfo
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 ReadFormFileToTempFile ¶
ReadFormFileToTempFile reads file data from a request form and writes it to a temporary file
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 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 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 ¶
func (c *SyntheticsAdminServiceApiController) AgentDelete(w http.ResponseWriter, r *http.Request)
AgentDelete - Delete an agent.
func (*SyntheticsAdminServiceApiController) AgentGet ¶
func (c *SyntheticsAdminServiceApiController) AgentGet(w http.ResponseWriter, r *http.Request)
AgentGet - Get information about an agent.
func (*SyntheticsAdminServiceApiController) AgentPatch ¶
func (c *SyntheticsAdminServiceApiController) AgentPatch(w http.ResponseWriter, r *http.Request)
AgentPatch - Patch an agent.
func (*SyntheticsAdminServiceApiController) AgentsList ¶
func (c *SyntheticsAdminServiceApiController) AgentsList(w http.ResponseWriter, r *http.Request)
AgentsList - List Agents.
func (*SyntheticsAdminServiceApiController) Routes ¶
func (c *SyntheticsAdminServiceApiController) Routes() Routes
Routes returns all of the api route for the SyntheticsAdminServiceApiController
func (*SyntheticsAdminServiceApiController) TestCreate ¶
func (c *SyntheticsAdminServiceApiController) TestCreate(w http.ResponseWriter, r *http.Request)
TestCreate - Create Synthetics Test.
func (*SyntheticsAdminServiceApiController) TestDelete ¶
func (c *SyntheticsAdminServiceApiController) TestDelete(w http.ResponseWriter, r *http.Request)
TestDelete - Delete an Synthetics Test.
func (*SyntheticsAdminServiceApiController) TestGet ¶
func (c *SyntheticsAdminServiceApiController) TestGet(w http.ResponseWriter, r *http.Request)
TestGet - Get information about Synthetics Test.
func (*SyntheticsAdminServiceApiController) TestPatch ¶
func (c *SyntheticsAdminServiceApiController) TestPatch(w http.ResponseWriter, r *http.Request)
TestPatch - Patch a Synthetics Test.
func (*SyntheticsAdminServiceApiController) TestStatusUpdate ¶
func (c *SyntheticsAdminServiceApiController) TestStatusUpdate(w http.ResponseWriter, r *http.Request)
TestStatusUpdate - Update a test status.
func (*SyntheticsAdminServiceApiController) TestsList ¶
func (c *SyntheticsAdminServiceApiController) TestsList(w http.ResponseWriter, r *http.Request)
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 ¶
func (s *SyntheticsAdminServiceApiService) AgentDelete(_ context.Context, agentId string) (ImplResponse, error)
AgentDelete - Delete an agent.
func (*SyntheticsAdminServiceApiService) AgentGet ¶
func (s *SyntheticsAdminServiceApiService) AgentGet(_ context.Context, agentId string) (ImplResponse, error)
AgentGet - Get information about an agent.
func (*SyntheticsAdminServiceApiService) AgentPatch ¶
func (s *SyntheticsAdminServiceApiService) AgentPatch(_ context.Context, agentId string, body V202101beta1PatchAgentRequest) (ImplResponse, error)
AgentPatch - Patch an agent.
func (*SyntheticsAdminServiceApiService) AgentsList ¶
func (s *SyntheticsAdminServiceApiService) AgentsList(_ context.Context) (ImplResponse, error)
AgentsList - List Agents.
func (*SyntheticsAdminServiceApiService) TestCreate ¶
func (s *SyntheticsAdminServiceApiService) TestCreate(_ context.Context, body V202101beta1CreateTestRequest) (ImplResponse, error)
TestCreate - Create Synthetics Test.
func (*SyntheticsAdminServiceApiService) TestDelete ¶
func (s *SyntheticsAdminServiceApiService) TestDelete(_ context.Context, id string) (ImplResponse, error)
TestDelete - Delete an Synthetics Test.
func (*SyntheticsAdminServiceApiService) TestGet ¶
func (s *SyntheticsAdminServiceApiService) TestGet(_ context.Context, id string) (ImplResponse, error)
TestGet - Get information about Synthetics Test.
func (*SyntheticsAdminServiceApiService) TestPatch ¶
func (s *SyntheticsAdminServiceApiService) TestPatch(_ context.Context, id string, body V202101beta1PatchTestRequest) (ImplResponse, error)
TestPatch - Patch a Synthetics Test.
func (*SyntheticsAdminServiceApiService) TestStatusUpdate ¶
func (s *SyntheticsAdminServiceApiService) TestStatusUpdate(_ context.Context, id string, body V202101beta1SetTestStatusRequest) (ImplResponse, error)
TestStatusUpdate - Update a test status.
func (*SyntheticsAdminServiceApiService) TestsList ¶
func (s *SyntheticsAdminServiceApiService) TestsList(_ context.Context, preset bool) (ImplResponse, error)
TestsList - List Synthetics Tests.
type SyntheticsAdminServiceApiServicer ¶
type SyntheticsAdminServiceApiServicer interface { AgentDelete(context.Context, string) (ImplResponse, error) AgentGet(context.Context, string) (ImplResponse, error) AgentPatch(context.Context, string, V202101beta1PatchAgentRequest) (ImplResponse, error) AgentsList(context.Context) (ImplResponse, error) TestCreate(context.Context, V202101beta1CreateTestRequest) (ImplResponse, error) TestDelete(context.Context, string) (ImplResponse, error) TestGet(context.Context, string) (ImplResponse, error) TestPatch(context.Context, string, V202101beta1PatchTestRequest) (ImplResponse, error) TestStatusUpdate(context.Context, string, V202101beta1SetTestStatusRequest) (ImplResponse, error) TestsList(context.Context, bool) (ImplResponse, error) }
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 ¶
func (c *SyntheticsDataServiceApiController) GetHealthForTests(w http.ResponseWriter, r *http.Request)
GetHealthForTests - Get health status for synthetics test.
func (*SyntheticsDataServiceApiController) GetTraceForTest ¶
func (c *SyntheticsDataServiceApiController) GetTraceForTest(w http.ResponseWriter, r *http.Request)
GetTraceForTest - Get trace route data.
func (*SyntheticsDataServiceApiController) Routes ¶
func (c *SyntheticsDataServiceApiController) Routes() 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 ¶
func (s *SyntheticsDataServiceApiService) GetHealthForTests(_ context.Context, body V202101beta1GetHealthForTestsRequest) (ImplResponse, error)
GetHealthForTests - Get health status for synthetics test.
func (*SyntheticsDataServiceApiService) GetTraceForTest ¶
func (s *SyntheticsDataServiceApiService) GetTraceForTest(_ context.Context, id string, body V202101beta1GetTraceForTestRequest) (ImplResponse, error)
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 ¶
func (r *SyntheticsRepo) CreateTest(t V202101beta1Test) (*V202101beta1Test, error)
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 ¶
func (r *SyntheticsRepo) PatchAgent(a V202101beta1Agent) (*V202101beta1Agent, error)
NOTE: in live server PATCH comes with update mask; here we just update the entire agent object for simplicity
func (*SyntheticsRepo) PatchTest ¶
func (r *SyntheticsRepo) PatchTest(t V202101beta1Test) (*V202101beta1Test, error)
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 V202101beta1AgentTest ¶
type V202101beta1AgentTest struct {
Target string `json:"target,omitempty"`
}
type V202101beta1Asn ¶
type V202101beta1City ¶
type V202101beta1Country ¶
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 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 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 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 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 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 V202101beta1Region ¶
type V202101beta1SetTestStatusRequest ¶
type V202101beta1SetTestStatusRequest struct { Id string `json:"id,omitempty"` Status V202101beta1TestStatus `json:"status,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 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 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 ¶
Source Files ¶
- api.go
- api_synthetics_admin_service.go
- api_synthetics_admin_service_service.go
- api_synthetics_data_service.go
- api_synthetics_data_service_service.go
- helpers.go
- impl.go
- logger.go
- model_protobuf_any.go
- model_rpc_status.go
- model_v202101beta1_agent.go
- model_v202101beta1_agent_health.go
- model_v202101beta1_agent_status.go
- model_v202101beta1_agent_task_config.go
- model_v202101beta1_agent_test_.go
- model_v202101beta1_asn.go
- model_v202101beta1_city.go
- model_v202101beta1_country.go
- model_v202101beta1_create_test_request.go
- model_v202101beta1_create_test_response.go
- model_v202101beta1_dns.go
- model_v202101beta1_dns_task_definition.go
- model_v202101beta1_dns_test_.go
- model_v202101beta1_flow_test_.go
- model_v202101beta1_geo.go
- model_v202101beta1_get_agent_response.go
- model_v202101beta1_get_health_for_tests_request.go
- model_v202101beta1_get_health_for_tests_response.go
- model_v202101beta1_get_test_response.go
- model_v202101beta1_get_trace_for_test_request.go
- model_v202101beta1_get_trace_for_test_response.go
- model_v202101beta1_grid_test_.go
- model_v202101beta1_health.go
- model_v202101beta1_health_moment.go
- model_v202101beta1_health_settings.go
- model_v202101beta1_hostname_test_.go
- model_v202101beta1_http_config.go
- model_v202101beta1_http_task_definition.go
- model_v202101beta1_ip_family.go
- model_v202101beta1_ip_info.go
- model_v202101beta1_ip_test_.go
- model_v202101beta1_knock_task_definition.go
- model_v202101beta1_list_agents_response.go
- model_v202101beta1_list_tests_response.go
- model_v202101beta1_mesh_column.go
- model_v202101beta1_mesh_metric.go
- model_v202101beta1_mesh_metrics.go
- model_v202101beta1_mesh_response.go
- model_v202101beta1_patch_agent_request.go
- model_v202101beta1_patch_agent_response.go
- model_v202101beta1_patch_test_request.go
- model_v202101beta1_patch_test_response.go
- model_v202101beta1_ping_task_definition.go
- model_v202101beta1_region.go
- model_v202101beta1_set_test_status_request.go
- model_v202101beta1_shake_task_definition.go
- model_v202101beta1_site_test_.go
- model_v202101beta1_tag_test_.go
- model_v202101beta1_task.go
- model_v202101beta1_task_health.go
- model_v202101beta1_task_state.go
- model_v202101beta1_test_.go
- model_v202101beta1_test_health.go
- model_v202101beta1_test_monitoring_settings.go
- model_v202101beta1_test_ping_settings.go
- model_v202101beta1_test_settings.go
- model_v202101beta1_test_status.go
- model_v202101beta1_test_trace_settings.go
- model_v202101beta1_trace.go
- model_v202101beta1_trace_hop.go
- model_v202101beta1_trace_task_definition.go
- model_v202101beta1_traceroute_result.go
- model_v202101beta1_url_test_.go
- model_v202101beta1_user_info.go
- repo.go
- routers.go