-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
MonitorMonitor, Monitor Ingestion, Monitor QueryMonitor, Monitor Ingestion, Monitor Query
Milestone
Description
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
) -> MetricsResultReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
MonitorMonitor, Monitor Ingestion, Monitor QueryMonitor, Monitor Ingestion, Monitor Query