update_workspace_configuration
¶
update_workspace_configuration(
workspace_id: WorkspaceId,
*,
config_overrides: Optional[ampClientConfig] = None,
client_token: Optional[IdempotencyToken] = None,
limits_per_label_set: Optional[LimitsPerLabelSetList] = None,
retention_period_in_days: Optional[int] = None,
out_of_order_time_window_in_seconds: Optional[int] = None,
rule_query_offset_in_seconds: Optional[int] = None,
) -> UpdateWorkspaceConfigurationResponse
Use this operation to create or update the label sets, label set limits, and retention period of a workspace.
You must specify at least one of limitsPerLabelSet or retentionPeriodInDays for the request to be valid.
Parameters:
-
workspace_id(WorkspaceId) –The ID of the workspace that you want to update. To find the IDs of your workspaces, use the ListWorkspaces operation.
-
client_token(Optional[IdempotencyToken], default:None) –You can include a token in your operation to make it an idempotent opeartion.
-
limits_per_label_set(Optional[LimitsPerLabelSetList], default:None) –This is an array of structures, where each structure defines a label set for the workspace, and defines the active time series limit for each of those label sets. Each label name in a label set must be unique.
-
retention_period_in_days(Optional[int], default:None) –Specifies how many days that metrics will be retained in the workspace.
-
out_of_order_time_window_in_seconds(Optional[int], default:None) –Specifies the time window in seconds for accepting out of order samples. Out of order samples older than this window are rejected.
-
rule_query_offset_in_seconds(Optional[int], default:None) –Specifies the duration in seconds to offset rule evaluation queries into the past. This allows ingested samples to be available before rule evaluation.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request would cause an inconsistent state.
-
InternalServerException–An unexpected error occurred during the processing of the request.
-
ResourceNotFoundException–The request references a resources that doesn't exist.
-
ServiceQuotaExceededException–Completing the request would cause a service quota to be exceeded.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_amp/_services/amp.py
2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 | |