Documentation ¶
Index ¶
- func Bool(v bool) *bool
- func Int(v int) *int
- func Int64(v int64) *int64
- func String(v string) *string
- type APILink
- type APILinks
- type AccountGroup
- type AccountGroupRole
- type AccountGroups
- type Agent
- type AgentAgent
- type AgentErrorDetails
- type AgentServer
- type Agents
- type Alert
- type AlertRule
- type AlertRules
- type Alerts
- type BGP
- type BGPMonitor
- type BGPMonitors
- type Client
- func (c *Client) AddAgentsToCluster(cluster int, ids []int) (*[]Agent, error)
- func (c Client) CreateAgentAgent(t AgentAgent) (*AgentAgent, error)
- func (c Client) CreateAgentServer(t AgentServer) (*AgentServer, error)
- func (c Client) CreateAlertRule(a AlertRule) (*AlertRule, error)
- func (c Client) CreateBGP(t BGP) (*BGP, error)
- func (c Client) CreateDNSSec(t DNSSec) (*DNSSec, error)
- func (c Client) CreateDNSServer(t DNSServer) (*DNSServer, error)
- func (c Client) CreateDNSTrace(t DNSTrace) (*DNSTrace, error)
- func (c Client) CreateFTPServer(t FTPServer) (*FTPServer, error)
- func (c Client) CreateGroupLabel(a GroupLabel) (*GroupLabel, error)
- func (c Client) CreateHTTPServer(t HTTPServer) (*HTTPServer, error)
- func (c Client) CreatePageLoad(t PageLoad) (*PageLoad, error)
- func (c Client) CreateRTPStream(t RTPStream) (*RTPStream, error)
- func (c *Client) CreateRole(user AccountGroupRole) (*AccountGroupRole, error)
- func (c Client) CreateSIPServer(t SIPServer) (*SIPServer, error)
- func (c *Client) CreateUser(user User) (*User, error)
- func (c Client) CreateWebTransaction(t WebTransaction) (*WebTransaction, error)
- func (c *Client) DeleteAgentAgent(id int64) error
- func (c *Client) DeleteAgentServer(id int64) error
- func (c Client) DeleteAlertRule(id int64) error
- func (c *Client) DeleteBGP(id int64) error
- func (c *Client) DeleteDNSSec(id int64) error
- func (c *Client) DeleteDNSServer(id int64) error
- func (c *Client) DeleteDNSTrace(id int64) error
- func (c *Client) DeleteFTPServer(id int64) error
- func (c Client) DeleteGroupLabel(id int64) error
- func (c *Client) DeleteHTTPServer(id int64) error
- func (c *Client) DeletePageLoad(id int64) error
- func (c *Client) DeleteRTPStream(id int64) error
- func (c *Client) DeleteRole(id int64) error
- func (c *Client) DeleteSIPServer(id int64) error
- func (c *Client) DeleteUser(id int64) error
- func (c *Client) DeleteWebTransaction(id int64) error
- func (c *Client) GetAccountGroups() (*[]SharedWithAccount, error)
- func (c *Client) GetAgent(id int64) (*Agent, error)
- func (c *Client) GetAgentAgent(id int64) (*AgentAgent, error)
- func (c *Client) GetAgentServer(id int64) (*AgentServer, error)
- func (c *Client) GetAgents() (*Agents, error)
- func (c *Client) GetAlertRule(id int64) (*AlertRule, error)
- func (c Client) GetAlertRules() (*AlertRules, error)
- func (c *Client) GetBGP(id int64) (*BGP, error)
- func (c *Client) GetBPGMonitors() (*BGPMonitors, error)
- func (c *Client) GetDNSSec(id int64) (*DNSSec, error)
- func (c *Client) GetDNSServer(id int64) (*DNSServer, error)
- func (c *Client) GetDNSTrace(id int64) (*DNSTrace, error)
- func (c *Client) GetFTPServer(id int64) (*FTPServer, error)
- func (c *Client) GetGroupLabel(id int64) (*GroupLabel, error)
- func (c *Client) GetGroupLabels() (*GroupLabels, error)
- func (c *Client) GetGroupLabelsByType(t string) (*GroupLabels, error)
- func (c *Client) GetHTTPServer(id int64) (*HTTPServer, error)
- func (c *Client) GetIntegrations() (*[]Integration, error)
- func (c *Client) GetPageLoad(id int64) (*PageLoad, error)
- func (c *Client) GetRTPStream(id int64) (*RTPStream, error)
- func (c *Client) GetRole(id int64) (*AccountGroupRole, error)
- func (c *Client) GetRoles() (*[]AccountGroupRole, error)
- func (c *Client) GetSIPServer(id int64) (*SIPServer, error)
- func (c *Client) GetTest(id int64) (*GenericTest, error)
- func (c *Client) GetTests() (*[]GenericTest, error)
- func (c *Client) GetUser(id int64) (*User, error)
- func (c *Client) GetUsers() (*[]User, error)
- func (c *Client) GetWebTransaction(id int64) (*WebTransaction, error)
- func (c *Client) RemoveAgentsFromCluster(cluster int, ids []int) (*[]Agent, error)
- func (c *Client) UpdateAgentAgent(id int64, t AgentAgent) (*AgentAgent, error)
- func (c *Client) UpdateAgentServer(id int64, t AgentServer) (*AgentServer, error)
- func (c Client) UpdateAlertRule(id int64, a AlertRule) (*AlertRule, error)
- func (c *Client) UpdateBGP(id int64, t BGP) (*BGP, error)
- func (c *Client) UpdateDNSSec(id int64, t DNSSec) (*DNSSec, error)
- func (c *Client) UpdateDNSServer(id int64, t DNSServer) (*DNSServer, error)
- func (c *Client) UpdateDNSTrace(id int64, t DNSTrace) (*DNSTrace, error)
- func (c *Client) UpdateFTPServer(id int64, t FTPServer) (*FTPServer, error)
- func (c Client) UpdateGroupLabel(id int64, a GroupLabel) (*GroupLabels, error)
- func (c *Client) UpdateHTTPServer(id int64, t HTTPServer) (*HTTPServer, error)
- func (c *Client) UpdatePageLoad(id int64, t PageLoad) (*PageLoad, error)
- func (c *Client) UpdateRTPStream(id int64, t RTPStream) (*RTPStream, error)
- func (c *Client) UpdateRole(id int64, role AccountGroupRole) (*AccountGroupRole, error)
- func (c *Client) UpdateSIPServer(id int64, t SIPServer) (*SIPServer, error)
- func (c *Client) UpdateUser(id int64, user User) (*User, error)
- func (c *Client) UpdateWebTransaction(id int64, t WebTransaction) (*WebTransaction, error)
- type ClientOptions
- type ClusterMember
- type CustomHeaders
- type DNSSec
- type DNSServer
- type DNSTrace
- type DefaultLimiter
- type FTPServer
- type GenericTest
- type GroupLabel
- type GroupLabels
- type HTTPClient
- type HTTPServer
- type HTTPServerResponse
- type Integration
- type Limiter
- type Monitor
- type Monitors
- type Notification
- type NotificationEmail
- type NotificationThirdParty
- type NotificationWebhook
- type PageLoad
- type Permission
- type RTPStream
- type RateLimit
- type SIPAuthData
- type SIPServer
- type Server
- type SharedWithAccount
- type User
- type WebTransaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bool ¶
Bool is a helper routine that allocates a new bool value to store v and returns a pointer to it.
func Int ¶
Int is a helper routine that allocates a new int value to store v and returns a pointer to it.
Types ¶
type AccountGroup ¶
type AccountGroup struct { AccountGroupName *string `json:"accountGroupName,omitempty"` AID *int64 `json:"aid,omitempty"` }
AccountGroup - An account within a ThousandEyes organization
type AccountGroupRole ¶
type AccountGroupRole struct { RoleName *string `json:"roleName,omitempty"` RoleID *int64 `json:"roleId,omitempty"` HasManagementPermissions *bool `json:"hasManagementPermissions,omitempty" te:"int-bool"` Builtin *bool `json:"builtin,omitempty" te:"int-bool"` Permissions *[]Permission `json:"permissions,omitempty"` }
AccountGroupRole - an account group role
func (AccountGroupRole) MarshalJSON ¶
func (t AccountGroupRole) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
func (*AccountGroupRole) UnmarshalJSON ¶
func (t *AccountGroupRole) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
type Agent ¶
type Agent struct { AgentID *int64 `json:"agentId,omitempty"` AgentName *string `json:"agentName,omitempty"` AgentType *string `json:"agentType,omitempty"` CountryID *string `json:"countryId,omitempty"` ClusterMembers *[]ClusterMember `json:"clusterMembers,omitempty"` IPAddresses *[]string `json:"ipAddresses,omitempty"` Groups *GroupLabels `json:"groups,omitempty"` Location *string `json:"location,omitempty"` ErrorDetails *[]AgentErrorDetails `json:"errorDetails,omitempty"` Hostname *string `json:"hostname,omitempty"` Prefix *string `json:"prefix,omitempty"` Enabled *bool `json:"enabled,omitempty" te:"int-bool"` Network *string `json:"network,omitempty"` CreatedDate *string `json:"createdDate,omitempty"` LastSeen *string `json:"lastSeen,omitempty"` AgentState *string `json:"agentState,omitempty"` VerifySslCertificates *bool `json:"verifySslCertificate,omitempty" te:"int-bool"` KeepBrowserCache *bool `json:"keepBrowserCache,omitempty" te:"int-bool"` Utilization *int `json:"utilization,omitempty"` Ipv6Policy *string `json:"IPV6Policy,omitempty"` TargetForTests *string `json:"targetForTests,omitempty"` }
Agent - Agent struct
func (Agent) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
func (*Agent) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
type AgentAgent ¶
type AgentAgent struct { // Common test fields AlertsEnabled *bool `json:"alertsEnabled,omitempty" te:"int-bool"` AlertRules *[]AlertRule `json:"alertRules,omitempty"` APILinks *[]APILink `json:"apiLinks,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` CreatedDate *string `json:"createdDate,omitempty"` Description *string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty" te:"int-bool"` Groups *[]GroupLabel `json:"groups,omitempty"` ModifiedBy *string `json:"modifiedBy,omitempty"` ModifiedDate *string `json:"modifiedDate,omitempty"` SavedEvent *bool `json:"savedEvent,omitempty" te:"int-bool"` TestID *int64 `json:"testId,omitempty"` TestName *string `json:"testName,omitempty"` Type *string `json:"type,omitempty"` // Fields unique to this test Agents *[]Agent `json:"agents,omitempty"` BGPMeasurements *bool `json:"bgpMeasurements,omitempty" te:"int-bool"` BGPMonitors *[]BGPMonitor `json:"bgpMonitors,omitempty"` Direction *string `json:"direction,omitempty"` DSCP *string `json:"dscp,omitempty"` DSCPID *int64 `json:"dscpId"` Interval *int `json:"interval,omitempty"` MSS *int `json:"mss,omitempty"` NetworkMeasurements *bool `json:"networkMeasurements,omitempty" te:"int-bool"` MTUMeasurements *bool `json:"mtuMeasurements,omitempty" te:"int-bool"` NumPathTraces *int `json:"numPathTraces,omitempty"` PathTraceMode *string `json:"pathTraceMode,omitempty"` Port *int `json:"port,omitempty"` Protocol *string `json:"protocol,omitempty"` TargetAgentID *int64 `json:"targetAgentId,omitempty"` ThroughputDuration *int `json:"throughputDuration,omitempty"` ThroughputMeasurements *bool `json:"throughputMeasurements,omitempty" te:"int-bool"` ThroughputRate *int `json:"throughputRate,omitempty"` UsePublicBGP *bool `json:"usePublicBgp,omitempty" te:"int-bool"` }
AgentAgent - test
func (*AgentAgent) AddAgent ¶
func (t *AgentAgent) AddAgent(id int64)
AddAgent - Adds an agent to agent test
func (*AgentAgent) AddAlertRule ¶
func (t *AgentAgent) AddAlertRule(id int64)
AddAlertRule - Adds an alert to agent test
func (AgentAgent) MarshalJSON ¶
func (t AgentAgent) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
func (*AgentAgent) UnmarshalJSON ¶
func (t *AgentAgent) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
type AgentErrorDetails ¶
type AgentErrorDetails struct { Code *string `json:"code,omitempty"` Description *string `json:"description,omitempty"` }
AgentErrorDetails - Agent error details
type AgentServer ¶
type AgentServer struct { // Common test fields AlertsEnabled *bool `json:"alertsEnabled,omitempty" te:"int-bool"` AlertRules *[]AlertRule `json:"alertRules,omitempty"` APILinks *[]APILink `json:"apiLinks,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` CreatedDate *string `json:"createdDate,omitempty"` Description *string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty" te:"int-bool"` Groups *[]GroupLabel `json:"groups,omitempty"` ModifiedBy *string `json:"modifiedBy,omitempty"` ModifiedDate *string `json:"modifiedDate,omitempty"` SavedEvent *bool `json:"savedEvent,omitempty" te:"int-bool"` TestID *int64 `json:"testId,omitempty"` TestName *string `json:"testName,omitempty"` Type *string `json:"type,omitempty"` // Fields unique to this test Agents *[]Agent `json:"agents,omitempty"` BandwidthMeasurements *bool `json:"bandwidthMeasurements,omitempty" te:"int-bool"` BGPMeasurements *bool `json:"bgpMeasurements,omitempty" te:"int-bool"` BGPMonitors *[]BGPMonitor `json:"bgpMonitors,omitempty"` Interval *int `json:"interval,omitempty"` MTUMeasurements *bool `json:"mtuMeasurements,omitempty" te:"int-bool"` NetworkMeasurements *bool `json:"networkMeasurements,omitempty" te:"int-bool"` NumPathTraces *int `json:"numPathTraces,omitempty"` PathTraceMode *string `json:"pathTraceMode,omitempty"` Port *int `json:"port,omitempty"` ProbeMode *string `json:"probeMode,omitempty"` Protocol *string `json:"protocol,omitempty"` Server *string `json:"server,omitempty"` UsePublicBGP *bool `json:"usePublicBgp,omitempty" te:"int-bool"` }
AgentServer - Agent to server test
func (*AgentServer) AddAgent ¶
func (t *AgentServer) AddAgent(id int64)
AddAgent - Add agent to server test
func (*AgentServer) AddAlertRule ¶
func (t *AgentServer) AddAlertRule(id int64)
AddAlertRule - Adds an alert to agent test
func (AgentServer) MarshalJSON ¶
func (t AgentServer) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
func (*AgentServer) UnmarshalJSON ¶
func (t *AgentServer) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
type Alert ¶
type Alert struct { AlertID *int64 `json:"alertId,omitempty"` TestID *int64 `json:"testId,omitempty"` TestName *string `json:"testName,omitempty"` Active *int `json:"active,omitempty"` RuleExpression *string `json:"ruleExpression,omitempty"` DateStart *string `json:"dateStart,omitempty"` DateEnd *string `json:"dateEnd,omitempty"` ViolationCount *int `json:"violationCount,omitempty"` RuleName *string `json:"ruleName,omitempty"` Permalink *string `json:"permalink,omitempty"` Type *string `json:"type,omitempty"` Agents *[]Agent `json:"agents,omitempty"` Monitors *[]Monitor `json:"monitors,omitempty"` APILinks *[]APILink `json:"apiLinks,omitempty"` }
Alert - An alert
type AlertRule ¶
type AlertRule struct { AlertRuleID *int64 `json:"alertRuleId,omitempty"` AlertType *string `json:"alertType,omitempty"` Default *bool `json:"default,omitempty" te:"int-bool"` Direction *string `json:"direction,omitempty"` Expression *string `json:"expression,omitempty"` IncludeCoveredPrefixes *int `json:"includeCoveredPrefixes,omitempty"` MinimumSources *int `json:"minimumSources,omitempty"` MinimumSourcesPct *int `json:"minimumSourcesPct,omitempty"` NotifyOnClear *bool `json:"notifyOnClear,omitempty" te:"int-bool"` RoundsViolatingMode *string `json:"roundsViolatingMode,omitempty"` RoundsViolatingOutOf *int `json:"roundsViolatingOutOf,omitempty"` RoundsViolatingRequired *int `json:"roundsViolatingRequired,omitempty"` RuleID *int64 `json:"ruleId,omitempty"` RuleName *string `json:"ruleName,omitempty"` Tests *[]GenericTest `json:"tests,omitempty"` TestIds *[]int64 `json:"testIds,omitempty"` Notifications *Notification `json:"notifications,omitempty"` Severity *string `json:"severity,omitempty"` }
AlertRule - An alert rule
func (AlertRule) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
func (*AlertRule) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
type BGP ¶
type BGP struct { // Common test fields AlertsEnabled *bool `json:"alertsEnabled,omitempty" te:"int-bool"` AlertRules *[]AlertRule `json:"alertRules,omitempty"` APILinks *[]APILink `json:"apiLinks,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` CreatedDate *string `json:"createdDate,omitempty"` Description *string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty" te:"int-bool"` Groups *[]GroupLabel `json:"groups,omitempty"` ModifiedBy *string `json:"modifiedBy,omitempty"` ModifiedDate *string `json:"modifiedDate,omitempty"` SavedEvent *bool `json:"savedEvent,omitempty" te:"int-bool"` TestID *int64 `json:"testId,omitempty"` TestName *string `json:"testName,omitempty"` Type *string `json:"type,omitempty"` // Fields unique to this test BGPMonitors *[]BGPMonitor `json:"bgpMonitors,omitempty"` IncludeCoveredPrefixes *bool `json:"includeCoveredPrefixes,omitempty" te:"int-bool"` Prefix *string `json:"prefix,omitempty"` UsePublicBGP *bool `json:"usePublicBgp,omitempty" te:"int-bool"` }
BGP - BGP trace test
func (*BGP) AddAlertRule ¶
AddAlertRule - Adds an alert to agent test
func (BGP) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
func (*BGP) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
type BGPMonitor ¶
type BGPMonitor struct { MonitorID *int64 `json:"monitorId,omitempty"` IPAddress *string `json:"ipAddress,omitempty"` Network *string `json:"network,omitempty"` MonitorType *string `json:"monitorType,omitempty"` MonitorName *string `json:"monitorName,omitempty"` }
BGPMonitor - BGPMonitor struct
type Client ¶
type Client struct { AuthToken string AccountGroupID string APIEndpoint string HTTPClient http.Client Limiter Limiter UserAgent string }
Client wraps http client
func (*Client) AddAgentsToCluster ¶
AddAgentsToCluster - add agent to cluster
func (Client) CreateAgentAgent ¶
func (c Client) CreateAgentAgent(t AgentAgent) (*AgentAgent, error)
CreateAgentAgent - Create an agent to agent test
func (Client) CreateAgentServer ¶
func (c Client) CreateAgentServer(t AgentServer) (*AgentServer, error)
CreateAgentServer - Create agent to server test
func (Client) CreateAlertRule ¶
CreateAlertRule - Create alert rule
func (Client) CreateDNSSec ¶
CreateDNSSec - Create DNSSec test
func (Client) CreateDNSServer ¶
CreateDNSServer - Create dns server test
func (Client) CreateDNSTrace ¶
CreateDNSTrace - Create dns trace test
func (Client) CreateFTPServer ¶
CreateFTPServer - Create ftp server test
func (Client) CreateGroupLabel ¶
func (c Client) CreateGroupLabel(a GroupLabel) (*GroupLabel, error)
CreateGroupLabel - Create label
func (Client) CreateHTTPServer ¶
func (c Client) CreateHTTPServer(t HTTPServer) (*HTTPServer, error)
CreateHTTPServer - create a http server
func (Client) CreatePageLoad ¶
CreatePageLoad - create pager load test
func (Client) CreateRTPStream ¶
CreateRTPStream - Create voice call test
func (*Client) CreateRole ¶
func (c *Client) CreateRole(user AccountGroupRole) (*AccountGroupRole, error)
CreateRole - create role
func (Client) CreateSIPServer ¶
CreateSIPServer - Create sip server test
func (*Client) CreateUser ¶
CreateUser - create user
func (Client) CreateWebTransaction ¶
func (c Client) CreateWebTransaction(t WebTransaction) (*WebTransaction, error)
CreateWebTransaction - Create a web transaction test
func (*Client) DeleteAgentAgent ¶
DeleteAgentAgent - delete agent to agent test
func (*Client) DeleteAgentServer ¶
DeleteAgentServer - Delete agent to server test
func (Client) DeleteAlertRule ¶
DeleteAlertRule - delete alert rule
func (*Client) DeleteDNSSec ¶
DeleteDNSSec - delete DNSSec test
func (*Client) DeleteDNSServer ¶
DeleteDNSServer - delete dns server test
func (*Client) DeleteDNSTrace ¶
DeleteDNSTrace - delete dns trace test
func (*Client) DeleteFTPServer ¶
DeleteFTPServer - delete ftp server test
func (Client) DeleteGroupLabel ¶
DeleteGroupLabel - delete label
func (*Client) DeleteHTTPServer ¶
DeleteHTTPServer - delete an http server
func (*Client) DeletePageLoad ¶
DeletePageLoad - Delete page load tes
func (*Client) DeleteRTPStream ¶
DeleteRTPStream - delete voice call test
func (*Client) DeleteSIPServer ¶
DeleteSIPServer - delete sip server test
func (*Client) DeleteWebTransaction ¶
DeleteWebTransaction - delete a web transactiont est
func (*Client) GetAccountGroups ¶
func (c *Client) GetAccountGroups() (*[]SharedWithAccount, error)
GetAccountGroups - Get third party and webhook integrations
func (*Client) GetAgentAgent ¶
func (c *Client) GetAgentAgent(id int64) (*AgentAgent, error)
GetAgentAgent - Get an agent to agent test
func (*Client) GetAgentServer ¶
func (c *Client) GetAgentServer(id int64) (*AgentServer, error)
GetAgentServer - Get agent to server test
func (*Client) GetAlertRule ¶
GetAlertRule - Get single alert rule by ID
func (Client) GetAlertRules ¶
func (c Client) GetAlertRules() (*AlertRules, error)
GetAlertRules - Get alert rules
func (*Client) GetBPGMonitors ¶
func (c *Client) GetBPGMonitors() (*BGPMonitors, error)
GetBPGMonitors - Get bgp monitors
func (*Client) GetDNSServer ¶
GetDNSServer - get dns server test
func (*Client) GetDNSTrace ¶
GetDNSTrace - get dns trace test
func (*Client) GetFTPServer ¶
GetFTPServer - get ftp server test
func (*Client) GetGroupLabel ¶
func (c *Client) GetGroupLabel(id int64) (*GroupLabel, error)
GetGroupLabel - Get single group label by ID
func (*Client) GetGroupLabels ¶
func (c *Client) GetGroupLabels() (*GroupLabels, error)
GetGroupLabels - Get labels
func (*Client) GetGroupLabelsByType ¶
func (c *Client) GetGroupLabelsByType(t string) (*GroupLabels, error)
GetGroupLabelsByType - Get label by type
func (*Client) GetHTTPServer ¶
func (c *Client) GetHTTPServer(id int64) (*HTTPServer, error)
GetHTTPServer - Get an HTTP Server test
func (*Client) GetIntegrations ¶
func (c *Client) GetIntegrations() (*[]Integration, error)
GetIntegrations - Get third party and webhook integrations
func (*Client) GetPageLoad ¶
GetPageLoad - get page load test
func (*Client) GetRTPStream ¶
GetRTPStream - get voice call test
func (*Client) GetRole ¶
func (c *Client) GetRole(id int64) (*AccountGroupRole, error)
GetRole - get role
func (*Client) GetRoles ¶
func (c *Client) GetRoles() (*[]AccountGroupRole, error)
GetRoles - get roles
func (*Client) GetSIPServer ¶
GetSIPServer - get sip server test
func (*Client) GetTest ¶
func (c *Client) GetTest(id int64) (*GenericTest, error)
GetTest - Get test
func (*Client) GetTests ¶
func (c *Client) GetTests() (*[]GenericTest, error)
GetTests - get all tests
func (*Client) GetWebTransaction ¶
func (c *Client) GetWebTransaction(id int64) (*WebTransaction, error)
GetWebTransaction - get a web transactiont test
func (*Client) RemoveAgentsFromCluster ¶
RemoveAgentsFromCluster - remove agent from cluster
func (*Client) UpdateAgentAgent ¶
func (c *Client) UpdateAgentAgent(id int64, t AgentAgent) (*AgentAgent, error)
UpdateAgentAgent - update agent to agent test
func (*Client) UpdateAgentServer ¶
func (c *Client) UpdateAgentServer(id int64, t AgentServer) (*AgentServer, error)
UpdateAgentServer - Update agent to server test
func (Client) UpdateAlertRule ¶
UpdateAlertRule - update alert rule
func (*Client) UpdateDNSSec ¶
UpdateDNSSec - update DNSSec test
func (*Client) UpdateDNSServer ¶
UpdateDNSServer - - Update dns server test
func (*Client) UpdateDNSTrace ¶
UpdateDNSTrace - update dns trace test
func (*Client) UpdateFTPServer ¶
UpdateFTPServer - - Update ftp server test
func (Client) UpdateGroupLabel ¶
func (c Client) UpdateGroupLabel(id int64, a GroupLabel) (*GroupLabels, error)
UpdateGroupLabel - update label
func (*Client) UpdateHTTPServer ¶
func (c *Client) UpdateHTTPServer(id int64, t HTTPServer) (*HTTPServer, error)
UpdateHTTPServer - Update an http server test
func (*Client) UpdatePageLoad ¶
UpdatePageLoad - Upload page load
func (*Client) UpdateRTPStream ¶
UpdateRTPStream - update voice call test
func (*Client) UpdateRole ¶
func (c *Client) UpdateRole(id int64, role AccountGroupRole) (*AccountGroupRole, error)
UpdateRole - update role
func (*Client) UpdateSIPServer ¶
UpdateSIPServer - - update sip server test
func (*Client) UpdateUser ¶
UpdateUser - update user
func (*Client) UpdateWebTransaction ¶
func (c *Client) UpdateWebTransaction(id int64, t WebTransaction) (*WebTransaction, error)
UpdateWebTransaction - update a web transaction test
type ClientOptions ¶
type ClientOptions struct { APIEndpoint string Limiter Limiter AccountID string AuthToken string Timeout time.Duration // http client user-agent UserAgent string }
ClientOptions - Thousandeyes client options for apiEndpoint, accountID, AuthToken, rate limiter, and HTTP client settings
type ClusterMember ¶
type ClusterMember struct { MemberID *int64 `json:"memberId,omitempty"` Name *string `json:"name,omitempty"` IPAddresses *[]string `json:"IPAddresses,omitempty"` PublicIPAddresses *[]string `json:"PublicIPAddresses,omitempty"` Prefix *string `json:"Prefix,omitempty"` Network *string `json:"network,omitempty"` LastSeen *string `json:"lastSeen,omitempty"` AgentState *string `json:"agentState,omitempty"` Utilization *int `json:"utilization,omitempty"` TargetForTests *string `json:"targetForTests,omitempty"` }
ClusterMember - ClusterMember struct
type CustomHeaders ¶
type CustomHeaders struct { Root *map[string]string `json:"root,omitempty"` All *map[string]string `json:"all,omitempty"` Domains *map[string]map[string]string `json:"domains,omitempty"` }
CustomHeaders represents the JSON object exchanged for specifying custom HTTP headers in HTTP Server, Page Load, and Web Transaction tests.
type DNSSec ¶
type DNSSec struct { // Common test fields AlertsEnabled *bool `json:"alertsEnabled,omitempty" te:"int-bool"` AlertRules *[]AlertRule `json:"alertRules,omitempty"` APILinks *[]APILink `json:"apiLinks,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` CreatedDate *string `json:"createdDate,omitempty"` Description *string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty" te:"int-bool"` Groups *[]GroupLabel `json:"groups,omitempty"` ModifiedBy *string `json:"modifiedBy,omitempty"` ModifiedDate *string `json:"modifiedDate,omitempty"` SavedEvent *bool `json:"savedEvent,omitempty" te:"int-bool"` TestID *int64 `json:"testId,omitempty"` TestName *string `json:"testName,omitempty"` Type *string `json:"type,omitempty"` // Fields unique to this test Agents *[]Agent `json:"agents,omitempty"` Domain *string `json:"domain,omitempty"` Interval *int `json:"interval,omitempty"` }
DNSSec - DNSSec test
func (*DNSSec) AddAlertRule ¶
AddAlertRule - Adds an alert to agent test
func (DNSSec) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
func (*DNSSec) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
type DNSServer ¶
type DNSServer struct { // Common test fields AlertsEnabled *bool `json:"alertsEnabled,omitempty" te:"int-bool"` AlertRules *[]AlertRule `json:"alertRules,omitempty"` APILinks *[]APILink `json:"apiLinks,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` CreatedDate *string `json:"createdDate,omitempty"` Description *string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty" te:"int-bool"` Groups *[]GroupLabel `json:"groups,omitempty"` ModifiedBy *string `json:"modifiedBy,omitempty"` ModifiedDate *string `json:"modifiedDate,omitempty"` SavedEvent *bool `json:"savedEvent,omitempty" te:"int-bool"` TestID *int64 `json:"testId,omitempty"` TestName *string `json:"testName,omitempty"` Type *string `json:"type,omitempty"` // Fields unique to this test Agents *[]Agent `json:"agents,omitempty"` BandwidthMeasurements *bool `json:"bandwidthMeasurements,omitempty" te:"int-bool"` BGPMeasurements *bool `json:"bgpMeasurements,omitempty" te:"int-bool"` BGPMonitors *[]BGPMonitor `json:"bgpMonitors,omitempty"` DNSServers *[]Server `json:"dnsServers,omitempty"` DNSTransportProtocol *string `json:"dnsTransportProtocol,omitempty"` Domain *string `json:"domain,omitempty"` Interval *int `json:"interval,omitempty"` MTUMeasurements *bool `json:"mtuMeasurements,omitempty" te:"int-bool"` NetworkMeasurements *bool `json:"networkMeasurements,omitempty" te:"int-bool"` NumPathTraces *int `json:"numPathTraces,omitempty"` PathTraceMode *string `json:"pathTraceMode,omitempty"` ProbeMode *string `json:"probeMode,omitempty"` Protocol *string `json:"protocol,omitempty"` RecursiveQueries *bool `json:"recursiveQueries,omitempty" te:"int-bool"` UsePublicBGP *bool `json:"usePublicBgp,omitempty" te:"int-bool"` }
DNSServer - dns server test
func (*DNSServer) AddAlertRule ¶
AddAlertRule - Adds an alert to agent test
func (DNSServer) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
func (*DNSServer) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
type DNSTrace ¶
type DNSTrace struct { // Common test fields AlertsEnabled *bool `json:"alertsEnabled,omitempty" te:"int-bool"` AlertRules *[]AlertRule `json:"alertRules,omitempty"` APILinks *[]APILink `json:"apiLinks,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` CreatedDate *string `json:"createdDate,omitempty"` Description *string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty" te:"int-bool"` Groups *[]GroupLabel `json:"groups,omitempty"` ModifiedBy *string `json:"modifiedBy,omitempty"` ModifiedDate *string `json:"modifiedDate,omitempty"` SavedEvent *bool `json:"savedEvent,omitempty" te:"int-bool"` TestID *int64 `json:"testId,omitempty"` TestName *string `json:"testName,omitempty"` Type *string `json:"type,omitempty"` // Fields unique to this test Agents *[]Agent `json:"agents,omitempty"` DNSTransportProtocol *string `json:"dnsTransportProtocol,omitempty"` Domain *string `json:"domain,omitempty"` Interval *int `json:"interval,omitempty"` }
DNSTrace - DNS trace test
func (*DNSTrace) AddAlertRule ¶
AddAlertRule - Adds an alert to agent test
func (DNSTrace) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
func (*DNSTrace) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
type DefaultLimiter ¶
type DefaultLimiter struct{}
DefaultLimiter - thousandeyes rate limit is 240 per minute
func (DefaultLimiter) Wait ¶
func (l DefaultLimiter) Wait()
Wait - Satisfying the Limiter interface and wait on 300ms to avoid TE 240 per minute default
type FTPServer ¶
type FTPServer struct { // Common test fields AlertsEnabled *bool `json:"alertsEnabled,omitempty" te:"int-bool"` AlertRules *[]AlertRule `json:"alertRules,omitempty"` APILinks *[]APILink `json:"apiLinks,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` CreatedDate *string `json:"createdDate,omitempty"` Description *string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty" te:"int-bool"` Groups *[]GroupLabel `json:"groups,omitempty"` ModifiedBy *string `json:"modifiedBy,omitempty"` ModifiedDate *string `json:"modifiedDate,omitempty"` SavedEvent *bool `json:"savedEvent,omitempty" te:"int-bool"` TestID *int64 `json:"testId,omitempty"` TestName *string `json:"testName,omitempty"` Type *string `json:"type,omitempty"` // Fields unique to this test Agents *[]Agent `json:"agents,omitempty"` BGPMeasurements *bool `json:"bgpMeasurements,omitempty" te:"int-bool"` DownloadLimit *int `json:"downloadLimit,omitempty"` FTPTargetTime *int `json:"ftpTargetTime,omitempty"` FTPTimeLimit *int `json:"ftpTimeLimit,omitempty"` Interval *int `json:"interval,omitempty"` MTUMeasurements *bool `json:"mtuMeasurements,omitempty" te:"int-bool"` NetworkMeasurements *bool `json:"networkMeasurements,omitempty" te:"int-bool"` NumPathTraces *int `json:"numPathTraces,omitempty"` Password *string `json:"password,omitempty"` PathTraceMode *string `json:"pathTraceMode,omitempty"` ProbeMode *string `json:"probeMode,omitempty"` Protocol *string `json:"protocol,omitempty"` RequestType *string `json:"requestType,omitempty"` URL *string `json:"url,omitempty"` UseActiveFTP *int `json:"useActiveFtp,omitempty"` UseExplicitFTPS *int `json:"useExplicitFtps,omitempty"` Username *string `json:"username,omitempty"` }
FTPServer - ftp server test
func (*FTPServer) AddAlertRule ¶
AddAlertRule - Adds an alert to agent test
func (FTPServer) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
func (*FTPServer) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
type GenericTest ¶
type GenericTest struct { // Common test fields AlertsEnabled *bool `json:"alertsEnabled,omitempty" te:"int-bool"` AlertRules *[]AlertRule `json:"alertRules,omitempty"` APILinks *[]APILink `json:"apiLinks,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` CreatedDate *string `json:"createdDate,omitempty"` Description *string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty" te:"int-bool"` Groups *[]GroupLabel `json:"groups,omitempty"` ModifiedBy *string `json:"modifiedBy,omitempty"` ModifiedDate *string `json:"modifiedDate,omitempty"` SavedEvent *bool `json:"savedEvent,omitempty" te:"int-bool"` TestID *int64 `json:"testId,omitempty"` TestName *string `json:"testName,omitempty"` Type *string `json:"type,omitempty"` // Fields unique to this test Agents *[]Agent `json:"agents,omitempty"` }
GenericTest - GenericTest struct to represent all test types
func (GenericTest) MarshalJSON ¶
func (t GenericTest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
func (*GenericTest) UnmarshalJSON ¶
func (t *GenericTest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
type GroupLabel ¶
type GroupLabel struct { Name *string `json:"name,omitempty"` GroupID *int64 `json:"groupId,omitempty"` Builtin *bool `json:"builtin,omitempty" te:"int-bool"` Type *string `json:"type,omitempty"` Agents *[]Agent `json:"agents,omitempty"` Tests *[]GenericTest `json:"tests,omitempty"` }
GroupLabel - label
func (GroupLabel) MarshalJSON ¶
func (t GroupLabel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
func (*GroupLabel) UnmarshalJSON ¶
func (t *GroupLabel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
type HTTPClient ¶
HTTPClient - an http client
type HTTPServer ¶
type HTTPServer struct { // Common test fields AlertsEnabled *bool `json:"alertsEnabled,omitempty" te:"int-bool"` AlertRules *[]AlertRule `json:"alertRules,omitempty"` APILinks *[]APILink `json:"apiLinks,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` CreatedDate *string `json:"createdDate,omitempty"` Description *string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty" te:"int-bool"` Groups *[]GroupLabel `json:"groups,omitempty"` ModifiedBy *string `json:"modifiedBy,omitempty"` ModifiedDate *string `json:"modifiedDate,omitempty"` SavedEvent *bool `json:"savedEvent,omitempty" te:"int-bool"` TestID *int64 `json:"testId,omitempty"` TestName *string `json:"testName,omitempty"` Type *string `json:"type,omitempty"` // Fields unique to this test Agents *[]Agent `json:"agents,omitempty"` AuthType *string `json:"authType,omitempty"` BandwidthMeasurements *bool `json:"bandwidthMeasurements,omitempty" te:"int-bool"` BGPMeasurements *bool `json:"bgpMeasurements,omitempty" te:"int-bool"` BGPMonitors *[]Monitor `json:"bgpMonitors,omitempty"` ClientCertificate *string `json:"clientCertificate,omitempty"` ContentRegex *string `json:"contentRegex,omitempty"` CustomHeaders *CustomHeaders `json:"customHeaders,omitempty"` DesiredStatusCode *string `json:"desiredStatusCode,omitempty"` DownloadLimit *int64 `json:"downloadLimit,omitempty"` DNSOverride *string `json:"dnsOverride,omitempty"` FollowRedirects *bool `json:"followRedirects,omitempty" te:"int-bool"` Headers *[]string `json:"headers,omitempty"` HTTPVersion *int `json:"httpVersion,omitempty"` HTTPTargetTime *int `json:"httpTargetTime,omitempty"` HTTPTimeLimit *int `json:"httpTimeLimit,omitempty"` Interval *int `json:"interval,omitempty"` MTUMeasurements *bool `json:"mtuMeasurements,omitempty" te:"int-bool"` NetworkMeasurements *bool `json:"networkMeasurements,omitempty" te:"int-bool"` NumPathTraces *int `json:"numPathTraces,omitempty"` Password *string `json:"password,omitempty"` PathTraceMode *string `json:"pathTraceMode,omitempty"` PostBody *string `json:"postBody,omitempty"` ProbeMode *string `json:"probeMode,omitempty"` Protocol *string `json:"protocol,omitempty"` SSLVersion *string `json:"sslVersion,omitempty"` SSLVersionID *int64 `json:"sslVersionId,omitempty"` URL *string `json:"url,omitempty"` UseNTLM *bool `json:"useNtlm,omitempty" te:"int-bool"` // TODO: BasicAuth not working UserAgent *string `json:"userAgent,omitempty"` Username *string `json:"username,omitempty"` VerifyCertificate *bool `json:"verifyCertificate,omitempty" te:"int-bool"` }
HTTPServer - a http server test
func (HTTPServer) MarshalJSON ¶
func (t HTTPServer) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
func (*HTTPServer) UnmarshalJSON ¶
func (t *HTTPServer) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
type HTTPServerResponse ¶
type HTTPServerResponse struct {
// contains filtered or unexported fields
}
HTTPServerResponse - a http server response
type Integration ¶
type Integration struct { AuthMethod *string `json:"authMethod,omitempty"` AuthUser *string `json:"authUser,omitempty"` AuthToken *string `json:"authToken,omitempty"` Channel *string `json:"channel,omitempty"` IntegrationID *string `json:"integrationId,omitempty"` IntegrationName *string `json:"integrationName,omitempty"` IntegrationType *string `json:"integrationType,omitempty"` Target *string `json:"target,omitempty"` }
Integration - Integration struct
type Monitor ¶
type Monitor struct { MonitorID *int64 `json:"monitorId,omitempty"` IPAddress *string `json:"ipAddress,omitempty"` CountryID *string `json:"countryId,omitempty"` MonitorName *string `json:"monitorName,omitempty"` Network *string `json:"network,omitempty"` MonitorType *string `json:"monitorType,omitempty"` }
Monitor - A monitor
type Notification ¶
type Notification struct { Email *NotificationEmail `json:"email,omitempty"` ThirdParty *[]NotificationThirdParty `json:"thirdParty,omitempty"` Webhook *[]NotificationWebhook `json:"webhook,omitempty"` }
Notification - Alert Rule Notification structure
type NotificationEmail ¶
type NotificationEmail struct { Message *string `json:"message,omitempty"` Recipient *[]string `json:"recipient,omitempty"` }
NotificationEmail - Alert Rule Notification Email structure
type NotificationThirdParty ¶ added in v2.2.0
type NotificationThirdParty struct { IntegrationID *string `json:"integrationId,omitempty"` IntegrationName *string `json:"integrationName,omitempty"` IntegrationType *string `json:"integrationType,omitempty"` Target *string `json:"target,omitempty"` AuthMethod *string `json:"authMethod,omitempty"` AuthUser *string `json:"authUser,omitempty"` AuthToken *string `json:"authToken,omitempty"` Channel *string `json:"channel,omitempty"` }
NotificationThirdParty - Alert Rule Notification ThirdParty structure
type NotificationWebhook ¶ added in v2.4.2
type NotificationWebhook struct { IntegrationID *string `json:"integrationId,omitempty"` IntegrationName *string `json:"integrationName,omitempty"` IntegrationType *string `json:"integrationType,omitempty"` Target *string `json:"target,omitempty"` }
NotificationWebhook - Alert Rule Notification Webhook structure
type PageLoad ¶
type PageLoad struct { // Common test fields AlertsEnabled *bool `json:"alertsEnabled,omitempty" te:"int-bool"` AlertRules *[]AlertRule `json:"alertRules,omitempty"` APILinks *[]APILink `json:"apiLinks,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` CreatedDate *string `json:"createdDate,omitempty"` Description *string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty" te:"int-bool"` Groups *[]GroupLabel `json:"groups,omitempty"` ModifiedBy *string `json:"modifiedBy,omitempty"` ModifiedDate *string `json:"modifiedDate,omitempty"` SavedEvent *bool `json:"savedEvent,omitempty" te:"int-bool"` TestID *int64 `json:"testId,omitempty"` TestName *string `json:"testName,omitempty"` Type *string `json:"type,omitempty"` // Fields unique to this test Agents *[]Agent `json:"agents,omitempty"` AuthType *string `json:"authType,omitempty"` BandwidthMeasurements *bool `json:"bandwidthMeasurements,omitempty" te:"int-bool"` BGPMeasurements *bool `json:"bgpMeasurements,omitempty" te:"int-bool"` BGPMonitors *[]BGPMonitor `json:"bgpMonitors,omitempty"` ContentRegex *string `json:"contentRegex,omitempty"` CustomHeaders *CustomHeaders `json:"customHeaders,omitempty"` FollowRedirects *bool `json:"followRedirects,omitempty" te:"int-bool"` HTTPInterval *int `json:"httpInterval,omitempty"` HTTPTargetTime *int `json:"httpTargetTime,omitempty"` HTTPTimeLimit *int `json:"httpTimeLimit,omitempty"` HTTPVersion *int `json:"httpVersion,omitempty"` IncludeHeaders *bool `json:"includeHeaders,omitempty" te:"int-bool"` Interval *int `json:"interval,omitempty"` MTUMeasurements *bool `json:"mtuMeasurements,omitempty" te:"int-bool"` NetworkMeasurements *bool `json:"networkMeasurements,omitempty" te:"int-bool"` NumPathTraces *int `json:"numPathTraces,omitempty"` PageLoadTargetTime *int `json:"pageLoadTargetTime,omitempty"` PageLoadTimeLimit *int `json:"pageLoadTimeLimit,omitempty"` Password *string `json:"password,omitempty"` PathTraceMode *string `json:"pathTraceMode,omitempty"` ProbeMode *string `json:"probeMode,omitempty"` Protocol *string `json:"protocol,omitempty"` SSLVersion *string `json:"sslVersion,omitempty"` SSLVersionID *int64 `json:"sslVersionId,omitempty"` Subinterval *int `json:"subinterval,omitempty"` URL *string `json:"url,omitempty"` UseNTLM *bool `json:"useNtlm,omitempty" te:"int-bool"` UsePublicBGP *bool `json:"usePublicBgp,omitempty" te:"int-bool"` UserAgent *string `json:"userAgent,omitempty"` Username *string `json:"username,omitempty"` VerifyCertificate *bool `json:"verifyCertificate,omitempty" te:"int-bool"` }
PageLoad - a page log struct
func (PageLoad) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
func (*PageLoad) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
type Permission ¶
type Permission struct { IsManagementPermission *bool `json:"isManagementPermission" te:"int-bool"` Label *string `json:"label"` PermissionID *int64 `json:"permissionId"` }
Permission - permission attached to roles
func (Permission) MarshalJSON ¶
func (t Permission) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
func (*Permission) UnmarshalJSON ¶
func (t *Permission) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
type RTPStream ¶
type RTPStream struct { // Common test fields AlertsEnabled *bool `json:"alertsEnabled,omitempty" te:"int-bool"` AlertRules *[]AlertRule `json:"alertRules,omitempty"` APILinks *[]APILink `json:"apiLinks,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` CreatedDate *string `json:"createdDate,omitempty"` Description *string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty" te:"int-bool"` Groups *[]GroupLabel `json:"groups,omitempty"` ModifiedBy *string `json:"modifiedBy,omitempty"` ModifiedDate *string `json:"modifiedDate,omitempty"` SavedEvent *bool `json:"savedEvent,omitempty" te:"int-bool"` TestID *int64 `json:"testId,omitempty"` TestName *string `json:"testName,omitempty"` Type *string `json:"type,omitempty"` // Fields unique to this test Agents *[]Agent `json:"agents,omitempty"` BGPMeasurements *bool `json:"bgpMeasurements,omitempty" te:"int-bool"` BGPMonitors *[]BGPMonitor `json:"bgpMonitors,omitempty"` Codec *string `json:"codec,omitempty"` CodecID *int64 `json:"codecId,omitempty"` DSCP *string `json:"dscp,omitempty"` DSCPID *int64 `json:"dscpId,omitempty"` Duration *int `json:"duration,omitempty"` Interval *int `json:"interval,omitempty"` JitterBuffer *int `json:"jitterBuffer,omitempty"` MTUMeasurements *bool `json:"mtuMeasurements,omitempty" te:"int-bool"` NumPathTraces *int `json:"numPathTraces,omitempty"` TargetAgentID *int64 `json:"targetAgentId,omitempty"` UsePublicBGP *bool `json:"usePublicBgp,omitempty" te:"int-bool"` }
RTPStream - RTPStream trace test
func (RTPStream) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
func (*RTPStream) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
type RateLimit ¶
type RateLimit struct { Limit int64 Remaining int64 Reset int64 LastRemaining int64 ConcurrentMessages []time.Time }
RateLimit contains data representing rate limit headers returned in ThousandEyes API responses. int64 everywhere for ease of interacting with time values.
type SIPAuthData ¶
type SIPAuthData struct { AuthUser *string `json:"authUser,omitempty"` Password *string `json:"password,omitempty"` Port *int `json:"port,omitempty"` Protocol *string `json:"protocol,omitempty"` SIPProxy *string `json:"sipProxy,omitempty"` SIPRegistrar *string `json:"sipRegistrar,omitempty"` User *string `json:"user,omitempty"` }
SIPAuthData - Authentication fields for SIP tests
type SIPServer ¶
type SIPServer struct { // Common test fields AlertsEnabled *bool `json:"alertsEnabled,omitempty" te:"int-bool"` AlertRules *[]AlertRule `json:"alertRules,omitempty"` APILinks *[]APILink `json:"apiLinks,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` CreatedDate *string `json:"createdDate,omitempty"` Description *string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty" te:"int-bool"` Groups *[]GroupLabel `json:"groups,omitempty"` ModifiedBy *string `json:"modifiedBy,omitempty"` ModifiedDate *string `json:"modifiedDate,omitempty"` SavedEvent *bool `json:"savedEvent,omitempty" te:"int-bool"` TestID *int64 `json:"testId,omitempty"` TestName *string `json:"testName,omitempty"` Type *string `json:"type,omitempty"` // Fields unique to this test Agents *[]Agent `json:"agents,omitempty"` BandwidthMeasurements *bool `json:"bandwidthMeasurements,omitempty" te:"int-bool"` BGPMeasurements *bool `json:"bgpMeasurements,omitempty" te:"int-bool"` Interval *int `json:"interval,omitempty"` MTUMeasurements *bool `json:"mtuMeasurements,omitempty" te:"int-bool"` NetworkMeasurements *bool `json:"networkMeasurements,omitempty" te:"int-bool"` NumPathTraces *int `json:"numPathTraces,omitempty"` OptionsRegex *string `json:"options_regex,omitempty"` PathTraceMode *string `json:"pathTraceMode,omitempty"` ProbeMode *string `json:"probeMode,omitempty"` RegisterEnabled *bool `json:"registerEnabled,omitempty" te:"int-bool"` SIPTargetTime *int `json:"sipTargetTime,omitempty"` SIPTimeLimit *int `json:"sipTimeLimit,omitempty"` TargetSIPCredentials *SIPAuthData `json:"targetSipCredentials,omitempty"` UsePublicBGP *bool `json:"usePublicBgp,omitempty" te:"int-bool"` }
SIPServer - SIPServer trace test
func (*SIPServer) AddAlertRule ¶
AddAlertRule - Adds an alert to agent test
func (SIPServer) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
func (*SIPServer) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
type Server ¶
type Server struct { ServerID *int64 `json:"serverId,omitempty"` ServerName *string `json:"serverName,omitempty"` }
Server - a server ?
type SharedWithAccount ¶
type SharedWithAccount struct {}
SharedWithAccount describes accounts with which a resource is shared. This is separate from the AccountGroup above only due to the difference in JSON object names.
type User ¶
type User struct { Name *string `json:"name,omitempty"` Email *string `json:"email,omitempty"` UID *int64 `json:"uid,omitempty"` LastLogin *time.Time `json:"lastLogin,omitempty"` DateRegistered *time.Time `json:"dateRegistered,omitempty"` LoginAccountGroup *AccountGroup `json:"loginAccountGroup,omitempty"` AccountGroupRoles *[]AccountGroupRole `json:"accountGroupRoles,omitempty"` AllAccountGroupRoles *[]AccountGroupRole `json:"allAccountGroupRoles,omitempty"` }
User - a user
type WebTransaction ¶
type WebTransaction struct { // Common test fields AlertsEnabled *bool `json:"alertsEnabled,omitempty" te:"int-bool"` AlertRules *[]AlertRule `json:"alertRules,omitempty"` APILinks *[]APILink `json:"apiLinks,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` CreatedDate *string `json:"createdDate,omitempty"` Description *string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty" te:"int-bool"` Groups *[]GroupLabel `json:"groups,omitempty"` ModifiedBy *string `json:"modifiedBy,omitempty"` ModifiedDate *string `json:"modifiedDate,omitempty"` SavedEvent *bool `json:"savedEvent,omitempty" te:"int-bool"` TestID *int64 `json:"testId,omitempty"` TestName *string `json:"testName,omitempty"` Type *string `json:"type,omitempty"` // Fields unique to this test Agents *[]Agent `json:"agents,omitempty"` AuthType *string `json:"authType,omitempty"` BandwidthMeasurements *bool `json:"bandwidthMeasurements,omitempty" te:"int-bool"` ContentRegex *string `json:"contentRegex,omitempty"` Credentials *[]int `json:"credentials,omitempty"` CustomHeaders *CustomHeaders `json:"customHeaders,omitempty"` DesiredStatusCode *string `json:"desiredStatusCode,omitempty"` HTTPTargetTime *int `json:"httpTargetTime,omitempty"` HTTPTimeLimit *int `json:"httpTimeLimit,omitempty"` HTTPVersion *int `json:"httpVersion,omitempty"` IncludeHeaders *bool `json:"includeHeaders,omitempty" te:"int-bool"` Interval *int `json:"interval,omitempty"` MTUMeasurements *bool `json:"mtuMeasurements,omitempty" te:"int-bool"` NetworkMeasurements *bool `json:"networkMeasurements,omitempty" te:"int-bool"` NumPathTraces *int `json:"numPathTraces,omitempty"` Password *string `json:"password,omitempty"` PathTraceMode *string `json:"pathTraceMode,omitempty"` ProbeMode *string `json:"probeMode,omitempty"` Protocol *string `json:"protocol,omitempty"` SSLVersionID *int64 `json:"sslVersionId,omitempty"` SubInterval *int `json:"subinterval,omitempty"` TargetTime *int `json:"targetTime,omitempty"` TimeLimit *int `json:"timeLimit,omitempty"` TransactionScript *string `json:"transactionScript,omitempty"` URL *string `json:"url,omitempty"` UseNTLM *bool `json:"useNtlm,omitempty" te:"int-bool"` UserAgent *string `json:"userAgent,omitempty"` Username *string `json:"username,omitempty"` VerifyCertificate *bool `json:"verifyCertificate,omitempty" te:"int-bool"` }
WebTransaction - a web transcation test
func (WebTransaction) MarshalJSON ¶
func (t WebTransaction) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
func (*WebTransaction) UnmarshalJSON ¶
func (t *WebTransaction) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface. It ensures that ThousandEyes int fields that only use the values 0 or 1 are treated as booleans.
Source Files ¶
- account_groups.go
- agent.go
- agent_agent.go
- agent_server.go
- alerts.go
- bgp.go
- bgp_monitor.go
- client.go
- dns_dnssec.go
- dns_server.go
- dns_trace.go
- ftp_server.go
- group_label.go
- http_server.go
- integration.go
- monitors.go
- page_load.go
- role.go
- sip_server.go
- tests.go
- users.go
- utils.go
- voice.go
- web_transaction.go