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
511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 | |