get_instrumentation_configuration_status
¶
get_instrumentation_configuration_status(
instrumentation_type: InstrumentationType,
service: str,
environment: str,
signal_type: DynamicInstrumentationSignalType,
location_identifier: LocationIdentifier,
*,
config_overrides: Optional[ApplicationSignalsClientConfig] = None,
status: Optional[InstrumentationConfigurationStatus] = None,
start_time: Optional[datetime] = None,
end_time: Optional[datetime] = None,
max_results: Optional[int] = None,
next_token: Optional[NextToken] = None,
) -> GetInstrumentationConfigurationStatusResponse
Retrieves the status history for a single instrumentation configuration during a specified time range. The response lists when the configuration was ACTIVE, READY, ERROR, or DISABLED.
If no status or time window is provided, the operation defaults to ACTIVE events from the last hour.
Parameters:
-
instrumentation_type(InstrumentationType) –Type of instrumentation configuration (BREAKPOINT or PROBE). Required to identify the configuration to retrieve.
-
service(str) –Service name for the instrumentation configuration.
-
environment(str) –Environment name for the instrumentation configuration.
-
signal_type(DynamicInstrumentationSignalType) –Signal type for the instrumentation configuration.
-
location_identifier(LocationIdentifier) –Location identifier - either full code location or a pre-computed hash.
-
status(Optional[InstrumentationConfigurationStatus], default:None) –The single status to query for. If omitted, only
ACTIVEstatus events are returned. -
start_time(Optional[datetime], default:None) –The start of the time range to retrieve status events for.
StartTimeandEndTimemust both be provided together or both be omitted. When both are omitted, the time range defaults to the last hour. -
end_time(Optional[datetime], default:None) –The end of the time range to retrieve status events for.
StartTimeandEndTimemust both be provided together or both be omitted. When both are omitted, the time range defaults to the last hour. -
max_results(Optional[int], default:None) –The maximum number of status events to return in one call. The default is 60.
-
next_token(Optional[NextToken], default:None) –Use the token returned by a previous call to retrieve the next page of status events.
Raises:
-
ResourceNotFoundException–Resource not found.
-
ThrottlingException–The request was throttled because of quota limits.
-
ValidationException–The resource is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_application_signals/_services/application_signals.py
649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 | |