Skip to main content

monitoring

Creates, updates, deletes, gets or lists a monitoring resource.

Overview

Namemonitoring
TypeResource
Idazure.synapse_monitoring.monitoring

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
nJobsinteger
sparkJobsarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_spark_job_listselectendpointx-ms-client-request-idGet list of spark applications for the workspace.
get_sql_job_query_stringexecendpointfilter, $orderby, skip, x-ms-client-request-idGet SQL OD/DW Query for the workspace.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme). (default: )
$orderbystring:type orderby: str
filterstring:type filter: str
skipstring:type skip: str
x-ms-client-request-idstringCan provide a guid, which is helpful for debugging and to provide better customer support.

SELECT examples

Get list of spark applications for the workspace.

SELECT
nJobs,
sparkJobs
FROM azure.synapse_monitoring.monitoring
WHERE endpoint = '{{ endpoint }}' -- required
AND x-ms-client-request-id = '{{ x-ms-client-request-id }}'
;

Lifecycle Methods

Get SQL OD/DW Query for the workspace.

EXEC azure.synapse_monitoring.monitoring.get_sql_job_query_string 
@endpoint='{{ endpoint }}' --required,
@filter='{{ filter }}',
@$orderby='{{ $orderby }}',
@skip='{{ skip }}',
@x-ms-client-request-id='{{ x-ms-client-request-id }}'
;