Closed
Description
openedon Sep 24, 2021
To prepare for supporting resource-centric logs queries, make the following name changes to the query APIs in Logs and Metrics clients.
LogsQueryClient
def query_workspace(
self,
workspace_id: str,
query: str,
*,
additional_workspaces: list[str] = ...,
include_statistics: bool = ...,
include_visualization: bool = ...,
server_timeout: int = ...,
timespan: Union[timedelta, tuple[datetime, timedelta], tuple[datetime, datetime]] = ...,
**kwargs
) -> Union[LogsQueryResult, LogsQueryPartialResult]
MetricsQueryClient
def query_resource(
self,
resource_uri: str,
metric_names: list[str],
*,
aggregations: list[str] = ...,
filter: str = ...,
granularity: timedelta = ...,
max_results: int = ...,
metric_namespace: str = ...,
order_by: str = ...,
timespan: Union[timedelta, tuple[datetime, timedelta], tuple[datetime, datetime]] = ...,
**kwargs
) -> MetricsResult
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment