thousandeyes

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const API_URL = "https://api.thousandeyes.com/v6/"

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	AgentId int `json:"agentId"`
}

type BasicAuthCredentials

type BasicAuthCredentials struct {
	Username string
	Password string
}

type Client

type Client struct {
	StaticCredentials BasicAuthCredentials
}

func (*Client) CreateTest

func (c *Client) CreateTest(t Test) (*Test, error)

func (*Client) DeleteTest

func (c *Client) DeleteTest(t Test) error

func (*Client) ReadTest

func (c *Client) ReadTest(id int) (*Test, error)

func (*Client) UpdateTest

func (c *Client) UpdateTest(t Test) error

type Test

type Test struct {
	AlertsEnabled int    `json:",omitempty"`
	CreatedBy     string `json:",omitempty"`
	CreatedDate   string `json:",omitempty"`
	Description   string `json:"description,omitempty"`
	Enabled       int    `json:",omitempty"`
	LiveShare     int    `json:",omitempty"`
	ModifiedBy    string `json:",omitempty"`
	ModifiedDate  string `json:",omitempty"`
	SavedEvent    int    `json:",omitempty"`
	Id            int    `json:"testId,omitempty"`
	Name          string `json:"testName,omitempty"`
	Type          string `json:",omitempty"`

	Agents   []Agent `json:"agents"`
	Interval int     `json:"interval"`
	Url      string  `json:"url"`
}

Jump to

Keyboard shortcuts

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