Skip to main content

performance_analysis_reports

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

Overview

Nameperformance_analysis_reports
TypeResource
Idaws.pi.performance_analysis_reports

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
analysis_report_idstringThe name of the analysis report. (pattern: <code>report-[0-9a-f]{17}</code>)
create_timestring (date-time)The time you created the analysis report.
end_timestring (date-time)The analysis end time in the report.
identifierstringThe unique identifier of the analysis report. (pattern: <code>^[a-zA-Z0-9-]+$</code>)
insightsarrayThe list of identified insights in the analysis report.
service_typestringList the tags for the Amazon Web Services service for which Performance Insights returns metrics. Valid values are as follows: RDS DOCDB (RDS, DOCDB)
start_timestring (date-time)The analysis start time in the report.
statusstringThe status of the created analysis report. (RUNNING, SUCCEEDED, FAILED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_performance_analysis_reportselectregionRetrieves the report including the report ID, status, time details, and the insights with recommendations. The report status can be RUNNING, SUCCEEDED, or FAILED. The insights include the description and recommendation fields.
list_performance_analysis_reportsselectregionLists all the analysis reports created for the DB instance. The reports are sorted based on the start time of each report.
create_performance_analysis_reportinsertregion, ServiceType, Identifier, StartTimeCreates a new performance analysis report for a specific time period for the DB instance.
delete_performance_analysis_reportdeleteregionDeletes a performance analysis report.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the report including the report ID, status, time details, and the insights with recommendations. The report status can be RUNNING, SUCCEEDED, or FAILED. The insights include the description and recommendation fields.

SELECT
analysis_report_id,
create_time,
end_time,
identifier,
insights,
service_type,
start_time,
status
FROM aws.pi.performance_analysis_reports
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new performance analysis report for a specific time period for the DB instance.

INSERT INTO aws.pi.performance_analysis_reports (
ServiceType,
Identifier,
StartTime,
EndTime,
Tags,
region
)
SELECT
'{{ ServiceType }}' /* required */,
'{{ Identifier }}' /* required */,
'{{ StartTime }}' /* required */,
'{{ EndTime }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
analysis_report_id
;

DELETE examples

Deletes a performance analysis report.

DELETE FROM aws.pi.performance_analysis_reports
WHERE region = '{{ region }}' --required
;