Package errorreporting
Overview ▹
Index ▹
func DefaultAuthScopes ¶
func DefaultAuthScopes() []string
func ErrorGroupGroupPath ¶
func ErrorGroupGroupPath(project, group string) string
ErrorGroupGroupPath returns the path for the group resource.
func ErrorStatsProjectPath ¶
func ErrorStatsProjectPath(project string) string
ErrorStatsProjectPath returns the path for the project resource.
func ReportErrorsProjectPath ¶
func ReportErrorsProjectPath(project string) string
ReportErrorsProjectPath returns the path for the project resource.
type ErrorEventIterator ¶
ErrorEventIterator manages a stream of *clouderrorreportingpb.ErrorEvent.
type ErrorEventIterator struct { // 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. InternalFetch func(pageSize int, pageToken string) (results []*clouderrorreportingpb.ErrorEvent, nextPageToken string, err error) // contains filtered or unexported fields }
func (*ErrorEventIterator) Next ¶
func (it *ErrorEventIterator) Next() (*clouderrorreportingpb.ErrorEvent, error)
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.
func (*ErrorEventIterator) PageInfo ¶
func (it *ErrorEventIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ErrorGroupCallOptions ¶
ErrorGroupCallOptions contains the retry settings for each method of ErrorGroupClient.
type ErrorGroupCallOptions struct { GetGroup []gax.CallOption UpdateGroup []gax.CallOption }
type ErrorGroupClient ¶
ErrorGroupClient is a client for interacting with Stackdriver Error Reporting API.
type ErrorGroupClient struct { // The call options for this service. CallOptions *ErrorGroupCallOptions // contains filtered or unexported fields }
func NewErrorGroupClient ¶
func NewErrorGroupClient(ctx context.Context, opts ...option.ClientOption) (*ErrorGroupClient, error)
NewErrorGroupClient creates a new error group service client.
Service for retrieving and updating individual error groups.
▹ Example
func (*ErrorGroupClient) Close ¶
func (c *ErrorGroupClient) Close() error
Close closes the connection to the API service. The user should invoke this when the client is no longer required.
func (*ErrorGroupClient) Connection ¶
func (c *ErrorGroupClient) Connection() *grpc.ClientConn
Connection returns the client's connection to the API service.
func (*ErrorGroupClient) GetGroup ¶
func (c *ErrorGroupClient) GetGroup(ctx context.Context, req *clouderrorreportingpb.GetGroupRequest, opts ...gax.CallOption) (*clouderrorreportingpb.ErrorGroup, error)
GetGroup get the specified group.
▹ Example
func (*ErrorGroupClient) SetGoogleClientInfo ¶
func (c *ErrorGroupClient) SetGoogleClientInfo(keyval ...string)
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.
func (*ErrorGroupClient) UpdateGroup ¶
func (c *ErrorGroupClient) UpdateGroup(ctx context.Context, req *clouderrorreportingpb.UpdateGroupRequest, opts ...gax.CallOption) (*clouderrorreportingpb.ErrorGroup, error)
UpdateGroup replace the data for the specified group. Fails if the group does not exist.
▹ Example
type ErrorGroupStatsIterator ¶
ErrorGroupStatsIterator manages a stream of *clouderrorreportingpb.ErrorGroupStats.
type ErrorGroupStatsIterator struct { // 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. InternalFetch func(pageSize int, pageToken string) (results []*clouderrorreportingpb.ErrorGroupStats, nextPageToken string, err error) // contains filtered or unexported fields }
func (*ErrorGroupStatsIterator) Next ¶
func (it *ErrorGroupStatsIterator) Next() (*clouderrorreportingpb.ErrorGroupStats, error)
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.
func (*ErrorGroupStatsIterator) PageInfo ¶
func (it *ErrorGroupStatsIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ErrorStatsCallOptions ¶
ErrorStatsCallOptions contains the retry settings for each method of ErrorStatsClient.
type ErrorStatsCallOptions struct { ListGroupStats []gax.CallOption ListEvents []gax.CallOption DeleteEvents []gax.CallOption }
type ErrorStatsClient ¶
ErrorStatsClient is a client for interacting with Stackdriver Error Reporting API.
type ErrorStatsClient struct { // The call options for this service. CallOptions *ErrorStatsCallOptions // contains filtered or unexported fields }
func NewErrorStatsClient ¶
func NewErrorStatsClient(ctx context.Context, opts ...option.ClientOption) (*ErrorStatsClient, error)
NewErrorStatsClient creates a new error stats service client.
An API for retrieving and managing error statistics as well as data for individual events.
▹ Example
func (*ErrorStatsClient) Close ¶
func (c *ErrorStatsClient) Close() error
Close closes the connection to the API service. The user should invoke this when the client is no longer required.
func (*ErrorStatsClient) Connection ¶
func (c *ErrorStatsClient) Connection() *grpc.ClientConn
Connection returns the client's connection to the API service.
func (*ErrorStatsClient) DeleteEvents ¶
func (c *ErrorStatsClient) DeleteEvents(ctx context.Context, req *clouderrorreportingpb.DeleteEventsRequest, opts ...gax.CallOption) (*clouderrorreportingpb.DeleteEventsResponse, error)
DeleteEvents deletes all error events of a given project.
▹ Example
func (*ErrorStatsClient) ListEvents ¶
func (c *ErrorStatsClient) ListEvents(ctx context.Context, req *clouderrorreportingpb.ListEventsRequest, opts ...gax.CallOption) *ErrorEventIterator
ListEvents lists the specified events.
▹ Example
func (*ErrorStatsClient) ListGroupStats ¶
func (c *ErrorStatsClient) ListGroupStats(ctx context.Context, req *clouderrorreportingpb.ListGroupStatsRequest, opts ...gax.CallOption) *ErrorGroupStatsIterator
ListGroupStats lists the specified groups.
▹ Example
func (*ErrorStatsClient) SetGoogleClientInfo ¶
func (c *ErrorStatsClient) SetGoogleClientInfo(keyval ...string)
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.
type ReportErrorsCallOptions ¶
ReportErrorsCallOptions contains the retry settings for each method of ReportErrorsClient.
type ReportErrorsCallOptions struct { ReportErrorEvent []gax.CallOption }
type ReportErrorsClient ¶
ReportErrorsClient is a client for interacting with Stackdriver Error Reporting API.
type ReportErrorsClient struct { // The call options for this service. CallOptions *ReportErrorsCallOptions // contains filtered or unexported fields }
func NewReportErrorsClient ¶
func NewReportErrorsClient(ctx context.Context, opts ...option.ClientOption) (*ReportErrorsClient, error)
NewReportErrorsClient creates a new report errors service client.
An API for reporting error events.
▹ Example
func (*ReportErrorsClient) Close ¶
func (c *ReportErrorsClient) Close() error
Close closes the connection to the API service. The user should invoke this when the client is no longer required.
func (*ReportErrorsClient) Connection ¶
func (c *ReportErrorsClient) Connection() *grpc.ClientConn
Connection returns the client's connection to the API service.
func (*ReportErrorsClient) ReportErrorEvent ¶
func (c *ReportErrorsClient) ReportErrorEvent(ctx context.Context, req *clouderrorreportingpb.ReportErrorEventRequest, opts ...gax.CallOption) (*clouderrorreportingpb.ReportErrorEventResponse, error)
ReportErrorEvent report an individual error event.
This endpoint accepts <strong>either</strong> an OAuth token, <strong>or</strong> an <a href="https://support.google.com/cloud/answer/6158862">API key</a> for authentication. To use an API key, append it to the URL as the value of a `key` parameter. For example: <pre>POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456</pre>
▹ Example
func (*ReportErrorsClient) SetGoogleClientInfo ¶
func (c *ReportErrorsClient) SetGoogleClientInfo(keyval ...string)
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.