Comments (3)
Hi @plankthom,
As you've noticed, not all the request fields can be passed to the method. The list of parameters can be thought of as something like an overload. The specific set of parameters is determined by an annotation in the source protos called google.api.method_signature
. See https://google.aip.dev/client-libraries/4232#method-signatures for details.
This is why name
, filter
, interval
, and view
are method parameters but aggregation
is not.
https://github.com/googleapis/googleapis/blob/eabe7c0fde64b1451df6ea171b2009238b0df07c/google/monitoring/v3/metric_service.proto#L120-L125
rpc ListTimeSeries(ListTimeSeriesRequest) returns (ListTimeSeriesResponse) {
option (google.api.http) = {
get: "/v3/{name=projects/*}/timeSeries"
};
option (google.api.method_signature) = "name,filter,interval,view";
}
from python-monitoring.
As you've noticed, not all the request fields can be passed to the method
Indeed i've noticed. The actual bug that I am reporting is that the SDK itself doesn't respect this limitation in
which breaks the feature documented in https://googleapis.dev/python/monitoring/latest/query.html as
align
method.from python-monitoring.
Ah sorry about that, I wasn't reading carefully enough.
It looks like iter
should construct a request object with the params and then pass the request object to list_time_series
.
python-monitoring/google/cloud/monitoring_v3/query.py
Lines 442 to 447 in 8a7e2f7
Thank you for the report!
from python-monitoring.
Related Issues (20)
- tests.unit.gapic.monitoring_v3.test_uptime_check_service: test_list_uptime_check_ips_pager failed
- tests.unit.gapic.monitoring_v3.test_service_monitoring_service: test_list_service_level_objectives_pager failed HOT 1
- tests.unit.gapic.monitoring_v3.test_service_monitoring_service: test_list_service_level_objectives_async_pager failed HOT 4
- tests.unit.gapic.monitoring_v3.test_uptime_check_service: test_list_uptime_check_ips_pager failed HOT 5
- tests.unit.gapic.monitoring_v3.test_uptime_check_service: test_list_uptime_check_ips_async_pager failed HOT 1
- tests.unit.gapic.monitoring_v3.test_service_monitoring_service: test_list_service_level_objectives_async_pager failed HOT 3
- tests.unit.gapic.monitoring_v3.test_uptime_check_service: test_list_uptime_check_configs_pager failed HOT 5
- tests.unit.gapic.monitoring_v3.test_uptime_check_service: test_list_uptime_check_ips_async_pager failed HOT 4
- tests.unit.gapic.monitoring_v3.test_uptime_check_service: test_list_uptime_check_configs_pager failed HOT 5
- tests.unit.gapic.monitoring_v3.test_uptime_check_service: test_list_uptime_check_configs_async_pager failed HOT 5
- tests.unit.gapic.monitoring_v3.test_uptime_check_service: test_list_uptime_check_configs_async_pager failed HOT 5
- tests.unit.gapic.monitoring_v3.test_uptime_check_service: test_list_uptime_check_ips_pager failed HOT 5
- tests.unit.gapic.monitoring_v3.test_uptime_check_service: test_list_uptime_check_ips_pager failed HOT 5
- tests.unit.gapic.monitoring_v3.test_uptime_check_service: test_list_uptime_check_ips_async_pager failed HOT 5
- tests.unit.gapic.monitoring_v3.test_uptime_check_service: test_list_uptime_check_ips_async_pager failed HOT 5
- Warning: a recent release failed HOT 1
- Accidentally definition of interval in snippets.py in v3/cloud-client HOT 2
- MQL query returning empty with QueryTimeSeriesRequest HOT 6
- In python 3.11.0 monitoring_v3 import is failing HOT 7
- UptimeCheckServiceClient.list_uptime_check_ips() returns unrecognized UptimeCheckRegion enum value HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-monitoring.