You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retrieve the list of data sources available in the specified region. By default, the data sources returned in the list are ordered by creation date, in ascending order.
758
-
You can list data sources by Project, type and origin.
759
755
:param region: Region to target. If none is passed will use default region from the config.
760
756
:param page: Page number to return, from the paginated results.
761
757
:param page_size: Number of data sources to return per page.
762
758
:param order_by: Sort order for data sources in the response.
763
759
:param project_id: Project ID to filter for, only data sources from this Project will be returned.
764
-
:param origin: Origin to filter for, only data sources with matching origin will be returned.
765
-
:param types: Types to filter for, only data sources with matching types will be returned.
760
+
:param origin: Origin to filter for, only data sources with matching origin will be returned. If omitted, all types will be returned.
761
+
:param types: Types to filter for (metrics, logs, traces), only data sources with matching types will be returned. If omitted, all types will be returned.
Retrieve the list of data sources available in the specified region. By default, the data sources returned in the list are ordered by creation date, in ascending order.
808
-
You can list data sources by Project, type and origin.
809
804
:param region: Region to target. If none is passed will use default region from the config.
810
805
:param page: Page number to return, from the paginated results.
811
806
:param page_size: Number of data sources to return per page.
812
807
:param order_by: Sort order for data sources in the response.
813
808
:param project_id: Project ID to filter for, only data sources from this Project will be returned.
814
-
:param origin: Origin to filter for, only data sources with matching origin will be returned.
815
-
:param types: Types to filter for, only data sources with matching types will be returned.
809
+
:param origin: Origin to filter for, only data sources with matching origin will be returned. If omitted, all types will be returned.
810
+
:param types: Types to filter for (metrics, logs, traces), only data sources with matching types will be returned. If omitted, all types will be returned.
Copy file name to clipboardExpand all lines: scaleway/scaleway/cockpit/v1/api.py
+10-15Lines changed: 10 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -633,16 +633,13 @@ def create_data_source(
633
633
) ->DataSource:
634
634
"""
635
635
Create a data source.
636
-
You must specify the data source type upon creation. Available data source types include:
637
-
- metrics
638
-
- logs
639
-
- traces
636
+
You must specify the data source name and type (metrics, logs, traces) upon creation.
640
637
The name of the data source will then be used as reference to name the associated Grafana data source.
641
638
:param name: Data source name.
642
639
:param region: Region to target. If none is passed will use default region from the config.
643
640
:param project_id: ID of the Project the data source belongs to.
644
641
:param type_: Data source type.
645
-
:param retention_days: Default values are 30 days for metrics, 7 days for logs and traces.
642
+
:param retention_days: Default values are 31 days for metrics, 7 days for logs and traces.
646
643
:return: :class:`DataSource <DataSource>`
647
644
648
645
Usage:
@@ -717,7 +714,7 @@ def delete_data_source(
717
714
) ->None:
718
715
"""
719
716
Delete a data source.
720
-
Delete a given data source, specified by the data source ID. Note that deleting a data source is irreversible, and cannot be undone.
717
+
Delete a given data source. Note that this action will permanently delete this data source and any data associated with it.
721
718
:param data_source_id: ID of the data source to delete.
722
719
:param region: Region to target. If none is passed will use default region from the config.
723
720
@@ -755,14 +752,13 @@ def list_data_sources(
755
752
"""
756
753
List data sources.
757
754
Retrieve the list of data sources available in the specified region. By default, the data sources returned in the list are ordered by creation date, in ascending order.
758
-
You can list data sources by Project, type and origin.
759
755
:param region: Region to target. If none is passed will use default region from the config.
760
756
:param page: Page number to return, from the paginated results.
761
757
:param page_size: Number of data sources to return per page.
762
758
:param order_by: Sort order for data sources in the response.
763
759
:param project_id: Project ID to filter for, only data sources from this Project will be returned.
764
-
:param origin: Origin to filter for, only data sources with matching origin will be returned.
765
-
:param types: Types to filter for, only data sources with matching types will be returned.
760
+
:param origin: Origin to filter for, only data sources with matching origin will be returned. If omitted, all types will be returned.
761
+
:param types: Types to filter for (metrics, logs, traces), only data sources with matching types will be returned. If omitted, all types will be returned.
Retrieve the list of data sources available in the specified region. By default, the data sources returned in the list are ordered by creation date, in ascending order.
808
-
You can list data sources by Project, type and origin.
809
804
:param region: Region to target. If none is passed will use default region from the config.
810
805
:param page: Page number to return, from the paginated results.
811
806
:param page_size: Number of data sources to return per page.
812
807
:param order_by: Sort order for data sources in the response.
813
808
:param project_id: Project ID to filter for, only data sources from this Project will be returned.
814
-
:param origin: Origin to filter for, only data sources with matching origin will be returned.
815
-
:param types: Types to filter for, only data sources with matching types will be returned.
809
+
:param origin: Origin to filter for, only data sources with matching origin will be returned. If omitted, all types will be returned.
810
+
:param types: Types to filter for (metrics, logs, traces), only data sources with matching types will be returned. If omitted, all types will be returned.
0 commit comments