diagnostics
Creates, updates, deletes, gets or lists a diagnostics
resource.
Overview
Name | diagnostics |
Type | Resource |
Id | azure_extras.help.diagnostics |
Fields
- vw_diagnostics
- diagnostics
Name | Datatype | Description |
---|---|---|
accepted_at | text | field from the properties object |
diagnostics | text | field from the properties object |
diagnosticsResourceName | text | field from the properties object |
global_parameters | text | field from the properties object |
insights | text | field from the properties object |
provisioning_state | text | field from the properties object |
scope | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Diagnostic resource properties. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | diagnosticsResourceName, scope | Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic. |
create | INSERT | diagnosticsResourceName, scope | 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. |
SELECT
examples
Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.
- vw_diagnostics
- diagnostics
SELECT
accepted_at,
diagnostics,
diagnosticsResourceName,
global_parameters,
insights,
provisioning_state,
scope
FROM azure_extras.help.vw_diagnostics
WHERE diagnosticsResourceName = '{{ diagnosticsResourceName }}'
AND scope = '{{ scope }}';
SELECT
properties
FROM azure_extras.help.diagnostics
WHERE diagnosticsResourceName = '{{ diagnosticsResourceName }}'
AND scope = '{{ scope }}';
INSERT
example
Use the following StackQL query and manifest file to create a new diagnostics
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_extras.help.diagnostics (
diagnosticsResourceName,
scope,
properties
)
SELECT
'{{ diagnosticsResourceName }}',
'{{ scope }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: globalParameters
value: object
- name: insights
value:
- - name: solutionId
value: string
- name: additionalParameters
value: object
- name: acceptedAt
value: string
- name: provisioningState
value: string
- name: diagnostics
value:
- - name: solutionId
value: string
- name: status
value: []
- name: insights
value:
- - name: id
value: string
- name: title
value: string
- name: results
value: string
- name: importanceLevel
value: string
- name: error
value:
- name: code
value: string
- name: type
value: string
- name: message
value: string
- name: details
value:
- - name: code
value: string
- name: type
value: string
- name: message
value: string
- name: details
value:
- - name: code
value: string
- name: type
value: string
- name: message
value: string
- name: details
value:
- - name: code
value: string
- name: type
value: string
- name: message
value: string
- name: details
value:
- - name: code
value: string
- name: type
value: string
- name: message
value: string
- name: details
value:
- - name: code
value: string
- name: type
value: string
- name: message
value: string
- name: details
value:
- - name: code
value: string
- name: type
value: string
- name: message
value: string
- name: details
value:
- - name: code
value: string
- name: type
value: string
- name: message
value: string
- name: details
value:
- []