Skip to main content

diagnostics

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

Overview

Namediagnostics
TypeResource
Idazure_extras.help.diagnostics

Fields

The following fields are returned by SELECT queries:

Successful fetched insight diagnostic (may contain errors).

NameDatatypeDescription
propertiesobjectDiagnostic Resource properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscope, diagnosticsResourceNameGet the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.
createinsertscope, diagnosticsResourceNameCreates a diagnostic for the specific resource using solutionId from discovery solutions.
Diagnostics are powerful solutions that access product resources or other relevant data and provide the root cause of the issue and the steps to address the issue.

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
diagnosticsResourceNamestringUnique resource name for insight resources
scopestringThe scope at which the operation is performed.

SELECT examples

Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.

SELECT
properties
FROM azure_extras.help.diagnostics
WHERE scope = '{{ scope }}' -- required
AND diagnosticsResourceName = '{{ diagnosticsResourceName }}' -- required
;

INSERT examples

Creates a diagnostic for the specific resource using solutionId from discovery solutions.
Diagnostics are powerful solutions that access product resources or other relevant data and provide the root cause of the issue and the steps to address the issue.

INSERT INTO azure_extras.help.diagnostics (
data__properties,
scope,
diagnosticsResourceName
)
SELECT
'{{ properties }}',
'{{ scope }}',
'{{ diagnosticsResourceName }}'
RETURNING
properties
;