Google-cloud-ruby: Monitoring Docs example for MetricServiceClient#list_time_series returns an error

Created on 16 May 2017  路  4Comments  路  Source: googleapis/google-cloud-ruby

The example for list_time_series doesn't create a valid TimeInterval so if you copy and paste the code you get an error.

monitoring gapic p2 feature request

Most helpful comment

@blowmage No. The GAPIC team is not currently maintaining method sample initialization code. This is essentially the same problem as https://github.com/GoogleCloudPlatform/google-cloud-ruby/issues/1866. Since like issues will affect nearly every GAPIC method, I don't think addressing them individually is sustainable. These changes will ultimately come from upstream and not at the google-cloud-ruby level, and I've created https://github.com/googleapis/toolkit/issues/1809 as an uber-issue.

All 4 comments

Configuring the initialization values for the variables in all the samples is outside the scope of the GAPIC team but, per offline discussion, assigning to myself to configure a single method as a proof-of-concept of how this will be done.

I did look into this and made an external doc demonstrating how to initialize these values. I'll leave this open until I've moved the example to the external googleapis/googleapis repo.

@omaray is now working on the general problem of how to do this for all GAPIC samples that need configuration.

@geigerj Have the docs been moved to the googleapis/googleapis repo yet? Can this issue be closed?

@blowmage No. The GAPIC team is not currently maintaining method sample initialization code. This is essentially the same problem as https://github.com/GoogleCloudPlatform/google-cloud-ruby/issues/1866. Since like issues will affect nearly every GAPIC method, I don't think addressing them individually is sustainable. These changes will ultimately come from upstream and not at the google-cloud-ruby level, and I've created https://github.com/googleapis/toolkit/issues/1809 as an uber-issue.

Was this page helpful?
0 / 5 - 0 ratings