|
1 | 1 | Python Client for Stackdriver Error Reporting |
2 | 2 | ============================================= |
3 | 3 |
|
4 | | - Python idiomatic client for `Stackdriver Error Reporting`_ |
5 | | - |
6 | | -.. _Stackdriver Error Reporting: https://cloud.google.com/error-reporting/ |
7 | | - |
8 | 4 | |pypi| |versions| |
9 | 5 |
|
10 | | -- `Documentation`_ |
| 6 | +The Stackdriver `Error Reporting`_ API counts, analyzes and aggregates the |
| 7 | +crashes in your running cloud services. A centralized error management |
| 8 | +interface displays the results with sorting and filtering capabilities. A |
| 9 | +dedicated view shows the error details: time chart, occurrences, affected user |
| 10 | +count, first and last seen dates and a cleaned exception stack trace. Opt-in |
| 11 | +to receive email and mobile alerts on new errors. |
| 12 | + |
| 13 | +- `Client Library Documentation`_ |
| 14 | +- `Product Documentation`_ |
11 | 15 |
|
12 | | -.. _Documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/error-reporting/usage.html |
| 16 | +.. _Error Reporting: https://cloud.google.com/error-reporting/ |
| 17 | +.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/error-reporting/usage.html |
| 18 | +.. _Product Documentation: https://cloud.google.com/error-reporting/reference/ |
| 19 | +.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-error-reporting.svg |
| 20 | + :target: https://pypi.org/project/google-cloud-error-reporting/ |
| 21 | +.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-error-reporting.svg |
| 22 | + :target: https://pypi.org/project/google-cloud-error-reporting/ |
13 | 23 |
|
14 | 24 | Quick Start |
15 | 25 | ----------- |
16 | 26 |
|
17 | | -.. code-block:: console |
| 27 | +In order to use this library, you first need to go through the following steps: |
18 | 28 |
|
19 | | - $ pip install --upgrade google-cloud-error-reporting |
| 29 | +1. `Select or create a Cloud Platform project.`_ |
| 30 | +2. `Enable billing for your project.`_ |
| 31 | +3. `Enable the Google Cloud Datastore API.`_ |
| 32 | +4. `Setup Authentication.`_ |
20 | 33 |
|
21 | | -For more information on setting up your Python development environment, |
22 | | -such as installing ``pip`` and ``virtualenv`` on your system, please refer |
23 | | -to `Python Development Environment Setup Guide`_ for Google Cloud Platform. |
| 34 | +.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project |
| 35 | +.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project |
| 36 | +.. _Enable the Google Cloud Datastore API.: https://cloud.google.com/error-reporting |
| 37 | +.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/latest/core/auth.html |
24 | 38 |
|
25 | | -.. _Python Development Environment Setup Guide: https://cloud.google.com/python/setup |
| 39 | +Installation |
| 40 | +~~~~~~~~~~~~ |
26 | 41 |
|
27 | | -Authentication |
28 | | --------------- |
| 42 | +Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to |
| 43 | +create isolated Python environments. The basic problem it addresses is one of |
| 44 | +dependencies and versions, and indirectly permissions. |
29 | 45 |
|
30 | | -With ``google-cloud-python`` we try to make authentication as painless as |
31 | | -possible. Check out the `Authentication section`_ in our documentation to |
32 | | -learn more. You may also find the `authentication document`_ shared by all |
33 | | -the ``google-cloud-*`` libraries to be helpful. |
| 46 | +With `virtualenv`_, it's possible to install this library without needing system |
| 47 | +install permissions, and without clashing with the installed system |
| 48 | +dependencies. |
34 | 49 |
|
35 | | -.. _Authentication section: https://google-cloud-python.readthedocs.io/en/latest/core/auth.html |
36 | | -.. _authentication document: https://github.com/GoogleCloudPlatform/google-cloud-common/tree/master/authentication |
| 50 | +.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ |
37 | 51 |
|
38 | | -Using the API |
39 | | -------------- |
40 | 52 |
|
41 | | -The Stackdriver `Error Reporting`_ API (`Error Reporting API docs`_) |
42 | | -counts, analyzes and aggregates the crashes in your running cloud services. |
43 | | -A centralized error management interface displays the results with sorting |
44 | | -and filtering capabilities. A dedicated view shows the error details: time |
45 | | -chart, occurrences, affected user count, first and last seen dates and a |
46 | | -cleaned exception stack trace. Opt-in to receive email and mobile alerts |
47 | | -on new errors. |
| 53 | +Mac/Linux |
| 54 | +^^^^^^^^^ |
48 | 55 |
|
49 | | -.. _Error Reporting: https://cloud.google.com/error-reporting/ |
50 | | -.. _Error Reporting API docs: https://cloud.google.com/error-reporting/reference/ |
| 56 | +.. code-block:: console |
51 | 57 |
|
52 | | -See the ``google-cloud-python`` API Error Reporting `Documentation`_ to learn |
53 | | -how to get started using this library. |
| 58 | + pip install virtualenv |
| 59 | + virtualenv <your-env> |
| 60 | + source <your-env>/bin/activate |
| 61 | + <your-env>/bin/pip install google-cloud-error-reporting |
54 | 62 |
|
55 | | -.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-error-reporting.svg |
56 | | - :target: https://pypi.org/project/google-cloud-error-reporting/ |
57 | | -.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-error-reporting.svg |
58 | | - :target: https://pypi.org/project/google-cloud-error-reporting/ |
| 63 | +
|
| 64 | +Windows |
| 65 | +^^^^^^^ |
| 66 | + |
| 67 | +.. code-block:: console |
| 68 | +
|
| 69 | + pip install virtualenv |
| 70 | + virtualenv <your-env> |
| 71 | + <your-env>\Scripts\activate |
| 72 | + <your-env>\Scripts\pip.exe install google-cloud-error-reporting |
| 73 | +
|
| 74 | +
|
| 75 | +
|
| 76 | +Next Steps |
| 77 | +~~~~~~~~~~ |
| 78 | + |
| 79 | +- Read the `Client Library Documentation`_ for Google Cloud Datastore API |
| 80 | + API to see other available methods on the client. |
| 81 | +- Read the `Product documentation`_ to learn |
| 82 | + more about the product and see How-to Guides. |
0 commit comments