|
1 | 1 | # This file was automatically generated. DO NOT EDIT. |
2 | 2 | # If you have any remark or suggestion do not hesitate to open an issue. |
3 | 3 |
|
4 | | -from datetime import datetime |
5 | 4 | from typing import List, Optional |
6 | 5 |
|
7 | 6 | from scaleway_core.api import API |
|
25 | 24 | TokenScope, |
26 | 25 | Alert, |
27 | 26 | AlertManager, |
28 | | - CockpitMetrics, |
29 | 27 | ContactPoint, |
30 | 28 | ContactPointEmail, |
31 | 29 | DataSource, |
|
66 | 64 | unmarshal_Plan, |
67 | 65 | unmarshal_Token, |
68 | 66 | unmarshal_AlertManager, |
69 | | - unmarshal_CockpitMetrics, |
70 | 67 | unmarshal_GetConfigResponse, |
71 | 68 | unmarshal_Grafana, |
72 | 69 | unmarshal_ListContactPointsResponse, |
@@ -1578,40 +1575,3 @@ async def trigger_test_alert( |
1578 | 1575 | ) |
1579 | 1576 |
|
1580 | 1577 | self._throw_on_error(res) |
1581 | | - |
1582 | | - async def get_cockpit_metrics( |
1583 | | - self, |
1584 | | - *, |
1585 | | - query: str, |
1586 | | - project_id: Optional[str] = None, |
1587 | | - start_date: Optional[datetime] = None, |
1588 | | - end_date: Optional[datetime] = None, |
1589 | | - ) -> CockpitMetrics: |
1590 | | - """ |
1591 | | - :param query: |
1592 | | - :param project_id: |
1593 | | - :param start_date: |
1594 | | - :param end_date: |
1595 | | - :return: :class:`CockpitMetrics <CockpitMetrics>` |
1596 | | -
|
1597 | | - Usage: |
1598 | | - :: |
1599 | | -
|
1600 | | - result = await api.get_cockpit_metrics( |
1601 | | - query="example", |
1602 | | - ) |
1603 | | - """ |
1604 | | - |
1605 | | - res = self._request( |
1606 | | - "GET", |
1607 | | - "/cockpit/v1beta1/cockpit/metrics", |
1608 | | - params={ |
1609 | | - "end_date": end_date, |
1610 | | - "project_id": project_id or self.client.default_project_id, |
1611 | | - "query": query, |
1612 | | - "start_date": start_date, |
1613 | | - }, |
1614 | | - ) |
1615 | | - |
1616 | | - self._throw_on_error(res) |
1617 | | - return unmarshal_CockpitMetrics(res.json()) |
0 commit comments