Documentation ¶
Overview ¶
Package monitoring provides access to the Stackdriver Monitoring API.
See https://cloud.google.com/monitoring/api/
Usage example:
import "google.golang.org/api/monitoring/v3" ... monitoringService, err := monitoring.New(oauthHttpClient)
Index ¶
- Constants
- type BasicAuthentication
- type BucketOptions
- type CollectdPayload
- type CollectdPayloadError
- type CollectdValue
- type CollectdValueError
- type ContentMatcher
- type CreateCollectdTimeSeriesRequest
- type CreateCollectdTimeSeriesResponse
- type CreateTimeSeriesRequest
- type Distribution
- type Empty
- type Explicit
- type Exponential
- type Field
- type Group
- type HttpCheck
- type LabelDescriptor
- type Linear
- type ListGroupMembersResponse
- type ListGroupsResponse
- type ListMetricDescriptorsResponse
- type ListMonitoredResourceDescriptorsResponse
- type ListTimeSeriesResponse
- type ListUptimeCheckConfigsResponse
- type ListUptimeCheckIpsResponse
- type Metric
- type MetricDescriptor
- type MonitoredResource
- type MonitoredResourceDescriptor
- type Option
- type Point
- type ProjectsCollectdTimeSeriesCreateCall
- func (c *ProjectsCollectdTimeSeriesCreateCall) Context(ctx context.Context) *ProjectsCollectdTimeSeriesCreateCall
- func (c *ProjectsCollectdTimeSeriesCreateCall) Do(opts ...googleapi.CallOption) (*CreateCollectdTimeSeriesResponse, error)
- func (c *ProjectsCollectdTimeSeriesCreateCall) Fields(s ...googleapi.Field) *ProjectsCollectdTimeSeriesCreateCall
- func (c *ProjectsCollectdTimeSeriesCreateCall) Header() http.Header
- type ProjectsCollectdTimeSeriesService
- type ProjectsGroupsCreateCall
- func (c *ProjectsGroupsCreateCall) Context(ctx context.Context) *ProjectsGroupsCreateCall
- func (c *ProjectsGroupsCreateCall) Do(opts ...googleapi.CallOption) (*Group, error)
- func (c *ProjectsGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsGroupsCreateCall
- func (c *ProjectsGroupsCreateCall) Header() http.Header
- func (c *ProjectsGroupsCreateCall) ValidateOnly(validateOnly bool) *ProjectsGroupsCreateCall
- type ProjectsGroupsDeleteCall
- func (c *ProjectsGroupsDeleteCall) Context(ctx context.Context) *ProjectsGroupsDeleteCall
- func (c *ProjectsGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsGroupsDeleteCall
- func (c *ProjectsGroupsDeleteCall) Header() http.Header
- type ProjectsGroupsGetCall
- func (c *ProjectsGroupsGetCall) Context(ctx context.Context) *ProjectsGroupsGetCall
- func (c *ProjectsGroupsGetCall) Do(opts ...googleapi.CallOption) (*Group, error)
- func (c *ProjectsGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsGroupsGetCall
- func (c *ProjectsGroupsGetCall) Header() http.Header
- func (c *ProjectsGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsGroupsGetCall
- type ProjectsGroupsListCall
- func (c *ProjectsGroupsListCall) AncestorsOfGroup(ancestorsOfGroup string) *ProjectsGroupsListCall
- func (c *ProjectsGroupsListCall) ChildrenOfGroup(childrenOfGroup string) *ProjectsGroupsListCall
- func (c *ProjectsGroupsListCall) Context(ctx context.Context) *ProjectsGroupsListCall
- func (c *ProjectsGroupsListCall) DescendantsOfGroup(descendantsOfGroup string) *ProjectsGroupsListCall
- func (c *ProjectsGroupsListCall) Do(opts ...googleapi.CallOption) (*ListGroupsResponse, error)
- func (c *ProjectsGroupsListCall) Fields(s ...googleapi.Field) *ProjectsGroupsListCall
- func (c *ProjectsGroupsListCall) Header() http.Header
- func (c *ProjectsGroupsListCall) IfNoneMatch(entityTag string) *ProjectsGroupsListCall
- func (c *ProjectsGroupsListCall) PageSize(pageSize int64) *ProjectsGroupsListCall
- func (c *ProjectsGroupsListCall) PageToken(pageToken string) *ProjectsGroupsListCall
- func (c *ProjectsGroupsListCall) Pages(ctx context.Context, f func(*ListGroupsResponse) error) error
- type ProjectsGroupsMembersListCall
- func (c *ProjectsGroupsMembersListCall) Context(ctx context.Context) *ProjectsGroupsMembersListCall
- func (c *ProjectsGroupsMembersListCall) Do(opts ...googleapi.CallOption) (*ListGroupMembersResponse, error)
- func (c *ProjectsGroupsMembersListCall) Fields(s ...googleapi.Field) *ProjectsGroupsMembersListCall
- func (c *ProjectsGroupsMembersListCall) Filter(filter string) *ProjectsGroupsMembersListCall
- func (c *ProjectsGroupsMembersListCall) Header() http.Header
- func (c *ProjectsGroupsMembersListCall) IfNoneMatch(entityTag string) *ProjectsGroupsMembersListCall
- func (c *ProjectsGroupsMembersListCall) IntervalEndTime(intervalEndTime string) *ProjectsGroupsMembersListCall
- func (c *ProjectsGroupsMembersListCall) IntervalStartTime(intervalStartTime string) *ProjectsGroupsMembersListCall
- func (c *ProjectsGroupsMembersListCall) PageSize(pageSize int64) *ProjectsGroupsMembersListCall
- func (c *ProjectsGroupsMembersListCall) PageToken(pageToken string) *ProjectsGroupsMembersListCall
- func (c *ProjectsGroupsMembersListCall) Pages(ctx context.Context, f func(*ListGroupMembersResponse) error) error
- type ProjectsGroupsMembersService
- type ProjectsGroupsService
- func (r *ProjectsGroupsService) Create(name string, group *Group) *ProjectsGroupsCreateCall
- func (r *ProjectsGroupsService) Delete(name string) *ProjectsGroupsDeleteCall
- func (r *ProjectsGroupsService) Get(name string) *ProjectsGroupsGetCall
- func (r *ProjectsGroupsService) List(name string) *ProjectsGroupsListCall
- func (r *ProjectsGroupsService) Update(name string, group *Group) *ProjectsGroupsUpdateCall
- type ProjectsGroupsUpdateCall
- func (c *ProjectsGroupsUpdateCall) Context(ctx context.Context) *ProjectsGroupsUpdateCall
- func (c *ProjectsGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Group, error)
- func (c *ProjectsGroupsUpdateCall) Fields(s ...googleapi.Field) *ProjectsGroupsUpdateCall
- func (c *ProjectsGroupsUpdateCall) Header() http.Header
- func (c *ProjectsGroupsUpdateCall) ValidateOnly(validateOnly bool) *ProjectsGroupsUpdateCall
- type ProjectsMetricDescriptorsCreateCall
- func (c *ProjectsMetricDescriptorsCreateCall) Context(ctx context.Context) *ProjectsMetricDescriptorsCreateCall
- func (c *ProjectsMetricDescriptorsCreateCall) Do(opts ...googleapi.CallOption) (*MetricDescriptor, error)
- func (c *ProjectsMetricDescriptorsCreateCall) Fields(s ...googleapi.Field) *ProjectsMetricDescriptorsCreateCall
- func (c *ProjectsMetricDescriptorsCreateCall) Header() http.Header
- type ProjectsMetricDescriptorsDeleteCall
- func (c *ProjectsMetricDescriptorsDeleteCall) Context(ctx context.Context) *ProjectsMetricDescriptorsDeleteCall
- func (c *ProjectsMetricDescriptorsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsMetricDescriptorsDeleteCall) Fields(s ...googleapi.Field) *ProjectsMetricDescriptorsDeleteCall
- func (c *ProjectsMetricDescriptorsDeleteCall) Header() http.Header
- type ProjectsMetricDescriptorsGetCall
- func (c *ProjectsMetricDescriptorsGetCall) Context(ctx context.Context) *ProjectsMetricDescriptorsGetCall
- func (c *ProjectsMetricDescriptorsGetCall) Do(opts ...googleapi.CallOption) (*MetricDescriptor, error)
- func (c *ProjectsMetricDescriptorsGetCall) Fields(s ...googleapi.Field) *ProjectsMetricDescriptorsGetCall
- func (c *ProjectsMetricDescriptorsGetCall) Header() http.Header
- func (c *ProjectsMetricDescriptorsGetCall) IfNoneMatch(entityTag string) *ProjectsMetricDescriptorsGetCall
- type ProjectsMetricDescriptorsListCall
- func (c *ProjectsMetricDescriptorsListCall) Context(ctx context.Context) *ProjectsMetricDescriptorsListCall
- func (c *ProjectsMetricDescriptorsListCall) Do(opts ...googleapi.CallOption) (*ListMetricDescriptorsResponse, error)
- func (c *ProjectsMetricDescriptorsListCall) Fields(s ...googleapi.Field) *ProjectsMetricDescriptorsListCall
- func (c *ProjectsMetricDescriptorsListCall) Filter(filter string) *ProjectsMetricDescriptorsListCall
- func (c *ProjectsMetricDescriptorsListCall) Header() http.Header
- func (c *ProjectsMetricDescriptorsListCall) IfNoneMatch(entityTag string) *ProjectsMetricDescriptorsListCall
- func (c *ProjectsMetricDescriptorsListCall) PageSize(pageSize int64) *ProjectsMetricDescriptorsListCall
- func (c *ProjectsMetricDescriptorsListCall) PageToken(pageToken string) *ProjectsMetricDescriptorsListCall
- func (c *ProjectsMetricDescriptorsListCall) Pages(ctx context.Context, f func(*ListMetricDescriptorsResponse) error) error
- type ProjectsMetricDescriptorsService
- func (r *ProjectsMetricDescriptorsService) Create(name string, metricdescriptor *MetricDescriptor) *ProjectsMetricDescriptorsCreateCall
- func (r *ProjectsMetricDescriptorsService) Delete(name string) *ProjectsMetricDescriptorsDeleteCall
- func (r *ProjectsMetricDescriptorsService) Get(name string) *ProjectsMetricDescriptorsGetCall
- func (r *ProjectsMetricDescriptorsService) List(name string) *ProjectsMetricDescriptorsListCall
- type ProjectsMonitoredResourceDescriptorsGetCall
- func (c *ProjectsMonitoredResourceDescriptorsGetCall) Context(ctx context.Context) *ProjectsMonitoredResourceDescriptorsGetCall
- func (c *ProjectsMonitoredResourceDescriptorsGetCall) Do(opts ...googleapi.CallOption) (*MonitoredResourceDescriptor, error)
- func (c *ProjectsMonitoredResourceDescriptorsGetCall) Fields(s ...googleapi.Field) *ProjectsMonitoredResourceDescriptorsGetCall
- func (c *ProjectsMonitoredResourceDescriptorsGetCall) Header() http.Header
- func (c *ProjectsMonitoredResourceDescriptorsGetCall) IfNoneMatch(entityTag string) *ProjectsMonitoredResourceDescriptorsGetCall
- type ProjectsMonitoredResourceDescriptorsListCall
- func (c *ProjectsMonitoredResourceDescriptorsListCall) Context(ctx context.Context) *ProjectsMonitoredResourceDescriptorsListCall
- func (c *ProjectsMonitoredResourceDescriptorsListCall) Do(opts ...googleapi.CallOption) (*ListMonitoredResourceDescriptorsResponse, error)
- func (c *ProjectsMonitoredResourceDescriptorsListCall) Fields(s ...googleapi.Field) *ProjectsMonitoredResourceDescriptorsListCall
- func (c *ProjectsMonitoredResourceDescriptorsListCall) Filter(filter string) *ProjectsMonitoredResourceDescriptorsListCall
- func (c *ProjectsMonitoredResourceDescriptorsListCall) Header() http.Header
- func (c *ProjectsMonitoredResourceDescriptorsListCall) IfNoneMatch(entityTag string) *ProjectsMonitoredResourceDescriptorsListCall
- func (c *ProjectsMonitoredResourceDescriptorsListCall) PageSize(pageSize int64) *ProjectsMonitoredResourceDescriptorsListCall
- func (c *ProjectsMonitoredResourceDescriptorsListCall) PageToken(pageToken string) *ProjectsMonitoredResourceDescriptorsListCall
- func (c *ProjectsMonitoredResourceDescriptorsListCall) Pages(ctx context.Context, f func(*ListMonitoredResourceDescriptorsResponse) error) error
- type ProjectsMonitoredResourceDescriptorsService
- type ProjectsService
- type ProjectsTimeSeriesCreateCall
- func (c *ProjectsTimeSeriesCreateCall) Context(ctx context.Context) *ProjectsTimeSeriesCreateCall
- func (c *ProjectsTimeSeriesCreateCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsTimeSeriesCreateCall) Fields(s ...googleapi.Field) *ProjectsTimeSeriesCreateCall
- func (c *ProjectsTimeSeriesCreateCall) Header() http.Header
- type ProjectsTimeSeriesListCall
- func (c *ProjectsTimeSeriesListCall) AggregationAlignmentPeriod(aggregationAlignmentPeriod string) *ProjectsTimeSeriesListCall
- func (c *ProjectsTimeSeriesListCall) AggregationCrossSeriesReducer(aggregationCrossSeriesReducer string) *ProjectsTimeSeriesListCall
- func (c *ProjectsTimeSeriesListCall) AggregationGroupByFields(aggregationGroupByFields ...string) *ProjectsTimeSeriesListCall
- func (c *ProjectsTimeSeriesListCall) AggregationPerSeriesAligner(aggregationPerSeriesAligner string) *ProjectsTimeSeriesListCall
- func (c *ProjectsTimeSeriesListCall) Context(ctx context.Context) *ProjectsTimeSeriesListCall
- func (c *ProjectsTimeSeriesListCall) Do(opts ...googleapi.CallOption) (*ListTimeSeriesResponse, error)
- func (c *ProjectsTimeSeriesListCall) Fields(s ...googleapi.Field) *ProjectsTimeSeriesListCall
- func (c *ProjectsTimeSeriesListCall) Filter(filter string) *ProjectsTimeSeriesListCall
- func (c *ProjectsTimeSeriesListCall) Header() http.Header
- func (c *ProjectsTimeSeriesListCall) IfNoneMatch(entityTag string) *ProjectsTimeSeriesListCall
- func (c *ProjectsTimeSeriesListCall) IntervalEndTime(intervalEndTime string) *ProjectsTimeSeriesListCall
- func (c *ProjectsTimeSeriesListCall) IntervalStartTime(intervalStartTime string) *ProjectsTimeSeriesListCall
- func (c *ProjectsTimeSeriesListCall) OrderBy(orderBy string) *ProjectsTimeSeriesListCall
- func (c *ProjectsTimeSeriesListCall) PageSize(pageSize int64) *ProjectsTimeSeriesListCall
- func (c *ProjectsTimeSeriesListCall) PageToken(pageToken string) *ProjectsTimeSeriesListCall
- func (c *ProjectsTimeSeriesListCall) Pages(ctx context.Context, f func(*ListTimeSeriesResponse) error) error
- func (c *ProjectsTimeSeriesListCall) View(view string) *ProjectsTimeSeriesListCall
- type ProjectsTimeSeriesService
- type ProjectsUptimeCheckConfigsCreateCall
- func (c *ProjectsUptimeCheckConfigsCreateCall) Context(ctx context.Context) *ProjectsUptimeCheckConfigsCreateCall
- func (c *ProjectsUptimeCheckConfigsCreateCall) Do(opts ...googleapi.CallOption) (*UptimeCheckConfig, error)
- func (c *ProjectsUptimeCheckConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsUptimeCheckConfigsCreateCall
- func (c *ProjectsUptimeCheckConfigsCreateCall) Header() http.Header
- type ProjectsUptimeCheckConfigsDeleteCall
- func (c *ProjectsUptimeCheckConfigsDeleteCall) Context(ctx context.Context) *ProjectsUptimeCheckConfigsDeleteCall
- func (c *ProjectsUptimeCheckConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsUptimeCheckConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsUptimeCheckConfigsDeleteCall
- func (c *ProjectsUptimeCheckConfigsDeleteCall) Header() http.Header
- type ProjectsUptimeCheckConfigsGetCall
- func (c *ProjectsUptimeCheckConfigsGetCall) Context(ctx context.Context) *ProjectsUptimeCheckConfigsGetCall
- func (c *ProjectsUptimeCheckConfigsGetCall) Do(opts ...googleapi.CallOption) (*UptimeCheckConfig, error)
- func (c *ProjectsUptimeCheckConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsUptimeCheckConfigsGetCall
- func (c *ProjectsUptimeCheckConfigsGetCall) Header() http.Header
- func (c *ProjectsUptimeCheckConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsUptimeCheckConfigsGetCall
- type ProjectsUptimeCheckConfigsListCall
- func (c *ProjectsUptimeCheckConfigsListCall) Context(ctx context.Context) *ProjectsUptimeCheckConfigsListCall
- func (c *ProjectsUptimeCheckConfigsListCall) Do(opts ...googleapi.CallOption) (*ListUptimeCheckConfigsResponse, error)
- func (c *ProjectsUptimeCheckConfigsListCall) Fields(s ...googleapi.Field) *ProjectsUptimeCheckConfigsListCall
- func (c *ProjectsUptimeCheckConfigsListCall) Header() http.Header
- func (c *ProjectsUptimeCheckConfigsListCall) IfNoneMatch(entityTag string) *ProjectsUptimeCheckConfigsListCall
- func (c *ProjectsUptimeCheckConfigsListCall) PageSize(pageSize int64) *ProjectsUptimeCheckConfigsListCall
- func (c *ProjectsUptimeCheckConfigsListCall) PageToken(pageToken string) *ProjectsUptimeCheckConfigsListCall
- func (c *ProjectsUptimeCheckConfigsListCall) Pages(ctx context.Context, f func(*ListUptimeCheckConfigsResponse) error) error
- type ProjectsUptimeCheckConfigsPatchCall
- func (c *ProjectsUptimeCheckConfigsPatchCall) Context(ctx context.Context) *ProjectsUptimeCheckConfigsPatchCall
- func (c *ProjectsUptimeCheckConfigsPatchCall) Do(opts ...googleapi.CallOption) (*UptimeCheckConfig, error)
- func (c *ProjectsUptimeCheckConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsUptimeCheckConfigsPatchCall
- func (c *ProjectsUptimeCheckConfigsPatchCall) Header() http.Header
- func (c *ProjectsUptimeCheckConfigsPatchCall) Name1(name1 string) *ProjectsUptimeCheckConfigsPatchCall
- func (c *ProjectsUptimeCheckConfigsPatchCall) UpdateMask(updateMask string) *ProjectsUptimeCheckConfigsPatchCall
- type ProjectsUptimeCheckConfigsService
- func (r *ProjectsUptimeCheckConfigsService) Create(parent string, uptimecheckconfig *UptimeCheckConfig) *ProjectsUptimeCheckConfigsCreateCall
- func (r *ProjectsUptimeCheckConfigsService) Delete(name string) *ProjectsUptimeCheckConfigsDeleteCall
- func (r *ProjectsUptimeCheckConfigsService) Get(name string) *ProjectsUptimeCheckConfigsGetCall
- func (r *ProjectsUptimeCheckConfigsService) List(parent string) *ProjectsUptimeCheckConfigsListCall
- func (r *ProjectsUptimeCheckConfigsService) Patch(name string, uptimecheckconfig *UptimeCheckConfig) *ProjectsUptimeCheckConfigsPatchCall
- type Range
- type ResourceGroup
- type Service
- type SourceContext
- type Status
- type TcpCheck
- type TimeInterval
- type TimeSeries
- type Type
- type TypedValue
- type UptimeCheckConfig
- type UptimeCheckIp
- type UptimeCheckIpsListCall
- func (c *UptimeCheckIpsListCall) Context(ctx context.Context) *UptimeCheckIpsListCall
- func (c *UptimeCheckIpsListCall) Do(opts ...googleapi.CallOption) (*ListUptimeCheckIpsResponse, error)
- func (c *UptimeCheckIpsListCall) Fields(s ...googleapi.Field) *UptimeCheckIpsListCall
- func (c *UptimeCheckIpsListCall) Header() http.Header
- func (c *UptimeCheckIpsListCall) IfNoneMatch(entityTag string) *UptimeCheckIpsListCall
- func (c *UptimeCheckIpsListCall) PageSize(pageSize int64) *UptimeCheckIpsListCall
- func (c *UptimeCheckIpsListCall) PageToken(pageToken string) *UptimeCheckIpsListCall
- func (c *UptimeCheckIpsListCall) Pages(ctx context.Context, f func(*ListUptimeCheckIpsResponse) error) error
- type UptimeCheckIpsService
Constants ¶
const ( // View and manage your data across Google Cloud Platform services CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" // View and write monitoring data for all of your Google and third-party // Cloud and API projects MonitoringScope = "https://www.googleapis.com/auth/monitoring" // View monitoring data for all of your Google Cloud and third-party // projects MonitoringReadScope = "https://www.googleapis.com/auth/monitoring.read" // Publish metric data to your Google Cloud projects MonitoringWriteScope = "https://www.googleapis.com/auth/monitoring.write" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuthentication ¶
type BasicAuthentication struct { // Password: The password to authenticate. Password string `json:"password,omitempty"` // Username: The username to authenticate. Username string `json:"username,omitempty"` // ForceSendFields is a list of field names (e.g. "Password") 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:"-"` // NullFields is a list of field names (e.g. "Password") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
BasicAuthentication: A type of authentication to perform against the specified resource or URL that uses username and password. Currently, only Basic authentication is supported in Uptime Monitoring.
func (*BasicAuthentication) MarshalJSON ¶
func (s *BasicAuthentication) MarshalJSON() ([]byte, error)
type BucketOptions ¶
type BucketOptions struct { // ExplicitBuckets: The explicit buckets. ExplicitBuckets *Explicit `json:"explicitBuckets,omitempty"` // ExponentialBuckets: The exponential buckets. ExponentialBuckets *Exponential `json:"exponentialBuckets,omitempty"` // LinearBuckets: The linear bucket. LinearBuckets *Linear `json:"linearBuckets,omitempty"` // ForceSendFields is a list of field names (e.g. "ExplicitBuckets") 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:"-"` // NullFields is a list of field names (e.g. "ExplicitBuckets") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
BucketOptions: BucketOptions describes the bucket boundaries used to create a histogram for the distribution. The buckets can be in a linear sequence, an exponential sequence, or each bucket can be specified explicitly. BucketOptions does not include the number of values in each bucket.A bucket has an inclusive lower bound and exclusive upper bound for the values that are counted for that bucket. The upper bound of a bucket must be strictly greater than the lower bound. The sequence of N buckets for a distribution consists of an underflow bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an overflow bucket (number N - 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets span the whole range of finite values: lower bound of the underflow bucket is -infinity and the upper bound of the overflow bucket is +infinity. The finite buckets are so-called because both bounds are finite.
func (*BucketOptions) MarshalJSON ¶
func (s *BucketOptions) MarshalJSON() ([]byte, error)
type CollectdPayload ¶
type CollectdPayload struct { // EndTime: The end time of the interval. EndTime string `json:"endTime,omitempty"` // Metadata: The measurement metadata. Example: "process_id" -> 12345 Metadata map[string]TypedValue `json:"metadata,omitempty"` // Plugin: The name of the plugin. Example: "disk". Plugin string `json:"plugin,omitempty"` // PluginInstance: The instance name of the plugin Example: "hdcl". PluginInstance string `json:"pluginInstance,omitempty"` // StartTime: The start time of the interval. StartTime string `json:"startTime,omitempty"` // Type: The measurement type. Example: "memory". Type string `json:"type,omitempty"` // TypeInstance: The measurement type instance. Example: "used". TypeInstance string `json:"typeInstance,omitempty"` // Values: The measured values during this time interval. Each value // must have a different dataSourceName. Values []*CollectdValue `json:"values,omitempty"` // ForceSendFields is a list of field names (e.g. "EndTime") 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:"-"` // NullFields is a list of field names (e.g. "EndTime") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CollectdPayload: A collection of data points sent from a collectd-based plugin. See the collectd documentation for more information.
func (*CollectdPayload) MarshalJSON ¶
func (s *CollectdPayload) MarshalJSON() ([]byte, error)
type CollectdPayloadError ¶
type CollectdPayloadError struct { // Error: Records the error status for the payload. If this field is // present, the partial errors for nested values won't be populated. Error *Status `json:"error,omitempty"` // Index: The zero-based index in // CreateCollectdTimeSeriesRequest.collectd_payloads. Index int64 `json:"index,omitempty"` // ValueErrors: Records the error status for values that were not // written due to an error.Failed payloads for which nothing is written // will not include partial value errors. ValueErrors []*CollectdValueError `json:"valueErrors,omitempty"` // ForceSendFields is a list of field names (e.g. "Error") 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:"-"` // NullFields is a list of field names (e.g. "Error") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CollectdPayloadError: Describes the error status for payloads that were not written.
func (*CollectdPayloadError) MarshalJSON ¶
func (s *CollectdPayloadError) MarshalJSON() ([]byte, error)
type CollectdValue ¶
type CollectdValue struct { // DataSourceName: The data source for the collectd value. For example // there are two data sources for network measurements: "rx" and "tx". DataSourceName string `json:"dataSourceName,omitempty"` // DataSourceType: The type of measurement. // // Possible values: // "UNSPECIFIED_DATA_SOURCE_TYPE" - An unspecified data source type. // This corresponds to // google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED. // "GAUGE" - An instantaneous measurement of a varying quantity. This // corresponds to google.api.MetricDescriptor.MetricKind.GAUGE. // "COUNTER" - A cumulative value over time. This corresponds to // google.api.MetricDescriptor.MetricKind.CUMULATIVE. // "DERIVE" - A rate of change of the measurement. // "ABSOLUTE" - An amount of change since the last measurement // interval. This corresponds to // google.api.MetricDescriptor.MetricKind.DELTA. DataSourceType string `json:"dataSourceType,omitempty"` // Value: The measurement value. Value *TypedValue `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "DataSourceName") 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:"-"` // NullFields is a list of field names (e.g. "DataSourceName") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
CollectdValue: A single data point from a collectd-based plugin.
func (*CollectdValue) MarshalJSON ¶
func (s *CollectdValue) MarshalJSON() ([]byte, error)
type CollectdValueError ¶
type CollectdValueError struct { // Error: Records the error status for the value. Error *Status `json:"error,omitempty"` // Index: The zero-based index in CollectdPayload.values within the // parent CreateCollectdTimeSeriesRequest.collectd_payloads. Index int64 `json:"index,omitempty"` // ForceSendFields is a list of field names (e.g. "Error") 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:"-"` // NullFields is a list of field names (e.g. "Error") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CollectdValueError: Describes the error status for values that were not written.
func (*CollectdValueError) MarshalJSON ¶
func (s *CollectdValueError) MarshalJSON() ([]byte, error)
type ContentMatcher ¶
type ContentMatcher struct { // Content: String content to match Content string `json:"content,omitempty"` // ForceSendFields is a list of field names (e.g. "Content") 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:"-"` // NullFields is a list of field names (e.g. "Content") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ContentMatcher: Used to perform string matching. Currently, this matches on the exact content. In the future, it can be expanded to allow for regular expressions and more complex matching.
func (*ContentMatcher) MarshalJSON ¶
func (s *ContentMatcher) MarshalJSON() ([]byte, error)
type CreateCollectdTimeSeriesRequest ¶
type CreateCollectdTimeSeriesRequest struct { // CollectdPayloads: The collectd payloads representing the time series // data. You must not include more than a single point for each time // series, so no two payloads can have the same values for all of the // fields plugin, plugin_instance, type, and type_instance. CollectdPayloads []*CollectdPayload `json:"collectdPayloads,omitempty"` // CollectdVersion: The version of collectd that collected the data. // Example: "5.3.0-192.el6". CollectdVersion string `json:"collectdVersion,omitempty"` // Resource: The monitored resource associated with the time series. Resource *MonitoredResource `json:"resource,omitempty"` // ForceSendFields is a list of field names (e.g. "CollectdPayloads") 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:"-"` // NullFields is a list of field names (e.g. "CollectdPayloads") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
CreateCollectdTimeSeriesRequest: The CreateCollectdTimeSeries request.
func (*CreateCollectdTimeSeriesRequest) MarshalJSON ¶
func (s *CreateCollectdTimeSeriesRequest) MarshalJSON() ([]byte, error)
type CreateCollectdTimeSeriesResponse ¶
type CreateCollectdTimeSeriesResponse struct { // PayloadErrors: Records the error status for points that were not // written due to an error.Failed requests for which nothing is written // will return an error response instead. PayloadErrors []*CollectdPayloadError `json:"payloadErrors,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "PayloadErrors") 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:"-"` // NullFields is a list of field names (e.g. "PayloadErrors") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CreateCollectdTimeSeriesResponse: The CreateCollectdTimeSeries response.
func (*CreateCollectdTimeSeriesResponse) MarshalJSON ¶
func (s *CreateCollectdTimeSeriesResponse) MarshalJSON() ([]byte, error)
type CreateTimeSeriesRequest ¶
type CreateTimeSeriesRequest struct { // TimeSeries: The new data to be added to a list of time series. Adds // at most one data point to each of several time series. The new data // point must be more recent than any other point in its time series. // Each TimeSeries value must fully specify a unique time series by // supplying all label values for the metric and the monitored resource. TimeSeries []*TimeSeries `json:"timeSeries,omitempty"` // ForceSendFields is a list of field names (e.g. "TimeSeries") 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:"-"` // NullFields is a list of field names (e.g. "TimeSeries") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CreateTimeSeriesRequest: The CreateTimeSeries request.
func (*CreateTimeSeriesRequest) MarshalJSON ¶
func (s *CreateTimeSeriesRequest) MarshalJSON() ([]byte, error)
type Distribution ¶
type Distribution struct { // BucketCounts: Required in the Stackdriver Monitoring API v3. The // values for each bucket specified in bucket_options. The sum of the // values in bucketCounts must equal the value in the count field of the // Distribution object. The order of the bucket counts follows the // numbering schemes described for the three bucket types. The underflow // bucket has number 0; the finite buckets, if any, have numbers 1 // through N-2; and the overflow bucket has number N-1. The size of // bucket_counts must not be greater than N. If the size is less than N, // then the remaining buckets are assigned values of zero. BucketCounts googleapi.Int64s `json:"bucketCounts,omitempty"` // BucketOptions: Required in the Stackdriver Monitoring API v3. Defines // the histogram bucket boundaries. BucketOptions *BucketOptions `json:"bucketOptions,omitempty"` // Count: The number of values in the population. Must be non-negative. // This value must equal the sum of the values in bucket_counts if a // histogram is provided. Count int64 `json:"count,omitempty,string"` // Mean: The arithmetic mean of the values in the population. If count // is zero then this field must be zero. Mean float64 `json:"mean,omitempty"` // Range: If specified, contains the range of the population values. The // field must not be present if the count is zero. This field is // presently ignored by the Stackdriver Monitoring API v3. Range *Range `json:"range,omitempty"` // SumOfSquaredDeviation: The sum of squared deviations from the mean of // the values in the population. For values x_i this // is: // Sum[i=1..n]((x_i - mean)^2) // Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd // edition describes Welford's method for accumulating this sum in one // pass.If count is zero then this field must be zero. SumOfSquaredDeviation float64 `json:"sumOfSquaredDeviation,omitempty"` // ForceSendFields is a list of field names (e.g. "BucketCounts") 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:"-"` // NullFields is a list of field names (e.g. "BucketCounts") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Distribution: Distribution contains summary statistics for a population of values. It optionally contains a histogram representing the distribution of those values across a set of buckets.The summary statistics are the count, mean, sum of the squared deviation from the mean, the minimum, and the maximum of the set of population of values. The histogram is based on a sequence of buckets and gives a count of values that fall into each bucket. The boundaries of the buckets are given either explicitly or by formulas for buckets of fixed or exponentially increasing widths.Although it is not forbidden, it is generally a bad idea to include non-finite values (infinities or NaNs) in the population of values, as this will render the mean and sum_of_squared_deviation fields meaningless.
func (*Distribution) MarshalJSON ¶
func (s *Distribution) MarshalJSON() ([]byte, error)
func (*Distribution) UnmarshalJSON ¶
func (s *Distribution) UnmarshalJSON(data []byte) error
type Empty ¶
type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:
service Foo { rpc Bar(google.protobuf.Empty) returns
(google.protobuf.Empty); } The JSON representation for Empty is empty JSON object {}.
type Explicit ¶
type Explicit struct { // Bounds: The values must be monotonically increasing. Bounds []float64 `json:"bounds,omitempty"` // ForceSendFields is a list of field names (e.g. "Bounds") 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:"-"` // NullFields is a list of field names (e.g. "Bounds") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Explicit: Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at least one element. If bounds has only one element, then there are no finite buckets, and that single element is the common boundary of the overflow and underflow buckets.
func (*Explicit) MarshalJSON ¶
type Exponential ¶
type Exponential struct { // GrowthFactor: Must be greater than 1. GrowthFactor float64 `json:"growthFactor,omitempty"` // NumFiniteBuckets: Must be greater than 0. NumFiniteBuckets int64 `json:"numFiniteBuckets,omitempty"` // Scale: Must be greater than 0. Scale float64 `json:"scale,omitempty"` // ForceSendFields is a list of field names (e.g. "GrowthFactor") 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:"-"` // NullFields is a list of field names (e.g. "GrowthFactor") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Exponential: Specifies an exponential sequence of buckets that have a width that is proportional to the value of the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
func (*Exponential) MarshalJSON ¶
func (s *Exponential) MarshalJSON() ([]byte, error)
func (*Exponential) UnmarshalJSON ¶
func (s *Exponential) UnmarshalJSON(data []byte) error
type Field ¶
type Field struct { // Cardinality: The field cardinality. // // Possible values: // "CARDINALITY_UNKNOWN" - For fields with unknown cardinality. // "CARDINALITY_OPTIONAL" - For optional fields. // "CARDINALITY_REQUIRED" - For required fields. Proto2 syntax only. // "CARDINALITY_REPEATED" - For repeated fields. Cardinality string `json:"cardinality,omitempty"` // DefaultValue: The string value of the default value of this field. // Proto2 syntax only. DefaultValue string `json:"defaultValue,omitempty"` // JsonName: The field JSON name. JsonName string `json:"jsonName,omitempty"` // Kind: The field type. // // Possible values: // "TYPE_UNKNOWN" - Field type unknown. // "TYPE_DOUBLE" - Field type double. // "TYPE_FLOAT" - Field type float. // "TYPE_INT64" - Field type int64. // "TYPE_UINT64" - Field type uint64. // "TYPE_INT32" - Field type int32. // "TYPE_FIXED64" - Field type fixed64. // "TYPE_FIXED32" - Field type fixed32. // "TYPE_BOOL" - Field type bool. // "TYPE_STRING" - Field type string. // "TYPE_GROUP" - Field type group. Proto2 syntax only, and // deprecated. // "TYPE_MESSAGE" - Field type message. // "TYPE_BYTES" - Field type bytes. // "TYPE_UINT32" - Field type uint32. // "TYPE_ENUM" - Field type enum. // "TYPE_SFIXED32" - Field type sfixed32. // "TYPE_SFIXED64" - Field type sfixed64. // "TYPE_SINT32" - Field type sint32. // "TYPE_SINT64" - Field type sint64. Kind string `json:"kind,omitempty"` // Name: The field name. Name string `json:"name,omitempty"` // Number: The field number. Number int64 `json:"number,omitempty"` // OneofIndex: The index of the field type in Type.oneofs, for message // or enumeration types. The first type has index 1; zero means the type // is not in the list. OneofIndex int64 `json:"oneofIndex,omitempty"` // Options: The protocol buffer options. Options []*Option `json:"options,omitempty"` // Packed: Whether to use alternative packed wire representation. Packed bool `json:"packed,omitempty"` // TypeUrl: The field type URL, without the scheme, for message or // enumeration types. Example: // "type.googleapis.com/google.protobuf.Timestamp". TypeUrl string `json:"typeUrl,omitempty"` // ForceSendFields is a list of field names (e.g. "Cardinality") 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:"-"` // NullFields is a list of field names (e.g. "Cardinality") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Field: A single field of a message type.
func (*Field) MarshalJSON ¶
type Group ¶
type Group struct { // DisplayName: A user-assigned name for this group, used only for // display purposes. DisplayName string `json:"displayName,omitempty"` // Filter: The filter used to determine which monitored resources belong // to this group. Filter string `json:"filter,omitempty"` // IsCluster: If true, the members of this group are considered to be a // cluster. The system can perform additional analysis on groups that // are clusters. IsCluster bool `json:"isCluster,omitempty"` // Name: Output only. The name of this group. The format is // "projects/{project_id_or_number}/groups/{group_id}". When creating a // group, this field is ignored and a new name is created consisting of // the project specified in the call to CreateGroup and a unique // {group_id} that is generated automatically. Name string `json:"name,omitempty"` // ParentName: The name of the group's parent, if it has one. The format // is "projects/{project_id_or_number}/groups/{group_id}". For groups // with no parent, parentName is the empty string, "". ParentName string `json:"parentName,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "DisplayName") 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:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Group: The description of a dynamic collection of monitored resources. Each group has a filter that is matched against monitored resources and their associated metadata. If a group's filter matches an available monitored resource, then that resource is a member of that group. Groups can contain any number of monitored resources, and each monitored resource can be a member of any number of groups.Groups can be nested in parent-child hierarchies. The parentName field identifies an optional parent for each group. If a group has a parent, then the only monitored resources available to be matched by the group's filter are the resources contained in the parent group. In other words, a group contains the monitored resources that match its filter and the filters of all the group's ancestors. A group without a parent can contain any monitored resource.For example, consider an infrastructure running a set of instances with two user-defined tags: "environment" and "role". A parent group has a filter, environment="production". A child of that parent group has a filter, role="transcoder". The parent group contains all instances in the production environment, regardless of their roles. The child group contains instances that have the transcoder role and are in the production environment.The monitored resources contained in a group can change at any moment, depending on what resources exist and what filters are associated with the group and its ancestors.
func (*Group) MarshalJSON ¶
type HttpCheck ¶
type HttpCheck struct { // AuthInfo: The authentication information. Optional when creating an // HTTP check; defaults to empty. AuthInfo *BasicAuthentication `json:"authInfo,omitempty"` // Headers: The list of headers to send as part of the uptime check // request. If two headers have the same key and different values, they // should be entered as a single header, with the value being a // comma-separated list of all the desired values as described at // https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering // two separate headers with the same key in a Create call will cause // the first to be overwritten by the second. Headers map[string]string `json:"headers,omitempty"` // MaskHeaders: Boolean specifiying whether to encrypt the header // information. Encryption should be specified for any headers related // to authentication that you do not wish to be seen when retrieving the // configuration. The server will be responsible for encrypting the // headers. On Get/List calls, if mask_headers is set to True then the // headers will be obscured with ******. MaskHeaders bool `json:"maskHeaders,omitempty"` // Path: The path to the page to run the check against. Will be combined // with the host (specified within the MonitoredResource) and port to // construct the full URL. Optional (defaults to "/"). Path string `json:"path,omitempty"` // Port: The port to the page to run the check against. Will be combined // with host (specified within the MonitoredResource) and path to // construct the full URL. Optional (defaults to 80 without SSL, or 443 // with SSL). Port int64 `json:"port,omitempty"` // UseSsl: If true, use HTTPS instead of HTTP to run the check. UseSsl bool `json:"useSsl,omitempty"` // ForceSendFields is a list of field names (e.g. "AuthInfo") 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:"-"` // NullFields is a list of field names (e.g. "AuthInfo") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpCheck: Information involved in an HTTP/HTTPS uptime check request.
func (*HttpCheck) MarshalJSON ¶
type LabelDescriptor ¶
type LabelDescriptor struct { // Description: A human-readable description for the label. Description string `json:"description,omitempty"` // Key: The label key. Key string `json:"key,omitempty"` // ValueType: The type of data that can be assigned to the label. // // Possible values: // "STRING" - A variable-length string. This is the default. // "BOOL" - Boolean; true or false. // "INT64" - A 64-bit signed integer. ValueType string `json:"valueType,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") 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:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
LabelDescriptor: A description of a label.
func (*LabelDescriptor) MarshalJSON ¶
func (s *LabelDescriptor) MarshalJSON() ([]byte, error)
type Linear ¶
type Linear struct { // NumFiniteBuckets: Must be greater than 0. NumFiniteBuckets int64 `json:"numFiniteBuckets,omitempty"` // Offset: Lower bound of the first bucket. Offset float64 `json:"offset,omitempty"` // Width: Must be greater than 0. Width float64 `json:"width,omitempty"` // ForceSendFields is a list of field names (e.g. "NumFiniteBuckets") 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:"-"` // NullFields is a list of field names (e.g. "NumFiniteBuckets") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
Linear: Specifies a linear sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)).
func (*Linear) MarshalJSON ¶
func (*Linear) UnmarshalJSON ¶
type ListGroupMembersResponse ¶
type ListGroupMembersResponse struct { // Members: A set of monitored resources in the group. Members []*MonitoredResource `json:"members,omitempty"` // NextPageToken: If there are more results than have been returned, // then this field is set to a non-empty value. To see the additional // results, use that value as pageToken in the next call to this method. NextPageToken string `json:"nextPageToken,omitempty"` // TotalSize: The total number of elements matching this request. TotalSize int64 `json:"totalSize,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Members") 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:"-"` // NullFields is a list of field names (e.g. "Members") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListGroupMembersResponse: The ListGroupMembers response.
func (*ListGroupMembersResponse) MarshalJSON ¶
func (s *ListGroupMembersResponse) MarshalJSON() ([]byte, error)
type ListGroupsResponse ¶
type ListGroupsResponse struct { // Group: The groups that match the specified filters. Group []*Group `json:"group,omitempty"` // NextPageToken: If there are more results than have been returned, // then this field is set to a non-empty value. To see the additional // results, use that value as pageToken in the next call to this method. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Group") 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:"-"` // NullFields is a list of field names (e.g. "Group") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListGroupsResponse: The ListGroups response.
func (*ListGroupsResponse) MarshalJSON ¶
func (s *ListGroupsResponse) MarshalJSON() ([]byte, error)
type ListMetricDescriptorsResponse ¶
type ListMetricDescriptorsResponse struct { // MetricDescriptors: The metric descriptors that are available to the // project and that match the value of filter, if present. MetricDescriptors []*MetricDescriptor `json:"metricDescriptors,omitempty"` // NextPageToken: If there are more results than have been returned, // then this field is set to a non-empty value. To see the additional // results, use that value as pageToken in the next call to this method. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "MetricDescriptors") // 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:"-"` // NullFields is a list of field names (e.g. "MetricDescriptors") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ListMetricDescriptorsResponse: The ListMetricDescriptors response.
func (*ListMetricDescriptorsResponse) MarshalJSON ¶
func (s *ListMetricDescriptorsResponse) MarshalJSON() ([]byte, error)
type ListMonitoredResourceDescriptorsResponse ¶
type ListMonitoredResourceDescriptorsResponse struct { // NextPageToken: If there are more results than have been returned, // then this field is set to a non-empty value. To see the additional // results, use that value as pageToken in the next call to this method. NextPageToken string `json:"nextPageToken,omitempty"` // ResourceDescriptors: The monitored resource descriptors that are // available to this project and that match filter, if present. ResourceDescriptors []*MonitoredResourceDescriptor `json:"resourceDescriptors,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") 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:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListMonitoredResourceDescriptorsResponse: The ListMonitoredResourceDescriptors response.
func (*ListMonitoredResourceDescriptorsResponse) MarshalJSON ¶
func (s *ListMonitoredResourceDescriptorsResponse) MarshalJSON() ([]byte, error)
type ListTimeSeriesResponse ¶
type ListTimeSeriesResponse struct { // NextPageToken: If there are more results than have been returned, // then this field is set to a non-empty value. To see the additional // results, use that value as pageToken in the next call to this method. NextPageToken string `json:"nextPageToken,omitempty"` // TimeSeries: One or more time series that match the filter included in // the request. TimeSeries []*TimeSeries `json:"timeSeries,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") 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:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListTimeSeriesResponse: The ListTimeSeries response.
func (*ListTimeSeriesResponse) MarshalJSON ¶
func (s *ListTimeSeriesResponse) MarshalJSON() ([]byte, error)
type ListUptimeCheckConfigsResponse ¶
type ListUptimeCheckConfigsResponse struct { // NextPageToken: This field represents the pagination token to retrieve // the next page of results. If the value is empty, it means no further // results for the request. To retrieve the next page of results, the // value of the next_page_token is passed to the subsequent List method // call (in the request message's page_token field). NextPageToken string `json:"nextPageToken,omitempty"` // UptimeCheckConfigs: The returned uptime check configurations. UptimeCheckConfigs []*UptimeCheckConfig `json:"uptimeCheckConfigs,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") 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:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListUptimeCheckConfigsResponse: The protocol for the ListUptimeCheckConfigs response.
func (*ListUptimeCheckConfigsResponse) MarshalJSON ¶
func (s *ListUptimeCheckConfigsResponse) MarshalJSON() ([]byte, error)
type ListUptimeCheckIpsResponse ¶
type ListUptimeCheckIpsResponse struct { // NextPageToken: This field represents the pagination token to retrieve // the next page of results. If the value is empty, it means no further // results for the request. To retrieve the next page of results, the // value of the next_page_token is passed to the subsequent List method // call (in the request message's page_token field). NOTE: this field is // not yet implemented NextPageToken string `json:"nextPageToken,omitempty"` // UptimeCheckIps: The returned list of IP addresses (including region // and location) that the checkers run from. UptimeCheckIps []*UptimeCheckIp `json:"uptimeCheckIps,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") 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:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListUptimeCheckIpsResponse: The protocol for the ListUptimeCheckIps response.
func (*ListUptimeCheckIpsResponse) MarshalJSON ¶
func (s *ListUptimeCheckIpsResponse) MarshalJSON() ([]byte, error)
type Metric ¶
type Metric struct { // Labels: The set of label values that uniquely identify this metric. // All labels listed in the MetricDescriptor must be assigned values. Labels map[string]string `json:"labels,omitempty"` // Type: An existing metric type, see google.api.MetricDescriptor. For // example, custom.googleapis.com/invoice/paid/amount. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Labels") 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:"-"` // NullFields is a list of field names (e.g. "Labels") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Metric: A specific metric, identified by specifying values for all of the labels of a MetricDescriptor.
func (*Metric) MarshalJSON ¶
type MetricDescriptor ¶
type MetricDescriptor struct { // Description: A detailed description of the metric, which can be used // in documentation. Description string `json:"description,omitempty"` // DisplayName: A concise name for the metric, which can be displayed in // user interfaces. Use sentence case without an ending period, for // example "Request count". This field is optional but it is recommended // to be set for any metrics associated with user-visible concepts, such // as Quota. DisplayName string `json:"displayName,omitempty"` // Labels: The set of labels that can be used to describe a specific // instance of this metric type. For example, the // appengine.googleapis.com/http/server/response_latencies metric type // has a label for the HTTP response code, response_code, so you can // look at latencies for successful responses or just for responses that // failed. Labels []*LabelDescriptor `json:"labels,omitempty"` // MetricKind: Whether the metric records instantaneous values, changes // to a value, etc. Some combinations of metric_kind and value_type // might not be supported. // // Possible values: // "METRIC_KIND_UNSPECIFIED" - Do not use this default value. // "GAUGE" - An instantaneous measurement of a value. // "DELTA" - The change in a value during a time interval. // "CUMULATIVE" - A value accumulated over a time interval. Cumulative // measurements in a time series should have the same start time and // increasing end times, until an event resets the cumulative value to // zero and sets a new start time for the following points. MetricKind string `json:"metricKind,omitempty"` // Name: The resource name of the metric descriptor. Name string `json:"name,omitempty"` // Type: The metric type, including its DNS name prefix. The type is not // URL-encoded. All user-defined custom metric types have the DNS name // custom.googleapis.com. Metric types should use a natural hierarchical // grouping. For // example: // "custom.googleapis.com/invoice/paid/amount" // "appengine.google // apis.com/http/server/response_latencies" // Type string `json:"type,omitempty"` // Unit: The unit in which the metric value is reported. It is only // applicable if the value_type is INT64, DOUBLE, or DISTRIBUTION. The // supported units are a subset of The Unified Code for Units of Measure // (http://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT) // bit bit // By byte // s second // min minute // h hour // d dayPrefixes (PREFIX) // k kilo (10**3) // M mega (10**6) // G giga (10**9) // T tera (10**12) // P peta (10**15) // E exa (10**18) // Z zetta (10**21) // Y yotta (10**24) // m milli (10**-3) // u micro (10**-6) // n nano (10**-9) // p pico (10**-12) // f femto (10**-15) // a atto (10**-18) // z zepto (10**-21) // y yocto (10**-24) // Ki kibi (2**10) // Mi mebi (2**20) // Gi gibi (2**30) // Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, // such as 1/s.The grammar also includes these connectors: // / division (as an infix operator, e.g. 1/s). // . multiplication (as an infix operator, e.g. GBy.d)The grammar for a // unit is as follows: // Expression = Component { "." Component } { "/" Component } // ; // // Component = [ PREFIX ] UNIT [ Annotation ] // | Annotation // | "1" // ; // // Annotation = "{" NAME "}" ; // Notes: // Annotation is just a comment if it follows a UNIT and is equivalent // to 1 if it is used alone. For examples, {requests}/s == 1/s, // By{transmitted}/s == By/s. // NAME is a sequence of non-blank printable ASCII characters not // containing '{' or '}'. Unit string `json:"unit,omitempty"` // ValueType: Whether the measurement is an integer, a floating-point // number, etc. Some combinations of metric_kind and value_type might // not be supported. // // Possible values: // "VALUE_TYPE_UNSPECIFIED" - Do not use this default value. // "BOOL" - The value is a boolean. This value type can be used only // if the metric kind is GAUGE. // "INT64" - The value is a signed 64-bit integer. // "DOUBLE" - The value is a double precision floating point number. // "STRING" - The value is a text string. This value type can be used // only if the metric kind is GAUGE. // "DISTRIBUTION" - The value is a Distribution. // "MONEY" - The value is money. ValueType string `json:"valueType,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Description") 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:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
MetricDescriptor: Defines a metric type and its schema. Once a metric descriptor is created, deleting or altering it stops data collection and makes the metric type's existing data unusable.
func (*MetricDescriptor) MarshalJSON ¶
func (s *MetricDescriptor) MarshalJSON() ([]byte, error)
type MonitoredResource ¶
type MonitoredResource struct { // Labels: Required. Values for all of the labels listed in the // associated monitored resource descriptor. For example, Compute Engine // VM instances use the labels "project_id", "instance_id", and "zone". Labels map[string]string `json:"labels,omitempty"` // Type: Required. The monitored resource type. This field must match // the type field of a MonitoredResourceDescriptor object. For example, // the type of a Compute Engine VM instance is gce_instance. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Labels") 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:"-"` // NullFields is a list of field names (e.g. "Labels") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
MonitoredResource: An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "zone": { "type": "gce_instance",
"labels": { "instance_id": "12345678901234", "zone": "us-central1-a" }}
func (*MonitoredResource) MarshalJSON ¶
func (s *MonitoredResource) MarshalJSON() ([]byte, error)
type MonitoredResourceDescriptor ¶
type MonitoredResourceDescriptor struct { // Description: Optional. A detailed description of the monitored // resource type that might be used in documentation. Description string `json:"description,omitempty"` // DisplayName: Optional. A concise name for the monitored resource type // that might be displayed in user interfaces. It should be a Title // Cased Noun Phrase, without any article or other determiners. For // example, "Google Cloud SQL Database". DisplayName string `json:"displayName,omitempty"` // Labels: Required. A set of labels used to describe instances of this // monitored resource type. For example, an individual Google Cloud SQL // database is identified by values for the labels "database_id" and // "zone". Labels []*LabelDescriptor `json:"labels,omitempty"` // Name: Optional. The resource name of the monitored resource // descriptor: // "projects/{project_id}/monitoredResourceDescriptors/{type}" where // {type} is the value of the type field in this object and {project_id} // is a project ID that provides API-specific context for accessing the // type. APIs that do not use project information can use the resource // name format "monitoredResourceDescriptors/{type}". Name string `json:"name,omitempty"` // Type: Required. The monitored resource type. For example, the type // "cloudsql_database" represents databases in Google Cloud SQL. The // maximum length of this value is 256 characters. Type string `json:"type,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Description") 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:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
MonitoredResourceDescriptor: An object that describes the schema of a MonitoredResource object using a type name and a set of labels. For example, the monitored resource descriptor for Google Compute Engine VM instances has a type of "gce_instance" and specifies the use of the labels "instance_id" and "zone" to identify particular VM instances.Different APIs can support different monitored resource types. APIs generally provide a list method that returns the monitored resource descriptors used by the API.
func (*MonitoredResourceDescriptor) MarshalJSON ¶
func (s *MonitoredResourceDescriptor) MarshalJSON() ([]byte, error)
type Option ¶
type Option struct { // Name: The option's name. For protobuf built-in options (options // defined in descriptor.proto), this is the short name. For example, // "map_entry". For custom options, it should be the fully-qualified // name. For example, "google.api.http". Name string `json:"name,omitempty"` // Value: The option's value packed in an Any message. If the value is a // primitive, the corresponding wrapper type defined in // google/protobuf/wrappers.proto should be used. If the value is an // enum, it should be stored as an int32 value using the // google.protobuf.Int32Value type. Value googleapi.RawMessage `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") 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:"-"` // NullFields is a list of field names (e.g. "Name") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Option: A protocol buffer option, which can be attached to a message, field, enumeration, etc.
func (*Option) MarshalJSON ¶
type Point ¶
type Point struct { // Interval: The time interval to which the data point applies. For // GAUGE metrics, only the end time of the interval is used. For DELTA // metrics, the start and end time should specify a non-zero interval, // with subsequent points specifying contiguous and non-overlapping // intervals. For CUMULATIVE metrics, the start and end time should // specify a non-zero interval, with subsequent points specifying the // same start time and increasing end times, until an event resets the // cumulative value to zero and sets a new start time for the following // points. Interval *TimeInterval `json:"interval,omitempty"` // Value: The value of the data point. Value *TypedValue `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Interval") 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:"-"` // NullFields is a list of field names (e.g. "Interval") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Point: A single data point in a time series.
func (*Point) MarshalJSON ¶
type ProjectsCollectdTimeSeriesCreateCall ¶
type ProjectsCollectdTimeSeriesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsCollectdTimeSeriesCreateCall) Context ¶
func (c *ProjectsCollectdTimeSeriesCreateCall) Context(ctx context.Context) *ProjectsCollectdTimeSeriesCreateCall
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 (*ProjectsCollectdTimeSeriesCreateCall) Do ¶
func (c *ProjectsCollectdTimeSeriesCreateCall) Do(opts ...googleapi.CallOption) (*CreateCollectdTimeSeriesResponse, error)
Do executes the "monitoring.projects.collectdTimeSeries.create" call. Exactly one of *CreateCollectdTimeSeriesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CreateCollectdTimeSeriesResponse.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 (*ProjectsCollectdTimeSeriesCreateCall) Fields ¶
func (c *ProjectsCollectdTimeSeriesCreateCall) Fields(s ...googleapi.Field) *ProjectsCollectdTimeSeriesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsCollectdTimeSeriesCreateCall) Header ¶
func (c *ProjectsCollectdTimeSeriesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsCollectdTimeSeriesService ¶
type ProjectsCollectdTimeSeriesService struct {
// contains filtered or unexported fields
}
func NewProjectsCollectdTimeSeriesService ¶
func NewProjectsCollectdTimeSeriesService(s *Service) *ProjectsCollectdTimeSeriesService
func (*ProjectsCollectdTimeSeriesService) Create ¶
func (r *ProjectsCollectdTimeSeriesService) Create(name string, createcollectdtimeseriesrequest *CreateCollectdTimeSeriesRequest) *ProjectsCollectdTimeSeriesCreateCall
Create: Stackdriver Monitoring Agent only: Creates a new time series.<aside class="caution">This method is only for use by the Stackdriver Monitoring Agent. Use projects.timeSeries.create instead.</aside>
type ProjectsGroupsCreateCall ¶
type ProjectsGroupsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsGroupsCreateCall) Context ¶
func (c *ProjectsGroupsCreateCall) Context(ctx context.Context) *ProjectsGroupsCreateCall
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 (*ProjectsGroupsCreateCall) Do ¶
func (c *ProjectsGroupsCreateCall) Do(opts ...googleapi.CallOption) (*Group, error)
Do executes the "monitoring.projects.groups.create" call. Exactly one of *Group or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Group.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 (*ProjectsGroupsCreateCall) Fields ¶
func (c *ProjectsGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsGroupsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsGroupsCreateCall) Header ¶
func (c *ProjectsGroupsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsGroupsCreateCall) ValidateOnly ¶
func (c *ProjectsGroupsCreateCall) ValidateOnly(validateOnly bool) *ProjectsGroupsCreateCall
ValidateOnly sets the optional parameter "validateOnly": If true, validate this request but do not create the group.
type ProjectsGroupsDeleteCall ¶
type ProjectsGroupsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsGroupsDeleteCall) Context ¶
func (c *ProjectsGroupsDeleteCall) Context(ctx context.Context) *ProjectsGroupsDeleteCall
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 (*ProjectsGroupsDeleteCall) Do ¶
func (c *ProjectsGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "monitoring.projects.groups.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*ProjectsGroupsDeleteCall) Fields ¶
func (c *ProjectsGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsGroupsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsGroupsDeleteCall) Header ¶
func (c *ProjectsGroupsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsGroupsGetCall ¶
type ProjectsGroupsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsGroupsGetCall) Context ¶
func (c *ProjectsGroupsGetCall) Context(ctx context.Context) *ProjectsGroupsGetCall
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 (*ProjectsGroupsGetCall) Do ¶
func (c *ProjectsGroupsGetCall) Do(opts ...googleapi.CallOption) (*Group, error)
Do executes the "monitoring.projects.groups.get" call. Exactly one of *Group or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Group.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 (*ProjectsGroupsGetCall) Fields ¶
func (c *ProjectsGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsGroupsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsGroupsGetCall) Header ¶
func (c *ProjectsGroupsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsGroupsGetCall) IfNoneMatch ¶
func (c *ProjectsGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsGroupsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsGroupsListCall ¶
type ProjectsGroupsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsGroupsListCall) AncestorsOfGroup ¶
func (c *ProjectsGroupsListCall) AncestorsOfGroup(ancestorsOfGroup string) *ProjectsGroupsListCall
AncestorsOfGroup sets the optional parameter "ancestorsOfGroup": A group name: "projects/{project_id_or_number}/groups/{group_id}". Returns groups that are ancestors of the specified group. The groups are returned in order, starting with the immediate parent and ending with the most distant ancestor. If the specified group has no immediate parent, the results are empty.
func (*ProjectsGroupsListCall) ChildrenOfGroup ¶
func (c *ProjectsGroupsListCall) ChildrenOfGroup(childrenOfGroup string) *ProjectsGroupsListCall
ChildrenOfGroup sets the optional parameter "childrenOfGroup": A group name: "projects/{project_id_or_number}/groups/{group_id}". Returns groups whose parentName field contains the group name. If no groups have this parent, the results are empty.
func (*ProjectsGroupsListCall) Context ¶
func (c *ProjectsGroupsListCall) Context(ctx context.Context) *ProjectsGroupsListCall
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 (*ProjectsGroupsListCall) DescendantsOfGroup ¶
func (c *ProjectsGroupsListCall) DescendantsOfGroup(descendantsOfGroup string) *ProjectsGroupsListCall
DescendantsOfGroup sets the optional parameter "descendantsOfGroup": A group name: "projects/{project_id_or_number}/groups/{group_id}". Returns the descendants of the specified group. This is a superset of the results returned by the childrenOfGroup filter, and includes children-of-children, and so forth.
func (*ProjectsGroupsListCall) Do ¶
func (c *ProjectsGroupsListCall) Do(opts ...googleapi.CallOption) (*ListGroupsResponse, error)
Do executes the "monitoring.projects.groups.list" call. Exactly one of *ListGroupsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListGroupsResponse.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 (*ProjectsGroupsListCall) Fields ¶
func (c *ProjectsGroupsListCall) Fields(s ...googleapi.Field) *ProjectsGroupsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsGroupsListCall) Header ¶
func (c *ProjectsGroupsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsGroupsListCall) IfNoneMatch ¶
func (c *ProjectsGroupsListCall) IfNoneMatch(entityTag string) *ProjectsGroupsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsGroupsListCall) PageSize ¶
func (c *ProjectsGroupsListCall) PageSize(pageSize int64) *ProjectsGroupsListCall
PageSize sets the optional parameter "pageSize": A positive number that is the maximum number of results to return.
func (*ProjectsGroupsListCall) PageToken ¶
func (c *ProjectsGroupsListCall) PageToken(pageToken string) *ProjectsGroupsListCall
PageToken sets the optional parameter "pageToken": If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
func (*ProjectsGroupsListCall) Pages ¶
func (c *ProjectsGroupsListCall) Pages(ctx context.Context, f func(*ListGroupsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsGroupsMembersListCall ¶
type ProjectsGroupsMembersListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsGroupsMembersListCall) Context ¶
func (c *ProjectsGroupsMembersListCall) Context(ctx context.Context) *ProjectsGroupsMembersListCall
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 (*ProjectsGroupsMembersListCall) Do ¶
func (c *ProjectsGroupsMembersListCall) Do(opts ...googleapi.CallOption) (*ListGroupMembersResponse, error)
Do executes the "monitoring.projects.groups.members.list" call. Exactly one of *ListGroupMembersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListGroupMembersResponse.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 (*ProjectsGroupsMembersListCall) Fields ¶
func (c *ProjectsGroupsMembersListCall) Fields(s ...googleapi.Field) *ProjectsGroupsMembersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsGroupsMembersListCall) Filter ¶
func (c *ProjectsGroupsMembersListCall) Filter(filter string) *ProjectsGroupsMembersListCall
Filter sets the optional parameter "filter": An optional list filter describing the members to be returned. The filter may reference the type, labels, and metadata of monitored resources that comprise the group. For example, to return only resources representing Compute Engine VM instances, use this filter: resource.type = "gce_instance"
func (*ProjectsGroupsMembersListCall) Header ¶
func (c *ProjectsGroupsMembersListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsGroupsMembersListCall) IfNoneMatch ¶
func (c *ProjectsGroupsMembersListCall) IfNoneMatch(entityTag string) *ProjectsGroupsMembersListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsGroupsMembersListCall) IntervalEndTime ¶
func (c *ProjectsGroupsMembersListCall) IntervalEndTime(intervalEndTime string) *ProjectsGroupsMembersListCall
IntervalEndTime sets the optional parameter "interval.endTime": Required. The end of the time interval.
func (*ProjectsGroupsMembersListCall) IntervalStartTime ¶
func (c *ProjectsGroupsMembersListCall) IntervalStartTime(intervalStartTime string) *ProjectsGroupsMembersListCall
IntervalStartTime sets the optional parameter "interval.startTime": The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time.
func (*ProjectsGroupsMembersListCall) PageSize ¶
func (c *ProjectsGroupsMembersListCall) PageSize(pageSize int64) *ProjectsGroupsMembersListCall
PageSize sets the optional parameter "pageSize": A positive number that is the maximum number of results to return.
func (*ProjectsGroupsMembersListCall) PageToken ¶
func (c *ProjectsGroupsMembersListCall) PageToken(pageToken string) *ProjectsGroupsMembersListCall
PageToken sets the optional parameter "pageToken": If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
func (*ProjectsGroupsMembersListCall) Pages ¶
func (c *ProjectsGroupsMembersListCall) Pages(ctx context.Context, f func(*ListGroupMembersResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsGroupsMembersService ¶
type ProjectsGroupsMembersService struct {
// contains filtered or unexported fields
}
func NewProjectsGroupsMembersService ¶
func NewProjectsGroupsMembersService(s *Service) *ProjectsGroupsMembersService
func (*ProjectsGroupsMembersService) List ¶
func (r *ProjectsGroupsMembersService) List(name string) *ProjectsGroupsMembersListCall
List: Lists the monitored resources that are members of a group.
type ProjectsGroupsService ¶
type ProjectsGroupsService struct { Members *ProjectsGroupsMembersService // contains filtered or unexported fields }
func NewProjectsGroupsService ¶
func NewProjectsGroupsService(s *Service) *ProjectsGroupsService
func (*ProjectsGroupsService) Create ¶
func (r *ProjectsGroupsService) Create(name string, group *Group) *ProjectsGroupsCreateCall
Create: Creates a new group.
func (*ProjectsGroupsService) Delete ¶
func (r *ProjectsGroupsService) Delete(name string) *ProjectsGroupsDeleteCall
Delete: Deletes an existing group.
func (*ProjectsGroupsService) Get ¶
func (r *ProjectsGroupsService) Get(name string) *ProjectsGroupsGetCall
Get: Gets a single group.
func (*ProjectsGroupsService) List ¶
func (r *ProjectsGroupsService) List(name string) *ProjectsGroupsListCall
List: Lists the existing groups.
func (*ProjectsGroupsService) Update ¶
func (r *ProjectsGroupsService) Update(name string, group *Group) *ProjectsGroupsUpdateCall
Update: Updates an existing group. You can change any group attributes except name.
type ProjectsGroupsUpdateCall ¶
type ProjectsGroupsUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsGroupsUpdateCall) Context ¶
func (c *ProjectsGroupsUpdateCall) Context(ctx context.Context) *ProjectsGroupsUpdateCall
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 (*ProjectsGroupsUpdateCall) Do ¶
func (c *ProjectsGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Group, error)
Do executes the "monitoring.projects.groups.update" call. Exactly one of *Group or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Group.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 (*ProjectsGroupsUpdateCall) Fields ¶
func (c *ProjectsGroupsUpdateCall) Fields(s ...googleapi.Field) *ProjectsGroupsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsGroupsUpdateCall) Header ¶
func (c *ProjectsGroupsUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsGroupsUpdateCall) ValidateOnly ¶
func (c *ProjectsGroupsUpdateCall) ValidateOnly(validateOnly bool) *ProjectsGroupsUpdateCall
ValidateOnly sets the optional parameter "validateOnly": If true, validate this request but do not update the existing group.
type ProjectsMetricDescriptorsCreateCall ¶
type ProjectsMetricDescriptorsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsMetricDescriptorsCreateCall) Context ¶
func (c *ProjectsMetricDescriptorsCreateCall) Context(ctx context.Context) *ProjectsMetricDescriptorsCreateCall
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 (*ProjectsMetricDescriptorsCreateCall) Do ¶
func (c *ProjectsMetricDescriptorsCreateCall) Do(opts ...googleapi.CallOption) (*MetricDescriptor, error)
Do executes the "monitoring.projects.metricDescriptors.create" call. Exactly one of *MetricDescriptor or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *MetricDescriptor.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 (*ProjectsMetricDescriptorsCreateCall) Fields ¶
func (c *ProjectsMetricDescriptorsCreateCall) Fields(s ...googleapi.Field) *ProjectsMetricDescriptorsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsMetricDescriptorsCreateCall) Header ¶
func (c *ProjectsMetricDescriptorsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsMetricDescriptorsDeleteCall ¶
type ProjectsMetricDescriptorsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsMetricDescriptorsDeleteCall) Context ¶
func (c *ProjectsMetricDescriptorsDeleteCall) Context(ctx context.Context) *ProjectsMetricDescriptorsDeleteCall
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 (*ProjectsMetricDescriptorsDeleteCall) Do ¶
func (c *ProjectsMetricDescriptorsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "monitoring.projects.metricDescriptors.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*ProjectsMetricDescriptorsDeleteCall) Fields ¶
func (c *ProjectsMetricDescriptorsDeleteCall) Fields(s ...googleapi.Field) *ProjectsMetricDescriptorsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsMetricDescriptorsDeleteCall) Header ¶
func (c *ProjectsMetricDescriptorsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsMetricDescriptorsGetCall ¶
type ProjectsMetricDescriptorsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsMetricDescriptorsGetCall) Context ¶
func (c *ProjectsMetricDescriptorsGetCall) Context(ctx context.Context) *ProjectsMetricDescriptorsGetCall
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 (*ProjectsMetricDescriptorsGetCall) Do ¶
func (c *ProjectsMetricDescriptorsGetCall) Do(opts ...googleapi.CallOption) (*MetricDescriptor, error)
Do executes the "monitoring.projects.metricDescriptors.get" call. Exactly one of *MetricDescriptor or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *MetricDescriptor.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 (*ProjectsMetricDescriptorsGetCall) Fields ¶
func (c *ProjectsMetricDescriptorsGetCall) Fields(s ...googleapi.Field) *ProjectsMetricDescriptorsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsMetricDescriptorsGetCall) Header ¶
func (c *ProjectsMetricDescriptorsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsMetricDescriptorsGetCall) IfNoneMatch ¶
func (c *ProjectsMetricDescriptorsGetCall) IfNoneMatch(entityTag string) *ProjectsMetricDescriptorsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsMetricDescriptorsListCall ¶
type ProjectsMetricDescriptorsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsMetricDescriptorsListCall) Context ¶
func (c *ProjectsMetricDescriptorsListCall) Context(ctx context.Context) *ProjectsMetricDescriptorsListCall
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 (*ProjectsMetricDescriptorsListCall) Do ¶
func (c *ProjectsMetricDescriptorsListCall) Do(opts ...googleapi.CallOption) (*ListMetricDescriptorsResponse, error)
Do executes the "monitoring.projects.metricDescriptors.list" call. Exactly one of *ListMetricDescriptorsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListMetricDescriptorsResponse.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 (*ProjectsMetricDescriptorsListCall) Fields ¶
func (c *ProjectsMetricDescriptorsListCall) Fields(s ...googleapi.Field) *ProjectsMetricDescriptorsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsMetricDescriptorsListCall) Filter ¶
func (c *ProjectsMetricDescriptorsListCall) Filter(filter string) *ProjectsMetricDescriptorsListCall
Filter sets the optional parameter "filter": If this field is empty, all custom and system-defined metric descriptors are returned. Otherwise, the filter specifies which metric descriptors are to be returned. For example, the following filter matches all custom metrics: metric.type = starts_with("custom.googleapis.com/")
func (*ProjectsMetricDescriptorsListCall) Header ¶
func (c *ProjectsMetricDescriptorsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsMetricDescriptorsListCall) IfNoneMatch ¶
func (c *ProjectsMetricDescriptorsListCall) IfNoneMatch(entityTag string) *ProjectsMetricDescriptorsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsMetricDescriptorsListCall) PageSize ¶
func (c *ProjectsMetricDescriptorsListCall) PageSize(pageSize int64) *ProjectsMetricDescriptorsListCall
PageSize sets the optional parameter "pageSize": A positive number that is the maximum number of results to return.
func (*ProjectsMetricDescriptorsListCall) PageToken ¶
func (c *ProjectsMetricDescriptorsListCall) PageToken(pageToken string) *ProjectsMetricDescriptorsListCall
PageToken sets the optional parameter "pageToken": If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
func (*ProjectsMetricDescriptorsListCall) Pages ¶
func (c *ProjectsMetricDescriptorsListCall) Pages(ctx context.Context, f func(*ListMetricDescriptorsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsMetricDescriptorsService ¶
type ProjectsMetricDescriptorsService struct {
// contains filtered or unexported fields
}
func NewProjectsMetricDescriptorsService ¶
func NewProjectsMetricDescriptorsService(s *Service) *ProjectsMetricDescriptorsService
func (*ProjectsMetricDescriptorsService) Create ¶
func (r *ProjectsMetricDescriptorsService) Create(name string, metricdescriptor *MetricDescriptor) *ProjectsMetricDescriptorsCreateCall
Create: Creates a new metric descriptor. User-created metric descriptors define custom metrics.
func (*ProjectsMetricDescriptorsService) Delete ¶
func (r *ProjectsMetricDescriptorsService) Delete(name string) *ProjectsMetricDescriptorsDeleteCall
Delete: Deletes a metric descriptor. Only user-created custom metrics can be deleted.
func (*ProjectsMetricDescriptorsService) Get ¶
func (r *ProjectsMetricDescriptorsService) Get(name string) *ProjectsMetricDescriptorsGetCall
Get: Gets a single metric descriptor. This method does not require a Stackdriver account.
func (*ProjectsMetricDescriptorsService) List ¶
func (r *ProjectsMetricDescriptorsService) List(name string) *ProjectsMetricDescriptorsListCall
List: Lists metric descriptors that match a filter. This method does not require a Stackdriver account.
type ProjectsMonitoredResourceDescriptorsGetCall ¶
type ProjectsMonitoredResourceDescriptorsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsMonitoredResourceDescriptorsGetCall) Context ¶
func (c *ProjectsMonitoredResourceDescriptorsGetCall) Context(ctx context.Context) *ProjectsMonitoredResourceDescriptorsGetCall
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 (*ProjectsMonitoredResourceDescriptorsGetCall) Do ¶
func (c *ProjectsMonitoredResourceDescriptorsGetCall) Do(opts ...googleapi.CallOption) (*MonitoredResourceDescriptor, error)
Do executes the "monitoring.projects.monitoredResourceDescriptors.get" call. Exactly one of *MonitoredResourceDescriptor or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *MonitoredResourceDescriptor.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 (*ProjectsMonitoredResourceDescriptorsGetCall) Fields ¶
func (c *ProjectsMonitoredResourceDescriptorsGetCall) Fields(s ...googleapi.Field) *ProjectsMonitoredResourceDescriptorsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsMonitoredResourceDescriptorsGetCall) Header ¶
func (c *ProjectsMonitoredResourceDescriptorsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsMonitoredResourceDescriptorsGetCall) IfNoneMatch ¶
func (c *ProjectsMonitoredResourceDescriptorsGetCall) IfNoneMatch(entityTag string) *ProjectsMonitoredResourceDescriptorsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsMonitoredResourceDescriptorsListCall ¶
type ProjectsMonitoredResourceDescriptorsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsMonitoredResourceDescriptorsListCall) Context ¶
func (c *ProjectsMonitoredResourceDescriptorsListCall) Context(ctx context.Context) *ProjectsMonitoredResourceDescriptorsListCall
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 (*ProjectsMonitoredResourceDescriptorsListCall) Do ¶
func (c *ProjectsMonitoredResourceDescriptorsListCall) Do(opts ...googleapi.CallOption) (*ListMonitoredResourceDescriptorsResponse, error)
Do executes the "monitoring.projects.monitoredResourceDescriptors.list" call. Exactly one of *ListMonitoredResourceDescriptorsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListMonitoredResourceDescriptorsResponse.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 (*ProjectsMonitoredResourceDescriptorsListCall) Fields ¶
func (c *ProjectsMonitoredResourceDescriptorsListCall) Fields(s ...googleapi.Field) *ProjectsMonitoredResourceDescriptorsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsMonitoredResourceDescriptorsListCall) Filter ¶
func (c *ProjectsMonitoredResourceDescriptorsListCall) Filter(filter string) *ProjectsMonitoredResourceDescriptorsListCall
Filter sets the optional parameter "filter": An optional filter describing the descriptors to be returned. The filter can reference the descriptor's type and labels. For example, the following filter returns only Google Compute Engine descriptors that have an id label: resource.type = starts_with("gce_") AND resource.label:id
func (*ProjectsMonitoredResourceDescriptorsListCall) Header ¶
func (c *ProjectsMonitoredResourceDescriptorsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsMonitoredResourceDescriptorsListCall) IfNoneMatch ¶
func (c *ProjectsMonitoredResourceDescriptorsListCall) IfNoneMatch(entityTag string) *ProjectsMonitoredResourceDescriptorsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsMonitoredResourceDescriptorsListCall) PageSize ¶
func (c *ProjectsMonitoredResourceDescriptorsListCall) PageSize(pageSize int64) *ProjectsMonitoredResourceDescriptorsListCall
PageSize sets the optional parameter "pageSize": A positive number that is the maximum number of results to return.
func (*ProjectsMonitoredResourceDescriptorsListCall) PageToken ¶
func (c *ProjectsMonitoredResourceDescriptorsListCall) PageToken(pageToken string) *ProjectsMonitoredResourceDescriptorsListCall
PageToken sets the optional parameter "pageToken": If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
func (*ProjectsMonitoredResourceDescriptorsListCall) Pages ¶
func (c *ProjectsMonitoredResourceDescriptorsListCall) Pages(ctx context.Context, f func(*ListMonitoredResourceDescriptorsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsMonitoredResourceDescriptorsService ¶
type ProjectsMonitoredResourceDescriptorsService struct {
// contains filtered or unexported fields
}
func NewProjectsMonitoredResourceDescriptorsService ¶
func NewProjectsMonitoredResourceDescriptorsService(s *Service) *ProjectsMonitoredResourceDescriptorsService
func (*ProjectsMonitoredResourceDescriptorsService) Get ¶
func (r *ProjectsMonitoredResourceDescriptorsService) Get(name string) *ProjectsMonitoredResourceDescriptorsGetCall
Get: Gets a single monitored resource descriptor. This method does not require a Stackdriver account.
func (*ProjectsMonitoredResourceDescriptorsService) List ¶
func (r *ProjectsMonitoredResourceDescriptorsService) List(name string) *ProjectsMonitoredResourceDescriptorsListCall
List: Lists monitored resource descriptors that match a filter. This method does not require a Stackdriver account.
type ProjectsService ¶
type ProjectsService struct { CollectdTimeSeries *ProjectsCollectdTimeSeriesService Groups *ProjectsGroupsService MetricDescriptors *ProjectsMetricDescriptorsService MonitoredResourceDescriptors *ProjectsMonitoredResourceDescriptorsService TimeSeries *ProjectsTimeSeriesService UptimeCheckConfigs *ProjectsUptimeCheckConfigsService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type ProjectsTimeSeriesCreateCall ¶
type ProjectsTimeSeriesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsTimeSeriesCreateCall) Context ¶
func (c *ProjectsTimeSeriesCreateCall) Context(ctx context.Context) *ProjectsTimeSeriesCreateCall
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 (*ProjectsTimeSeriesCreateCall) Do ¶
func (c *ProjectsTimeSeriesCreateCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "monitoring.projects.timeSeries.create" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*ProjectsTimeSeriesCreateCall) Fields ¶
func (c *ProjectsTimeSeriesCreateCall) Fields(s ...googleapi.Field) *ProjectsTimeSeriesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsTimeSeriesCreateCall) Header ¶
func (c *ProjectsTimeSeriesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsTimeSeriesListCall ¶
type ProjectsTimeSeriesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsTimeSeriesListCall) AggregationAlignmentPeriod ¶
func (c *ProjectsTimeSeriesListCall) AggregationAlignmentPeriod(aggregationAlignmentPeriod string) *ProjectsTimeSeriesListCall
AggregationAlignmentPeriod sets the optional parameter "aggregation.alignmentPeriod": The alignment period for per-time series alignment. If present, alignmentPeriod must be at least 60 seconds. After per-time series alignment, each time series will contain data points only on the period boundaries. If perSeriesAligner is not specified or equals ALIGN_NONE, then this field is ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then this field must be defined; otherwise an error is returned.
func (*ProjectsTimeSeriesListCall) AggregationCrossSeriesReducer ¶
func (c *ProjectsTimeSeriesListCall) AggregationCrossSeriesReducer(aggregationCrossSeriesReducer string) *ProjectsTimeSeriesListCall
AggregationCrossSeriesReducer sets the optional parameter "aggregation.crossSeriesReducer": The approach to be used to combine time series. Not all reducer functions may be applied to all time series, depending on the metric type and the value type of the original time series. Reduction may change the metric type of value type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If crossSeriesReducer is specified, then perSeriesAligner must be specified and not equal ALIGN_NONE and alignmentPeriod must be specified; otherwise, an error is returned.
Possible values:
"REDUCE_NONE" "REDUCE_MEAN" "REDUCE_MIN" "REDUCE_MAX" "REDUCE_SUM" "REDUCE_STDDEV" "REDUCE_COUNT" "REDUCE_COUNT_TRUE" "REDUCE_FRACTION_TRUE" "REDUCE_PERCENTILE_99" "REDUCE_PERCENTILE_95" "REDUCE_PERCENTILE_50" "REDUCE_PERCENTILE_05"
func (*ProjectsTimeSeriesListCall) AggregationGroupByFields ¶
func (c *ProjectsTimeSeriesListCall) AggregationGroupByFields(aggregationGroupByFields ...string) *ProjectsTimeSeriesListCall
AggregationGroupByFields sets the optional parameter "aggregation.groupByFields": The set of fields to preserve when crossSeriesReducer is specified. The groupByFields determine how the time series are partitioned into subsets prior to applying the aggregation function. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The crossSeriesReducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in groupByFields are aggregated away. If groupByFields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If crossSeriesReducer is not defined, this field is ignored.
func (*ProjectsTimeSeriesListCall) AggregationPerSeriesAligner ¶
func (c *ProjectsTimeSeriesListCall) AggregationPerSeriesAligner(aggregationPerSeriesAligner string) *ProjectsTimeSeriesListCall
AggregationPerSeriesAligner sets the optional parameter "aggregation.perSeriesAligner": The approach to be used to align individual time series. Not all alignment functions may be applied to all time series, depending on the metric type and value type of the original time series. Alignment may change the metric type or the value type of the time series.Time series data must be aligned in order to perform cross-time series reduction. If crossSeriesReducer is specified, then perSeriesAligner must be specified and not equal ALIGN_NONE and alignmentPeriod must be specified; otherwise, an error is returned.
Possible values:
"ALIGN_NONE" "ALIGN_DELTA" "ALIGN_RATE" "ALIGN_INTERPOLATE" "ALIGN_NEXT_OLDER" "ALIGN_MIN" "ALIGN_MAX" "ALIGN_MEAN" "ALIGN_COUNT" "ALIGN_SUM" "ALIGN_STDDEV" "ALIGN_COUNT_TRUE" "ALIGN_FRACTION_TRUE" "ALIGN_PERCENTILE_99" "ALIGN_PERCENTILE_95" "ALIGN_PERCENTILE_50" "ALIGN_PERCENTILE_05"
func (*ProjectsTimeSeriesListCall) Context ¶
func (c *ProjectsTimeSeriesListCall) Context(ctx context.Context) *ProjectsTimeSeriesListCall
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 (*ProjectsTimeSeriesListCall) Do ¶
func (c *ProjectsTimeSeriesListCall) Do(opts ...googleapi.CallOption) (*ListTimeSeriesResponse, error)
Do executes the "monitoring.projects.timeSeries.list" call. Exactly one of *ListTimeSeriesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListTimeSeriesResponse.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 (*ProjectsTimeSeriesListCall) Fields ¶
func (c *ProjectsTimeSeriesListCall) Fields(s ...googleapi.Field) *ProjectsTimeSeriesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsTimeSeriesListCall) Filter ¶
func (c *ProjectsTimeSeriesListCall) Filter(filter string) *ProjectsTimeSeriesListCall
Filter sets the optional parameter "filter": A monitoring filter that specifies which time series should be returned. The filter must specify a single metric type, and can additionally specify metric labels and other information. For example: metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
metric.label.instance_name = "my-instance-name"
func (*ProjectsTimeSeriesListCall) Header ¶
func (c *ProjectsTimeSeriesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsTimeSeriesListCall) IfNoneMatch ¶
func (c *ProjectsTimeSeriesListCall) IfNoneMatch(entityTag string) *ProjectsTimeSeriesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsTimeSeriesListCall) IntervalEndTime ¶
func (c *ProjectsTimeSeriesListCall) IntervalEndTime(intervalEndTime string) *ProjectsTimeSeriesListCall
IntervalEndTime sets the optional parameter "interval.endTime": Required. The end of the time interval.
func (*ProjectsTimeSeriesListCall) IntervalStartTime ¶
func (c *ProjectsTimeSeriesListCall) IntervalStartTime(intervalStartTime string) *ProjectsTimeSeriesListCall
IntervalStartTime sets the optional parameter "interval.startTime": The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time.
func (*ProjectsTimeSeriesListCall) OrderBy ¶
func (c *ProjectsTimeSeriesListCall) OrderBy(orderBy string) *ProjectsTimeSeriesListCall
OrderBy sets the optional parameter "orderBy": Specifies the order in which the points of the time series should be returned. By default, results are not ordered. Currently, this field must be left blank.
func (*ProjectsTimeSeriesListCall) PageSize ¶
func (c *ProjectsTimeSeriesListCall) PageSize(pageSize int64) *ProjectsTimeSeriesListCall
PageSize sets the optional parameter "pageSize": A positive number that is the maximum number of results to return. When view field sets to FULL, it limits the number of Points server will return; if view field is HEADERS, it limits the number of TimeSeries server will return.
func (*ProjectsTimeSeriesListCall) PageToken ¶
func (c *ProjectsTimeSeriesListCall) PageToken(pageToken string) *ProjectsTimeSeriesListCall
PageToken sets the optional parameter "pageToken": If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.
func (*ProjectsTimeSeriesListCall) Pages ¶
func (c *ProjectsTimeSeriesListCall) Pages(ctx context.Context, f func(*ListTimeSeriesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
func (*ProjectsTimeSeriesListCall) View ¶
func (c *ProjectsTimeSeriesListCall) View(view string) *ProjectsTimeSeriesListCall
View sets the optional parameter "view": Specifies which information is returned about the time series.
Possible values:
"FULL" "HEADERS"
type ProjectsTimeSeriesService ¶
type ProjectsTimeSeriesService struct {
// contains filtered or unexported fields
}
func NewProjectsTimeSeriesService ¶
func NewProjectsTimeSeriesService(s *Service) *ProjectsTimeSeriesService
func (*ProjectsTimeSeriesService) Create ¶
func (r *ProjectsTimeSeriesService) Create(name string, createtimeseriesrequest *CreateTimeSeriesRequest) *ProjectsTimeSeriesCreateCall
Create: Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response.
func (*ProjectsTimeSeriesService) List ¶
func (r *ProjectsTimeSeriesService) List(name string) *ProjectsTimeSeriesListCall
List: Lists time series that match a filter. This method does not require a Stackdriver account.
type ProjectsUptimeCheckConfigsCreateCall ¶
type ProjectsUptimeCheckConfigsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsUptimeCheckConfigsCreateCall) Context ¶
func (c *ProjectsUptimeCheckConfigsCreateCall) Context(ctx context.Context) *ProjectsUptimeCheckConfigsCreateCall
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 (*ProjectsUptimeCheckConfigsCreateCall) Do ¶
func (c *ProjectsUptimeCheckConfigsCreateCall) Do(opts ...googleapi.CallOption) (*UptimeCheckConfig, error)
Do executes the "monitoring.projects.uptimeCheckConfigs.create" call. Exactly one of *UptimeCheckConfig or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *UptimeCheckConfig.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 (*ProjectsUptimeCheckConfigsCreateCall) Fields ¶
func (c *ProjectsUptimeCheckConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsUptimeCheckConfigsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsUptimeCheckConfigsCreateCall) Header ¶
func (c *ProjectsUptimeCheckConfigsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsUptimeCheckConfigsDeleteCall ¶
type ProjectsUptimeCheckConfigsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsUptimeCheckConfigsDeleteCall) Context ¶
func (c *ProjectsUptimeCheckConfigsDeleteCall) Context(ctx context.Context) *ProjectsUptimeCheckConfigsDeleteCall
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 (*ProjectsUptimeCheckConfigsDeleteCall) Do ¶
func (c *ProjectsUptimeCheckConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "monitoring.projects.uptimeCheckConfigs.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*ProjectsUptimeCheckConfigsDeleteCall) Fields ¶
func (c *ProjectsUptimeCheckConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsUptimeCheckConfigsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsUptimeCheckConfigsDeleteCall) Header ¶
func (c *ProjectsUptimeCheckConfigsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsUptimeCheckConfigsGetCall ¶
type ProjectsUptimeCheckConfigsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsUptimeCheckConfigsGetCall) Context ¶
func (c *ProjectsUptimeCheckConfigsGetCall) Context(ctx context.Context) *ProjectsUptimeCheckConfigsGetCall
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 (*ProjectsUptimeCheckConfigsGetCall) Do ¶
func (c *ProjectsUptimeCheckConfigsGetCall) Do(opts ...googleapi.CallOption) (*UptimeCheckConfig, error)
Do executes the "monitoring.projects.uptimeCheckConfigs.get" call. Exactly one of *UptimeCheckConfig or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *UptimeCheckConfig.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 (*ProjectsUptimeCheckConfigsGetCall) Fields ¶
func (c *ProjectsUptimeCheckConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsUptimeCheckConfigsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsUptimeCheckConfigsGetCall) Header ¶
func (c *ProjectsUptimeCheckConfigsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsUptimeCheckConfigsGetCall) IfNoneMatch ¶
func (c *ProjectsUptimeCheckConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsUptimeCheckConfigsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsUptimeCheckConfigsListCall ¶
type ProjectsUptimeCheckConfigsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsUptimeCheckConfigsListCall) Context ¶
func (c *ProjectsUptimeCheckConfigsListCall) Context(ctx context.Context) *ProjectsUptimeCheckConfigsListCall
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 (*ProjectsUptimeCheckConfigsListCall) Do ¶
func (c *ProjectsUptimeCheckConfigsListCall) Do(opts ...googleapi.CallOption) (*ListUptimeCheckConfigsResponse, error)
Do executes the "monitoring.projects.uptimeCheckConfigs.list" call. Exactly one of *ListUptimeCheckConfigsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListUptimeCheckConfigsResponse.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 (*ProjectsUptimeCheckConfigsListCall) Fields ¶
func (c *ProjectsUptimeCheckConfigsListCall) Fields(s ...googleapi.Field) *ProjectsUptimeCheckConfigsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsUptimeCheckConfigsListCall) Header ¶
func (c *ProjectsUptimeCheckConfigsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsUptimeCheckConfigsListCall) IfNoneMatch ¶
func (c *ProjectsUptimeCheckConfigsListCall) IfNoneMatch(entityTag string) *ProjectsUptimeCheckConfigsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsUptimeCheckConfigsListCall) PageSize ¶
func (c *ProjectsUptimeCheckConfigsListCall) PageSize(pageSize int64) *ProjectsUptimeCheckConfigsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return in a single response. The server may further constrain the maximum number of results returned in a single page. If the page_size is <=0, the server will decide the number of results to be returned.
func (*ProjectsUptimeCheckConfigsListCall) PageToken ¶
func (c *ProjectsUptimeCheckConfigsListCall) PageToken(pageToken string) *ProjectsUptimeCheckConfigsListCall
PageToken sets the optional parameter "pageToken": If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return more results from the previous method call.
func (*ProjectsUptimeCheckConfigsListCall) Pages ¶
func (c *ProjectsUptimeCheckConfigsListCall) Pages(ctx context.Context, f func(*ListUptimeCheckConfigsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsUptimeCheckConfigsPatchCall ¶
type ProjectsUptimeCheckConfigsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsUptimeCheckConfigsPatchCall) Context ¶
func (c *ProjectsUptimeCheckConfigsPatchCall) Context(ctx context.Context) *ProjectsUptimeCheckConfigsPatchCall
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 (*ProjectsUptimeCheckConfigsPatchCall) Do ¶
func (c *ProjectsUptimeCheckConfigsPatchCall) Do(opts ...googleapi.CallOption) (*UptimeCheckConfig, error)
Do executes the "monitoring.projects.uptimeCheckConfigs.patch" call. Exactly one of *UptimeCheckConfig or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *UptimeCheckConfig.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 (*ProjectsUptimeCheckConfigsPatchCall) Fields ¶
func (c *ProjectsUptimeCheckConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsUptimeCheckConfigsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsUptimeCheckConfigsPatchCall) Header ¶
func (c *ProjectsUptimeCheckConfigsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsUptimeCheckConfigsPatchCall) Name1 ¶
func (c *ProjectsUptimeCheckConfigsPatchCall) Name1(name1 string) *ProjectsUptimeCheckConfigsPatchCall
Name1 sets the optional parameter "name1": The uptime check configuration to update. The format isprojects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID].
func (*ProjectsUptimeCheckConfigsPatchCall) UpdateMask ¶
func (c *ProjectsUptimeCheckConfigsPatchCall) UpdateMask(updateMask string) *ProjectsUptimeCheckConfigsPatchCall
UpdateMask sets the optional parameter "updateMask": If present, only the listed fields in the current uptime check configuration are updated with values from the new configuration. If this field is empty, then the current configuration is completely replaced with the new configuration.
type ProjectsUptimeCheckConfigsService ¶
type ProjectsUptimeCheckConfigsService struct {
// contains filtered or unexported fields
}
func NewProjectsUptimeCheckConfigsService ¶
func NewProjectsUptimeCheckConfigsService(s *Service) *ProjectsUptimeCheckConfigsService
func (*ProjectsUptimeCheckConfigsService) Create ¶
func (r *ProjectsUptimeCheckConfigsService) Create(parent string, uptimecheckconfig *UptimeCheckConfig) *ProjectsUptimeCheckConfigsCreateCall
Create: Creates a new uptime check configuration.
func (*ProjectsUptimeCheckConfigsService) Delete ¶
func (r *ProjectsUptimeCheckConfigsService) Delete(name string) *ProjectsUptimeCheckConfigsDeleteCall
Delete: Deletes an uptime check configuration. Note that this method will fail if the uptime check configuration is referenced by an alert policy or other dependent configs that would be rendered invalid by the deletion.
func (*ProjectsUptimeCheckConfigsService) Get ¶
func (r *ProjectsUptimeCheckConfigsService) Get(name string) *ProjectsUptimeCheckConfigsGetCall
Get: Gets a single uptime check configuration.
func (*ProjectsUptimeCheckConfigsService) List ¶
func (r *ProjectsUptimeCheckConfigsService) List(parent string) *ProjectsUptimeCheckConfigsListCall
List: Lists the existing valid uptime check configurations for the project, leaving out any invalid configurations.
func (*ProjectsUptimeCheckConfigsService) Patch ¶
func (r *ProjectsUptimeCheckConfigsService) Patch(name string, uptimecheckconfig *UptimeCheckConfig) *ProjectsUptimeCheckConfigsPatchCall
Patch: Updates an uptime check configuration. You can either replace the entire configuration with a new one or replace only certain fields in the current configuration by specifying the fields to be updated via "updateMask". Returns the updated configuration.
type Range ¶
type Range struct { // Max: The maximum of the population values. Max float64 `json:"max,omitempty"` // Min: The minimum of the population values. Min float64 `json:"min,omitempty"` // ForceSendFields is a list of field names (e.g. "Max") 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:"-"` // NullFields is a list of field names (e.g. "Max") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Range: The range of the population values.
func (*Range) MarshalJSON ¶
func (*Range) UnmarshalJSON ¶
type ResourceGroup ¶
type ResourceGroup struct { // GroupId: The group of resources being monitored. Should be only the // group_id, not projects/<project_id>/groups/<group_id>. GroupId string `json:"groupId,omitempty"` // ResourceType: The resource type of the group members. // // Possible values: // "RESOURCE_TYPE_UNSPECIFIED" - Default value (not valid). // "INSTANCE" - A group of instances (could be either GCE or AWS_EC2). // "AWS_ELB_LOAD_BALANCER" - A group of AWS load balancers. ResourceType string `json:"resourceType,omitempty"` // ForceSendFields is a list of field names (e.g. "GroupId") 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:"-"` // NullFields is a list of field names (e.g. "GroupId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ResourceGroup: The resource submessage for group checks. It can be used instead of a monitored resource, when multiple resources are being monitored.
func (*ResourceGroup) MarshalJSON ¶
func (s *ResourceGroup) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Projects *ProjectsService UptimeCheckIps *UptimeCheckIpsService // contains filtered or unexported fields }
type SourceContext ¶
type SourceContext struct { // FileName: The path-qualified name of the .proto file that contained // the associated protobuf element. For example: // "google/protobuf/source_context.proto". FileName string `json:"fileName,omitempty"` // ForceSendFields is a list of field names (e.g. "FileName") 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:"-"` // NullFields is a list of field names (e.g. "FileName") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SourceContext: SourceContext represents information about the source of a protobuf element, like the file in which it is defined.
func (*SourceContext) MarshalJSON ¶
func (s *SourceContext) MarshalJSON() ([]byte, error)
type Status ¶
type Status struct { // Code: The status code, which should be an enum value of // google.rpc.Code. Code int64 `json:"code,omitempty"` // Details: A list of messages that carry the error details. There is a // common set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` // Message: A developer-facing error message, which should be in // English. Any user-facing error message should be localized and sent // in the google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") 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:"-"` // NullFields is a list of field names (e.g. "Code") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Status: The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). The error model is designed to be: Simple to use and understand for most users Flexible enough to meet unexpected needsOverviewThe Status message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers understand and resolve the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package google.rpc that can be used for common error conditions.Language mappingThe Status message is the logical representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model include: Partial errors. If a service needs to return partial errors to the client, it may embed the Status in the normal response to indicate the partial errors. Workflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting. Batch operations. If a client uses batch request and batch response, the Status message should be used directly inside batch response, one for each error sub-response. Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the Status message. Logging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.
func (*Status) MarshalJSON ¶
type TcpCheck ¶
type TcpCheck struct { // Port: The port to the page to run the check against. Will be combined // with host (specified within the MonitoredResource) to construct the // full URL. Required. Port int64 `json:"port,omitempty"` // ForceSendFields is a list of field names (e.g. "Port") 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:"-"` // NullFields is a list of field names (e.g. "Port") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TcpCheck: Information required for a TCP uptime check request.
func (*TcpCheck) MarshalJSON ¶
type TimeInterval ¶
type TimeInterval struct { // EndTime: Required. The end of the time interval. EndTime string `json:"endTime,omitempty"` // StartTime: Optional. The beginning of the time interval. The default // value for the start time is the end time. The start time must not be // later than the end time. StartTime string `json:"startTime,omitempty"` // ForceSendFields is a list of field names (e.g. "EndTime") 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:"-"` // NullFields is a list of field names (e.g. "EndTime") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TimeInterval: A time interval extending just after a start time through an end time. If the start time is the same as the end time, then the interval represents a single point in time.
func (*TimeInterval) MarshalJSON ¶
func (s *TimeInterval) MarshalJSON() ([]byte, error)
type TimeSeries ¶
type TimeSeries struct { // Metric: The associated metric. A fully-specified metric used to // identify the time series. Metric *Metric `json:"metric,omitempty"` // MetricKind: The metric kind of the time series. When listing time // series, this metric kind might be different from the metric kind of // the associated metric if this time series is an alignment or // reduction of other time series.When creating a time series, this // field is optional. If present, it must be the same as the metric kind // of the associated metric. If the associated metric's descriptor must // be auto-created, then this field specifies the metric kind of the new // descriptor and must be either GAUGE (the default) or CUMULATIVE. // // Possible values: // "METRIC_KIND_UNSPECIFIED" - Do not use this default value. // "GAUGE" - An instantaneous measurement of a value. // "DELTA" - The change in a value during a time interval. // "CUMULATIVE" - A value accumulated over a time interval. Cumulative // measurements in a time series should have the same start time and // increasing end times, until an event resets the cumulative value to // zero and sets a new start time for the following points. MetricKind string `json:"metricKind,omitempty"` // Points: The data points of this time series. When listing time // series, the order of the points is specified by the list method.When // creating a time series, this field must contain exactly one point and // the point's type must be the same as the value type of the associated // metric. If the associated metric's descriptor must be auto-created, // then the value type of the descriptor is determined by the point's // type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION. Points []*Point `json:"points,omitempty"` // Resource: The associated monitored resource. Custom metrics can use // only certain monitored resource types in their time series data. Resource *MonitoredResource `json:"resource,omitempty"` // ValueType: The value type of the time series. When listing time // series, this value type might be different from the value type of the // associated metric if this time series is an alignment or reduction of // other time series.When creating a time series, this field is // optional. If present, it must be the same as the type of the data in // the points field. // // Possible values: // "VALUE_TYPE_UNSPECIFIED" - Do not use this default value. // "BOOL" - The value is a boolean. This value type can be used only // if the metric kind is GAUGE. // "INT64" - The value is a signed 64-bit integer. // "DOUBLE" - The value is a double precision floating point number. // "STRING" - The value is a text string. This value type can be used // only if the metric kind is GAUGE. // "DISTRIBUTION" - The value is a Distribution. // "MONEY" - The value is money. ValueType string `json:"valueType,omitempty"` // ForceSendFields is a list of field names (e.g. "Metric") 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:"-"` // NullFields is a list of field names (e.g. "Metric") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TimeSeries: A collection of data points that describes the time-varying values of a metric. A time series is identified by a combination of a fully-specified monitored resource and a fully-specified metric. This type is used for both listing and creating time series.
func (*TimeSeries) MarshalJSON ¶
func (s *TimeSeries) MarshalJSON() ([]byte, error)
type Type ¶
type Type struct { // Fields: The list of fields. Fields []*Field `json:"fields,omitempty"` // Name: The fully qualified message name. Name string `json:"name,omitempty"` // Oneofs: The list of types appearing in oneof definitions in this // type. Oneofs []string `json:"oneofs,omitempty"` // Options: The protocol buffer options. Options []*Option `json:"options,omitempty"` // SourceContext: The source context. SourceContext *SourceContext `json:"sourceContext,omitempty"` // Syntax: The source syntax. // // Possible values: // "SYNTAX_PROTO2" - Syntax proto2. // "SYNTAX_PROTO3" - Syntax proto3. Syntax string `json:"syntax,omitempty"` // ForceSendFields is a list of field names (e.g. "Fields") 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:"-"` // NullFields is a list of field names (e.g. "Fields") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Type: A protocol buffer message type.
func (*Type) MarshalJSON ¶
type TypedValue ¶
type TypedValue struct { // BoolValue: A Boolean value: true or false. BoolValue *bool `json:"boolValue,omitempty"` // DistributionValue: A distribution value. DistributionValue *Distribution `json:"distributionValue,omitempty"` // DoubleValue: A 64-bit double-precision floating-point number. Its // magnitude is approximately ±10<sup>±300</sup> and it // has 16 significant digits of precision. DoubleValue *float64 `json:"doubleValue,omitempty"` // Int64Value: A 64-bit integer. Its range is approximately // ±9.2x10<sup>18</sup>. Int64Value *int64 `json:"int64Value,omitempty,string"` // StringValue: A variable-length string value. StringValue *string `json:"stringValue,omitempty"` // ForceSendFields is a list of field names (e.g. "BoolValue") 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:"-"` // NullFields is a list of field names (e.g. "BoolValue") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TypedValue: A single strongly-typed value.
func (*TypedValue) MarshalJSON ¶
func (s *TypedValue) MarshalJSON() ([]byte, error)
func (*TypedValue) UnmarshalJSON ¶
func (s *TypedValue) UnmarshalJSON(data []byte) error
type UptimeCheckConfig ¶
type UptimeCheckConfig struct { // ContentMatchers: The expected content on the page the check is run // against. Currently, only the first entry in the list is supported, // and other entries will be ignored. The server will look for an exact // match of the string in the page response's content. This field is // optional and should only be specified if a content match is required. ContentMatchers []*ContentMatcher `json:"contentMatchers,omitempty"` // DisplayName: A human-friendly name for the uptime check // configuration. The display name should be unique within a Stackdriver // Account in order to make it easier to identify; however, uniqueness // is not enforced. Required. DisplayName string `json:"displayName,omitempty"` // HttpCheck: Contains information needed to make an HTTP or HTTPS // check. HttpCheck *HttpCheck `json:"httpCheck,omitempty"` // MonitoredResource: The monitored resource associated with the // configuration. MonitoredResource *MonitoredResource `json:"monitoredResource,omitempty"` // Name: A unique resource name for this UptimeCheckConfig. The format // is:projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID].This // field should be omitted when creating the uptime check configuration; // on create, the resource name is assigned by the server and included // in the response. Name string `json:"name,omitempty"` // Period: How often the uptime check is performed. Currently, only 1, // 5, 10, and 15 minutes are supported. Required. Period string `json:"period,omitempty"` // ResourceGroup: The group resource associated with the configuration. ResourceGroup *ResourceGroup `json:"resourceGroup,omitempty"` // SelectedRegions: The list of regions from which the check will be // run. If this field is specified, enough regions to include a minimum // of 3 locations must be provided, or an error message is returned. Not // specifying this field will result in uptime checks running from all // regions. // // Possible values: // "REGION_UNSPECIFIED" - Default value if no region is specified. // Will result in uptime checks running from all regions. // "USA" - Allows checks to run from locations within the United // States of America. // "EUROPE" - Allows checks to run from locations within the continent // of Europe. // "SOUTH_AMERICA" - Allows checks to run from locations within the // continent of South America. // "ASIA_PACIFIC" - Allows checks to run from locations within the // Asia Pacific area (ex: Singapore). SelectedRegions []string `json:"selectedRegions,omitempty"` // TcpCheck: Contains information needed to make a TCP check. TcpCheck *TcpCheck `json:"tcpCheck,omitempty"` // Timeout: The maximum amount of time to wait for the request to // complete (must be between 1 and 60 seconds). Required. Timeout string `json:"timeout,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ContentMatchers") 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:"-"` // NullFields is a list of field names (e.g. "ContentMatchers") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
UptimeCheckConfig: This message configures which resources and services to monitor for availability.
func (*UptimeCheckConfig) MarshalJSON ¶
func (s *UptimeCheckConfig) MarshalJSON() ([]byte, error)
type UptimeCheckIp ¶
type UptimeCheckIp struct { // IpAddress: The IP address from which the uptime check originates. // This is a full IP address (not an IP address range). Most IP // addresses, as of this publication, are in IPv4 format; however, one // should not rely on the IP addresses being in IPv4 format indefinitely // and should support interpreting this field in either IPv4 or IPv6 // format. IpAddress string `json:"ipAddress,omitempty"` // Location: A more specific location within the region that typically // encodes a particular city/town/metro (and its containing // state/province or country) within the broader umbrella region // category. Location string `json:"location,omitempty"` // Region: A broad region category in which the IP address is located. // // Possible values: // "REGION_UNSPECIFIED" - Default value if no region is specified. // Will result in uptime checks running from all regions. // "USA" - Allows checks to run from locations within the United // States of America. // "EUROPE" - Allows checks to run from locations within the continent // of Europe. // "SOUTH_AMERICA" - Allows checks to run from locations within the // continent of South America. // "ASIA_PACIFIC" - Allows checks to run from locations within the // Asia Pacific area (ex: Singapore). Region string `json:"region,omitempty"` // ForceSendFields is a list of field names (e.g. "IpAddress") 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:"-"` // NullFields is a list of field names (e.g. "IpAddress") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
UptimeCheckIp: Contains the region, location, and list of IP addresses where checkers in the location run from.
func (*UptimeCheckIp) MarshalJSON ¶
func (s *UptimeCheckIp) MarshalJSON() ([]byte, error)
type UptimeCheckIpsListCall ¶
type UptimeCheckIpsListCall struct {
// contains filtered or unexported fields
}
func (*UptimeCheckIpsListCall) Context ¶
func (c *UptimeCheckIpsListCall) Context(ctx context.Context) *UptimeCheckIpsListCall
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 (*UptimeCheckIpsListCall) Do ¶
func (c *UptimeCheckIpsListCall) Do(opts ...googleapi.CallOption) (*ListUptimeCheckIpsResponse, error)
Do executes the "monitoring.uptimeCheckIps.list" call. Exactly one of *ListUptimeCheckIpsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListUptimeCheckIpsResponse.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 (*UptimeCheckIpsListCall) Fields ¶
func (c *UptimeCheckIpsListCall) Fields(s ...googleapi.Field) *UptimeCheckIpsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*UptimeCheckIpsListCall) Header ¶
func (c *UptimeCheckIpsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*UptimeCheckIpsListCall) IfNoneMatch ¶
func (c *UptimeCheckIpsListCall) IfNoneMatch(entityTag string) *UptimeCheckIpsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*UptimeCheckIpsListCall) PageSize ¶
func (c *UptimeCheckIpsListCall) PageSize(pageSize int64) *UptimeCheckIpsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return in a single response. The server may further constrain the maximum number of results returned in a single page. If the page_size is <=0, the server will decide the number of results to be returned. NOTE: this field is not yet implemented
func (*UptimeCheckIpsListCall) PageToken ¶
func (c *UptimeCheckIpsListCall) PageToken(pageToken string) *UptimeCheckIpsListCall
PageToken sets the optional parameter "pageToken": If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return more results from the previous method call. NOTE: this field is not yet implemented
func (*UptimeCheckIpsListCall) Pages ¶
func (c *UptimeCheckIpsListCall) Pages(ctx context.Context, f func(*ListUptimeCheckIpsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type UptimeCheckIpsService ¶
type UptimeCheckIpsService struct {
// contains filtered or unexported fields
}
func NewUptimeCheckIpsService ¶
func NewUptimeCheckIpsService(s *Service) *UptimeCheckIpsService
func (*UptimeCheckIpsService) List ¶
func (r *UptimeCheckIpsService) List() *UptimeCheckIpsListCall
List: Returns the list of IPs that checkers run from