Skip to content

Rename query APIs in Logs and Metrics Client #20829

@srnagar

Description

@srnagar

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

Metadata

Metadata

Assignees

Labels

MonitorMonitor, Monitor Ingestion, Monitor Query

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions