googlecodelabs / gcp-marketplace-integrated-saas

Apache License 2.0
20 stars 22 forks source link

Return a string instead of an int in _get_usage_for_product #3

Closed deci-ftw closed 5 years ago

deci-ftw commented 5 years ago

Service control will return a 200 OK if an int64Value is passed in as an int, but the usage will not actually counted. Changing this to be a string fixes that.

Reference: https://cloud.google.com/service-infrastructure/docs/service-control/reference/rest/v1/MetricValueSet#MetricValue.FIELDS.int64_value