Skip to main content

diagnostics

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

Overview

Namediagnostics
TypeResource
Idazure_extras.help.diagnostics

Fields

NameDatatypeDescription
accepted_attextfield from the properties object
diagnosticstextfield from the properties object
diagnosticsResourceNametextfield from the properties object
global_parameterstextfield from the properties object
insightstextfield from the properties object
provisioning_statetextfield from the properties object
scopetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdiagnosticsResourceName, scopeGet the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.
createINSERTdiagnosticsResourceName, scopeCreates 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.

SELECT examples

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

SELECT
accepted_at,
diagnostics,
diagnosticsResourceName,
global_parameters,
insights,
provisioning_state,
scope
FROM azure_extras.help.vw_diagnostics
WHERE diagnosticsResourceName = '{{ diagnosticsResourceName }}'
AND scope = '{{ scope }}';

INSERT example

Use the following StackQL query and manifest file to create a new diagnostics resource.

/*+ create */
INSERT INTO azure_extras.help.diagnostics (
diagnosticsResourceName,
scope,
properties
)
SELECT
'{{ diagnosticsResourceName }}',
'{{ scope }}',
'{{ properties }}'
;