GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Mismatch between 'CreateMetricRequest' and 'MetricsServiceV2Api.create_metric' · Issue #1891 · googleapis/google-cloud-python Closed Labels api: loggingIssues related to the Cloud Logging API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. Description@bjwatson, @tbetbetbe PTAL. Needs to have #1888 merged here; after that, reproduce via: $ git clone [email protected]:GoogleCloudPlatform/gcloud $ cd gcloud $ tox -e system-tests --notest $ .tox/system-tests/bin/python and then: >>> from google.logging.v2.metrics_service_v2_api import MetricsServiceV2Api >>> from gcloud.logging._gax import _MetricssAPI >>> from gcloud.logging import Client >>> client = Client() >>> client._metrics_api = _MetricssAPI(MetricsServiceV2Api()) >>> metric = client.metric('gcloud-issue-xxxx-metric', 'logName=gcloud-issue-xxxx') >>> metric.exists() False >>> metric.create() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/tseaver/projects/agendaless/Google/src/gcloud-python/gcloud/logging/metric.py", line 113, in create self.project, self.name, self.filter_, self.description) File "/home/tseaver/projects/agendaless/Google/src/gcloud-python/gcloud/logging/_gax.py", line 322, in metric_create self._gax_api.create_log_metric(parent, metric_pb, options) File "/home/tseaver/projects/agendaless/Google/src/gcloud-python/.tox/py27/lib/python2.7/site-packages/google/logging/v2/metrics_service_v2_api.py", line 302, in create_log_metric metric=metric) File "/home/tseaver/projects/agendaless/Google/src/gcloud-python/.tox/py27/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 496, in init field = _GetFieldByName(message_descriptor, field_name) File "/home/tseaver/projects/agendaless/Google/src/gcloud-python/.tox/py27/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 560, in _GetFieldByName (message_descriptor.name, field_name)) ValueError: Protocol message CreateLogMetricRequest has no "parent" field. Clearly similar to #1890. Activity
MetadataMetadataAssigneesLabelsapi: loggingIssues related to the Cloud Logging API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |