ErrorStatsServiceClient(*, credentials: google.auth.credentials.Credentials = None, transport: Union[str, google.cloud.errorreporting_v1beta1.services.error_stats_service.transports.base.ErrorStatsServiceTransport] = None, client_options: <module 'google.api_core.client_options' from '/workspace/python-error-reporting/.nox/docfx/lib/python3.9/site-packages/google/api_core/client_options.py'> = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo = <google.api_core.gapic_v1.client_info.ClientInfo object>)
An API for retrieving and managing error statistics as well as data for individual events.
Methods
ErrorStatsServiceClient
ErrorStatsServiceClient(*, credentials: google.auth.credentials.Credentials = None, transport: Union[str, google.cloud.errorreporting_v1beta1.services.error_stats_service.transports.base.ErrorStatsServiceTransport] = None, client_options: <module 'google.api_core.client_options' from '/workspace/python-error-reporting/.nox/docfx/lib/python3.9/site-packages/google/api_core/client_options.py'> = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo = <google.api_core.gapic_v1.client_info.ClientInfo object>)
Instantiate the error stats service client.
Name | Description |
credentials |
Optional[google.auth.credentials.Credentials]
The authorization credentials to attach to requests. These credentials identify the application to the service; if none are specified, the client will attempt to ascertain the credentials from the environment. |
transport |
Union[str,
The transport to use. If set to None, a transport is chosen automatically. |
client_options |
ClientOptions
Custom options for the client. It won't take effect if a |
client_info |
google.api_core.gapic_v1.client_info.ClientInfo
The client info used to send a user-agent string along with API requests. If |
Type | Description |
google.auth.exceptions.MutualTLSChannelError | If mutual TLS transport creation failed for any reason. |
delete_events
delete_events(request: Optional[google.cloud.errorreporting_v1beta1.types.error_stats_service.DeleteEventsRequest] = None, *, project_name: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Deletes all error events of a given project.
Name | Description |
request |
The request object. Deletes all events in the project. |
project_name |
Required. The resource name of the Google Cloud Platform project. Written as |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
| Response message for deleting error events. |
from_service_account_file
from_service_account_file(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
Name | Description |
filename |
str
The path to the service account private key json file. |
Type | Description |
{@api.name} | The constructed client. |
from_service_account_json
from_service_account_json(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
Name | Description |
filename |
str
The path to the service account private key json file. |
Type | Description |
{@api.name} | The constructed client. |
list_events
list_events(request: Optional[google.cloud.errorreporting_v1beta1.types.error_stats_service.ListEventsRequest] = None, *, project_name: Optional[str] = None, group_id: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Lists the specified events.
Name | Description |
request |
The request object. Specifies a set of error events to return. |
project_name |
Required. The resource name of the Google Cloud Platform project. Written as |
group_id |
Required. The group for which events shall be returned. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
| Contains a set of requested error events. Iterating over this object will yield results and resolve additional pages automatically. |
list_group_stats
list_group_stats(request: Optional[google.cloud.errorreporting_v1beta1.types.error_stats_service.ListGroupStatsRequest] = None, *, project_name: Optional[str] = None, time_range: Optional[google.cloud.errorreporting_v1beta1.types.error_stats_service.QueryTimeRange] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Lists the specified groups.
Name | Description |
request |
The request object. Specifies a set of |
project_name |
Required. The resource name of the Google Cloud Platform project. Written as |
time_range |
Optional. List data for the given time range. If not set, a default time range is used. The field time_range_begin in the response will specify the beginning of this time range. Only ErrorGroupStats with a non-zero count in the given time range are returned, unless the request contains an explicit group_id list. If a group_id list is given, also ErrorGroupStats with zero occurrences are returned. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Type | Description |
| Contains a set of requested error group stats. Iterating over this object will yield results and resolve additional pages automatically. |