cloudlatencytest

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2016 License: BSD-3-Clause, Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package cloudlatencytest provides access to the Google Cloud Network Performance Monitoring API.

Usage example:

import "google.golang.org/api/cloudlatencytest/v2"
...
cloudlatencytestService, err := cloudlatencytest.New(oauthHttpClient)

Index

Constants

View Source
const (
	// View monitoring data for all of your Google Cloud and API projects
	MonitoringReadonlyScope = "https://www.googleapis.com/auth/monitoring.readonly"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatedStats

type AggregatedStats struct {
	Stats []*Stats `json:"stats,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Stats") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*AggregatedStats) MarshalJSON

func (s *AggregatedStats) MarshalJSON() ([]byte, error)

type AggregatedStatsReply

type AggregatedStatsReply struct {
	TestValue string `json:"testValue,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "TestValue") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*AggregatedStatsReply) MarshalJSON

func (s *AggregatedStatsReply) MarshalJSON() ([]byte, error)

type DoubleValue

type DoubleValue struct {
	Label string `json:"label,omitempty"`

	Value float64 `json:"value,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Label") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*DoubleValue) MarshalJSON

func (s *DoubleValue) MarshalJSON() ([]byte, error)

type IntValue

type IntValue struct {
	Label string `json:"label,omitempty"`

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

	// ForceSendFields is a list of field names (e.g. "Label") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*IntValue) MarshalJSON

func (s *IntValue) MarshalJSON() ([]byte, error)

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Statscollection *StatscollectionService
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

type Stats

type Stats struct {
	DoubleValues []*DoubleValue `json:"doubleValues,omitempty"`

	IntValues []*IntValue `json:"intValues,omitempty"`

	StringValues []*StringValue `json:"stringValues,omitempty"`

	Time float64 `json:"time,omitempty"`

	// ForceSendFields is a list of field names (e.g. "DoubleValues") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*Stats) MarshalJSON

func (s *Stats) MarshalJSON() ([]byte, error)

type StatsReply

type StatsReply struct {
	TestValue string `json:"testValue,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "TestValue") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*StatsReply) MarshalJSON

func (s *StatsReply) MarshalJSON() ([]byte, error)

type StatscollectionService

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

func NewStatscollectionService

func NewStatscollectionService(s *Service) *StatscollectionService

func (*StatscollectionService) Updateaggregatedstats

func (r *StatscollectionService) Updateaggregatedstats(aggregatedstats *AggregatedStats) *StatscollectionUpdateaggregatedstatsCall

Updateaggregatedstats: RPC to update the new TCP stats.

func (*StatscollectionService) Updatestats

Updatestats: RPC to update the new TCP stats.

type StatscollectionUpdateaggregatedstatsCall

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

func (*StatscollectionUpdateaggregatedstatsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*StatscollectionUpdateaggregatedstatsCall) Do

Do executes the "cloudlatencytest.statscollection.updateaggregatedstats" call. Exactly one of *AggregatedStatsReply or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AggregatedStatsReply.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*StatscollectionUpdateaggregatedstatsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type StatscollectionUpdatestatsCall

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

func (*StatscollectionUpdatestatsCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*StatscollectionUpdatestatsCall) Do

Do executes the "cloudlatencytest.statscollection.updatestats" call. Exactly one of *StatsReply or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *StatsReply.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*StatscollectionUpdatestatsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type StringValue

type StringValue struct {
	Label string `json:"label,omitempty"`

	Value string `json:"value,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Label") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*StringValue) MarshalJSON

func (s *StringValue) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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