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
- type AggregatedStats
- type AggregatedStatsReply
- type DoubleValue
- type IntValue
- type Service
- type Stats
- type StatsReply
- type StatscollectionService
- type StatscollectionUpdateaggregatedstatsCall
- func (c *StatscollectionUpdateaggregatedstatsCall) Context(ctx context.Context) *StatscollectionUpdateaggregatedstatsCall
- func (c *StatscollectionUpdateaggregatedstatsCall) Do(opts ...googleapi.CallOption) (*AggregatedStatsReply, error)
- func (c *StatscollectionUpdateaggregatedstatsCall) Fields(s ...googleapi.Field) *StatscollectionUpdateaggregatedstatsCall
- type StatscollectionUpdatestatsCall
- type StringValue
Constants ¶
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 ¶
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 }
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 ¶
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 ¶
func (r *StatscollectionService) Updatestats(stats *Stats) *StatscollectionUpdatestatsCall
Updatestats: RPC to update the new TCP stats.
type StatscollectionUpdateaggregatedstatsCall ¶
type StatscollectionUpdateaggregatedstatsCall struct {
// contains filtered or unexported fields
}
func (*StatscollectionUpdateaggregatedstatsCall) Context ¶
func (c *StatscollectionUpdateaggregatedstatsCall) Context(ctx context.Context) *StatscollectionUpdateaggregatedstatsCall
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 ¶
func (c *StatscollectionUpdateaggregatedstatsCall) Do(opts ...googleapi.CallOption) (*AggregatedStatsReply, error)
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 ¶
func (c *StatscollectionUpdateaggregatedstatsCall) Fields(s ...googleapi.Field) *StatscollectionUpdateaggregatedstatsCall
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 ¶
func (c *StatscollectionUpdatestatsCall) Context(ctx context.Context) *StatscollectionUpdatestatsCall
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 ¶
func (c *StatscollectionUpdatestatsCall) Do(opts ...googleapi.CallOption) (*StatsReply, error)
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 ¶
func (c *StatscollectionUpdatestatsCall) Fields(s ...googleapi.Field) *StatscollectionUpdatestatsCall
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)