Skip to content

AzureLogsQuery🔗

Constructor🔗

AzureLogsQuery()

Methods🔗

build🔗

Builds the object.

def build() -> azuremonitor.AzureLogsQuery

basic_logs_query🔗

If set to true the query will be run as a basic logs query

def basic_logs_query(basic_logs_query: bool) -> typing.Self

dashboard_time🔗

If set to true the dashboard time range will be used as a filter for the query. Otherwise the query time ranges will be used. Defaults to false.

def dashboard_time(dashboard_time: bool) -> typing.Self

intersect_time🔗

@deprecated Use dashboardTime instead

def intersect_time(intersect_time: bool) -> typing.Self

query🔗

KQL query to be executed.

def query(query: str) -> typing.Self

resource🔗

@deprecated Use resources instead

def resource(resource: str) -> typing.Self

resources🔗

Array of resource URIs to be queried.

def resources(resources: list[str]) -> typing.Self

result_format🔗

Specifies the format results should be returned as.

def result_format(result_format: azuremonitor.ResultFormat) -> typing.Self

time_column🔗

If dashboardTime is set to true this value dictates which column the time filter will be applied to. Defaults to the first tables timeSpan column, the first datetime column found, or TimeGenerated

def time_column(time_column: str) -> typing.Self

workspace🔗

Workspace ID. This was removed in Grafana 8, but remains for backwards compat.

def workspace(workspace: str) -> typing.Self

See also🔗