Involved Source Files
Package errorreporting is an auto-generated package for the
Stackdriver Error Reporting API.
Groups and counts similar errors from cloud services and applications,
reports new errors, and provides access to error groups and their
associated errors.
NOTE: This package is in beta. It is not stable, and may be subject to changes.
Use of Context
The ctx passed to NewClient is used for authentication requests and
for creating the underlying connection, but is not used for subsequent calls.
Individual methods on the client use the ctx given to them.
To close the open connection, use the Close() method.
For information about setting deadlines, reusing contexts, and more
please visit pkg.go.dev/cloud.google.com/go.
error_group_client.goerror_stats_client.goinfo.gopath_funcs.goreport_errors_client.go
Package-Level Type Names (total 10, in which 8 are exported)
/* sort exporteds by: | */
ErrorEventIterator manages a stream of *clouderrorreportingpb.ErrorEvent.
InternalFetch is for use by the Google Cloud Libraries only.
It is not part of the stable interface of this package.
InternalFetch returns results from a single call to the underlying RPC.
The number of results is no greater than pageSize.
If there are no more results, nextPageToken is empty and err is nil.
Response is the raw response for the current page.
It must be cast to the RPC response type.
Calling Next() or InternalFetch() updates this value.
items[]*clouderrorreportingpb.ErrorEventnextFuncfunc() errorpageInfo*iterator.PageInfo
Next returns the next result. Its second return value is iterator.Done if there are no more
results. Once Next returns Done, all subsequent calls will return Done.
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
(*T) bufLen() int(*T) takeBuf() interface{}
*T : google.golang.org/api/iterator.Pageable
func (*ErrorStatsClient).ListEvents(ctx context.Context, req *clouderrorreportingpb.ListEventsRequest, opts ...gax.CallOption) *ErrorEventIterator
ErrorGroupClient is a client for interacting with Stackdriver Error Reporting API.
Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
The call options for this service.
Connection pool of gRPC connections to the service.
flag to opt out of default deadlines via GOOGLE_API_GO_EXPERIMENTAL_DISABLE_DEFAULT_DEADLINE
The gRPC API client.
The x-goog-* metadata to be sent with each request.
Close closes the connection to the API service. The user should invoke this when
the client is no longer required.
Connection returns a connection to the API service.
Deprecated.
GetGroup get the specified group.
SetGoogleClientInfo sets the name and version of the application in
the `x-goog-api-client` header passed on each request. Also passes any
provided key-value pairs. Intended for use by Google-written clients.
Internal use only.
UpdateGroup replace the data for the specified group.
Fails if the group does not exist.
setGoogleClientInfo sets the name and version of the application in
the `x-goog-api-client` header passed on each request. Intended for
use by Google-written clients.
*T : io.Closer
func NewErrorGroupClient(ctx context.Context, opts ...option.ClientOption) (*ErrorGroupClient, error)
ErrorGroupStatsIterator manages a stream of *clouderrorreportingpb.ErrorGroupStats.
InternalFetch is for use by the Google Cloud Libraries only.
It is not part of the stable interface of this package.
InternalFetch returns results from a single call to the underlying RPC.
The number of results is no greater than pageSize.
If there are no more results, nextPageToken is empty and err is nil.
Response is the raw response for the current page.
It must be cast to the RPC response type.
Calling Next() or InternalFetch() updates this value.
items[]*clouderrorreportingpb.ErrorGroupStatsnextFuncfunc() errorpageInfo*iterator.PageInfo
Next returns the next result. Its second return value is iterator.Done if there are no more
results. Once Next returns Done, all subsequent calls will return Done.
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
(*T) bufLen() int(*T) takeBuf() interface{}
*T : google.golang.org/api/iterator.Pageable
func (*ErrorStatsClient).ListGroupStats(ctx context.Context, req *clouderrorreportingpb.ListGroupStatsRequest, opts ...gax.CallOption) *ErrorGroupStatsIterator
ErrorStatsClient is a client for interacting with Stackdriver Error Reporting API.
Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
The call options for this service.
Connection pool of gRPC connections to the service.
flag to opt out of default deadlines via GOOGLE_API_GO_EXPERIMENTAL_DISABLE_DEFAULT_DEADLINE
The gRPC API client.
The x-goog-* metadata to be sent with each request.
Close closes the connection to the API service. The user should invoke this when
the client is no longer required.
Connection returns a connection to the API service.
Deprecated.
DeleteEvents deletes all error events of a given project.
ListEvents lists the specified events.
ListGroupStats lists the specified groups.
SetGoogleClientInfo sets the name and version of the application in
the `x-goog-api-client` header passed on each request. Also passes any
provided key-value pairs. Intended for use by Google-written clients.
Internal use only.
setGoogleClientInfo sets the name and version of the application in
the `x-goog-api-client` header passed on each request. Intended for
use by Google-written clients.
*T : io.Closer
func NewErrorStatsClient(ctx context.Context, opts ...option.ClientOption) (*ErrorStatsClient, error)
ReportErrorsClient is a client for interacting with Stackdriver Error Reporting API.
Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
The call options for this service.
Connection pool of gRPC connections to the service.
flag to opt out of default deadlines via GOOGLE_API_GO_EXPERIMENTAL_DISABLE_DEFAULT_DEADLINE
The gRPC API client.
The x-goog-* metadata to be sent with each request.
Close closes the connection to the API service. The user should invoke this when
the client is no longer required.
Connection returns a connection to the API service.
Deprecated.
ReportErrorEvent report an individual error event.
This endpoint accepts either an OAuth token,
or an API key (at https://support.google.com/cloud/answer/6158862)
for authentication. To use an API key, append it to the URL as the value of
a key parameter. For example:
POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456
SetGoogleClientInfo sets the name and version of the application in
the `x-goog-api-client` header passed on each request. Also passes any
provided key-value pairs. Intended for use by Google-written clients.
Internal use only.
setGoogleClientInfo sets the name and version of the application in
the `x-goog-api-client` header passed on each request. Intended for
use by Google-written clients.
*T : io.Closer
*T : cloud.google.com/go/errorreporting.client
func NewReportErrorsClient(ctx context.Context, opts ...option.ClientOption) (*ReportErrorsClient, error)
For more information on implementing a client constructor hook, see
https://github.com/googleapis/google-cloud-go/wiki/Customizing-constructors.
Package-Level Functions (total 16, in which 7 are exported)
DefaultAuthScopes reports the default set of authentication scopes to use with this package.
ErrorStatsProjectPath returns the path for the project resource.
Deprecated: Use
fmt.Sprintf("projects/%s", project)
instead.
NewErrorGroupClient creates a new error group service client.
Service for retrieving and updating individual error groups.
NewErrorStatsClient creates a new error stats service client.
An API for retrieving and managing error statistics as well as data for
individual events.
NewReportErrorsClient creates a new report errors service client.
An API for reporting error events.
ReportErrorsProjectPath returns the path for the project resource.
Deprecated: Use
fmt.Sprintf("projects/%s", project)
instead.
ResultPath returns the path for the result resource.
Deprecated: Use
fmt.Sprintf("inspect/results/%s", result)
instead.
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.