list_service_states
¶
list_service_states(
start_time: datetime,
end_time: datetime,
*,
config_overrides: Optional[ApplicationSignalsClientConfig] = None,
max_results: Optional[ListServiceStatesMaxResults] = None,
next_token: Optional[NextToken] = None,
include_linked_accounts: Optional[bool] = None,
aws_account_id: Optional[AwsAccountId] = None,
attribute_filters: Optional[AttributeFilters] = None,
) -> ListServiceStatesOutput
Returns information about the last deployment and other change states of services. This API provides visibility into recent changes that may have affected service performance, helping with troubleshooting and change correlation.
Parameters:
-
start_time(datetime) –The start of the time period to retrieve service state information for. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example,
1698778057. -
end_time(datetime) –The end of the time period to retrieve service state information for. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example,
1698778057. -
max_results(Optional[ListServiceStatesMaxResults], default:None) –The maximum number of service states to return in one operation. If you omit this parameter, the default of 20 is used.
-
next_token(Optional[NextToken], default:None) –Include this value, if it was returned by the previous operation, to get the next set of service states.
-
include_linked_accounts(Optional[bool], default:None) –If you are using this operation in a monitoring account, specify
trueto include service states from source accounts in the returned data. -
aws_account_id(Optional[AwsAccountId], default:None) –The Amazon Web Services account ID to filter service states by. Use this to limit results to services from a specific account.
-
attribute_filters(Optional[AttributeFilters], default:None) –A list of attribute filters to narrow down the services. You can filter by platform, environment, or other service attributes.
Raises:
-
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
1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 | |