get_performance_analysis_report
async
¶
get_performance_analysis_report(
service_type: ServiceType,
identifier: IdentifierString,
analysis_report_id: AnalysisReportId,
*,
config_overrides: Optional[AsyncPIClientConfig] = None,
text_format: Optional[TextFormat] = None,
accept_language: Optional[AcceptLanguage] = None,
) -> GetPerformanceAnalysisReportResponse
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.
Parameters:
-
service_type(ServiceType) –The Amazon Web Services service for which Performance Insights will return metrics. Valid value is
RDS. -
identifier(IdentifierString) –An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. In the console, the identifier is shown as ResourceID. When you call
DescribeDBInstances, the identifier is returned asDbiResourceId.To use a DB instance as a data source, specify its
DbiResourceIdvalue. For example, specifydb-ABCDEFGHIJKLMNOPQRSTU1VW2X. -
analysis_report_id(AnalysisReportId) –A unique identifier of the created analysis report. For example,
report-12345678901234567 -
text_format(Optional[TextFormat], default:None) –Indicates the text format in the report. The options are
PLAIN_TEXTorMARKDOWN. The default value isplain text. -
accept_language(Optional[AcceptLanguage], default:None) –The text language in the report. The default language is
EN_US(English).
Raises:
-
InternalServiceError–The request failed due to an unknown error.
-
InvalidArgumentException–One of the arguments provided is invalid for this request.
-
NotAuthorizedException–The user is not authorized to perform this request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_pi/_services/async_pi.py
577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 | |