problems
Creates, updates, deletes, gets or lists a problems resource.
Overview
| Name | problems |
| Type | Resource |
| Id | aws.application_insights.problems |
Fields
The following fields are returned by SELECT queries:
- describe_problem
- list_problems
| Name | Datatype | Description |
|---|---|---|
problem | object | Information about the problem. |
sns_notification_arn | string | The SNS notification topic ARN of the problem. (pattern: <code>^arn:aws(-\w+):[\w\d-]+:([\w\d-])?:[\w\d_-]([:/].+)$</code>) |
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Amazon Web Services account ID for the resource group owner. (pattern: <code>^\d{12}$</code>) |
next_token | string | The token used to retrieve the next page of results. This value is null when there are no more results to return. (pattern: <code>.+</code>) |
problem_list | array | The list of problems. |
resource_group_name | string | The name of the resource group. (pattern: <code>[a-zA-Z0-9.-_]*</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_problem | select | region | Describes an application problem. | |
list_problems | select | region | Lists the problems with your application. | |
update_problem | update | region, ProblemId | Updates the visibility of the problem or specifies the problem as RESOLVED. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- describe_problem
- list_problems
Describes an application problem.
SELECT
problem,
sns_notification_arn
FROM aws.application_insights.problems
WHERE region = '{{ region }}' -- required
;
Lists the problems with your application.
SELECT
account_id,
next_token,
problem_list,
resource_group_name
FROM aws.application_insights.problems
WHERE region = '{{ region }}' -- required
;
UPDATE examples
- update_problem
Updates the visibility of the problem or specifies the problem as RESOLVED.
UPDATE aws.application_insights.problems
SET
ProblemId = '{{ ProblemId }}',
UpdateStatus = '{{ UpdateStatus }}',
Visibility = '{{ Visibility }}'
WHERE
region = '{{ region }}' --required
AND ProblemId = '{{ ProblemId }}' --required;