Пример #1
0
    def metrics_api(self):
        """Helper for log metric-related API calls.

        See
        https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics
        """
        if self._metrics_api is None:
            if self._use_grpc:
                self._metrics_api = make_gax_metrics_api(self)
            else:
                self._metrics_api = JSONMetricsAPI(self)
        return self._metrics_api
Пример #2
0
    def metrics_api(self):
        """Helper for log metric-related API calls.

        See:
        https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.metrics
        """
        if self._metrics_api is None:
            if self._use_gax:
                self._metrics_api = make_gax_metrics_api(self)
            else:
                self._metrics_api = JSONMetricsAPI(self)
        return self._metrics_api
 def _call_fut(self, client):
     from google.cloud.logging._gax import make_gax_metrics_api
     return make_gax_metrics_api(client)
Пример #4
0
 def _call_fut(self, client):
     from google.cloud.logging._gax import make_gax_metrics_api
     return make_gax_metrics_api(client)