AzureLogsQuery🔗
Azure Monitor Logs sub-query properties
Definition🔗
class AzureLogsQuery:
"""
Azure Monitor Logs sub-query properties
"""
# KQL query to be executed.
query: typing.Optional[str]
# Specifies the format results should be returned as.
result_format: typing.Optional[azuremonitor.ResultFormat]
# Array of resource URIs to be queried.
resources: typing.Optional[list[str]]
# 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.
dashboard_time: typing.Optional[bool]
# 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
time_column: typing.Optional[str]
# If set to true the query will be run as a basic logs query
basic_logs_query: typing.Optional[bool]
# Workspace ID. This was removed in Grafana 8, but remains for backwards compat.
workspace: typing.Optional[str]
# @deprecated Use resources instead
resource: typing.Optional[str]
# @deprecated Use dashboardTime instead
intersect_time: typing.Optional[bool]
Methods🔗
to_json🔗
Converts this object into a representation that can easily be encoded to JSON.
from_json🔗
Builds this object from a JSON-decoded dict.