|
14 | 14 |
|
15 | 15 | """Google Stackdriver Monitoring API wrapper.""" |
16 | 16 |
|
17 | | -try: |
18 | | - import pkg_resources |
19 | | - pkg_resources.declare_namespace(__name__) |
20 | | -except ImportError: |
21 | | - import pkgutil |
22 | | - __path__ = pkgutil.extend_path(__path__, __name__) |
| 17 | +from google.cloud.monitoring.client import Client |
| 18 | +from google.cloud.monitoring.connection import Connection |
| 19 | +from google.cloud.monitoring.group import Group |
| 20 | +from google.cloud.monitoring.label import LabelDescriptor |
| 21 | +from google.cloud.monitoring.label import LabelValueType |
| 22 | +from google.cloud.monitoring.metric import Metric |
| 23 | +from google.cloud.monitoring.metric import MetricDescriptor |
| 24 | +from google.cloud.monitoring.metric import MetricKind |
| 25 | +from google.cloud.monitoring.metric import ValueType |
| 26 | +from google.cloud.monitoring.query import Aligner |
| 27 | +from google.cloud.monitoring.query import Query |
| 28 | +from google.cloud.monitoring.query import Reducer |
| 29 | +from google.cloud.monitoring.resource import Resource |
| 30 | +from google.cloud.monitoring.resource import ResourceDescriptor |
| 31 | +from google.cloud.monitoring.timeseries import Point |
| 32 | +from google.cloud.monitoring.timeseries import TimeSeries |
| 33 | + |
| 34 | +__all__ = ( |
| 35 | + 'Client', |
| 36 | + 'Connection', |
| 37 | + 'Group', |
| 38 | + 'LabelDescriptor', 'LabelValueType', |
| 39 | + 'Metric', 'MetricDescriptor', 'MetricKind', 'ValueType', |
| 40 | + 'Aligner', 'Query', 'Reducer', |
| 41 | + 'Resource', 'ResourceDescriptor', |
| 42 | + 'Point', 'TimeSeries', |
| 43 | + 'SCOPE', |
| 44 | +) |
| 45 | + |
| 46 | + |
| 47 | +SCOPE = Connection.SCOPE |
0 commit comments