heartbeat

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2017 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddHeartbeatRequest

type AddHeartbeatRequest struct {
	ApiKey       string `json:"apiKey,omitempty"`
	Name         string `json:"name,omitempty"`
	Interval     int    `json:"interval,omitempty"`
	IntervalUnit string `json:"intervalUnit,omitempty"`
	Description  string `json:"description,omitempty"`
	Enabled      bool   `json:"enabled,omitempty"`
}

type AddHeartbeatResponse

type AddHeartbeatResponse struct {
	Id     string `json:"id"`
	Status string `json:"status"`
	Code   int    `json:"code"`
}

type DeleteHeartbeatRequest

type DeleteHeartbeatRequest struct {
	ApiKey string `url:"apiKey,omitempty"`
	Id     string `url:"id,omitempty"`
	Name   string `url:"name,omitempty"`
}

type DeleteHeartbeatResponse

type DeleteHeartbeatResponse struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
}

type DisableHeartbeatRequest

type DisableHeartbeatRequest struct {
	ApiKey string `url:"apiKey,omitempty"`
	Id     string `url:"id,omitempty"`
	Name   string `url:"name,omitempty"`
}

type DisableHeartbeatResponse

type DisableHeartbeatResponse struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
}

type EnableHeartbeatRequest

type EnableHeartbeatRequest struct {
	ApiKey string `url:"apiKey,omitempty"`
	Id     string `url:"id,omitempty"`
	Name   string `url:"name,omitempty"`
}

type EnableHeartbeatResponse

type EnableHeartbeatResponse struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
}

type GetHeartbeatRequest

type GetHeartbeatRequest struct {
	ApiKey string `url:"apiKey,omitempty"`
	Id     string `url:"id,omitempty"`
	Name   string `url:"name,omitempty"`
}

type GetHeartbeatResponse

type GetHeartbeatResponse struct {
	Id            string `json:"id"`
	Name          string `json:"name"`
	Status        string `json:"status"`
	Description   string `json:"description"`
	Enabled       bool   `json:"enabled"`
	LastHeartbeat uint64 `json:"lastHeartBeat"`
	Interval      int    `json:"interval"`
	IntervalUnit  string `json:"intervalUnit"`
	Expired       bool   `json:"expired"`
}

type ListHeartbeatsRequest

type ListHeartbeatsRequest struct {
	ApiKey string `url:"apiKey,omitempty"`
}

type ListHeartbeatsResponse

type ListHeartbeatsResponse struct {
	Heartbeats []struct {
		Id            string `json:"id"`
		Name          string `json:"name"`
		Status        string `json:"status"`
		Description   string `json:"description"`
		Enabled       bool   `json:"enabled"`
		LastHeartbeat uint64 `json:"lastHeartBeat"`
		Interval      int    `json:"interval"`
		IntervalUnit  string `json:"intervalUnit"`
		Expired       bool   `json:"expired"`
	} `json:"heartbeats"`
}

type SendHeartbeatRequest

type SendHeartbeatRequest struct {
	ApiKey string `json:"apiKey,omitempty"`
	Name   string `json:"name,omitempty"`
}

type SendHeartbeatResponse

type SendHeartbeatResponse struct {
	WillExpireAt uint64 `json:"willExpireAt"`
	Status       string `json:"status"`
	Heartbeat    uint64 `json:"heartbeat"`
	Took         int    `json:"took"`
	Code         int    `json:"code"`
}

type UpdateHeartbeatRequest

type UpdateHeartbeatRequest struct {
	ApiKey       string `json:"apiKey,omitempty"`
	Id           string `json:"id,omitempty"`
	Name         string `json:"name,omitempty"`
	Interval     int    `json:"interval,omitempty"`
	IntervalUnit string `json:"intervalUnit,omitempty"`
	Description  string `json:"description,omitempty"`
	Enabled      bool   `json:"enabled,omitempty"`
}

type UpdateHeartbeatResponse

type UpdateHeartbeatResponse struct {
	Id     string `json:"id"`
	Status string `json:"status"`
	Code   int    `json:"code"`
}

Jump to

Keyboard shortcuts

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