capo-codeguruprofiler 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- capo_codeguruprofiler/__init__.py +74 -0
- capo_codeguruprofiler/_async.py +25 -0
- capo_codeguruprofiler/_auth/_identity.py +16 -0
- capo_codeguruprofiler/_auth/_providers.py +886 -0
- capo_codeguruprofiler/_auth/_signers.py +88 -0
- capo_codeguruprofiler/_auth/_sigv4.py +434 -0
- capo_codeguruprofiler/_auth/_zapros_handler.py +80 -0
- capo_codeguruprofiler/_iter.py +113 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/add_notification_channels.py +185 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/batch_get_frame_metric_data.py +202 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/configure_agent.py +177 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/create_profiling_group.py +180 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/delete_profiling_group.py +165 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/describe_profiling_group.py +169 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/get_findings_report_account_summary.py +164 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/get_notification_configuration.py +168 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/get_policy.py +161 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/get_profile.py +196 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/get_recommendations.py +196 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/list_findings_reports.py +197 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/list_profile_times.py +196 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/list_profiling_groups.py +160 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/list_tags_for_resource.py +158 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/post_agent_profile.py +168 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/put_permission.py +182 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/remove_notification_channel.py +169 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/remove_permission.py +175 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/submit_feedback.py +170 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/tag_resource.py +158 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/untag_resource.py +156 -0
- capo_codeguruprofiler/_operations/code_guru_profiler/update_profiling_group.py +181 -0
- capo_codeguruprofiler/_pagination.py +21 -0
- capo_codeguruprofiler/_protocol/__init__.py +1 -0
- capo_codeguruprofiler/_protocol/errors.py +93 -0
- capo_codeguruprofiler/_protocol/eventstream.py +238 -0
- capo_codeguruprofiler/_protocol/serialize.py +47 -0
- capo_codeguruprofiler/_protocol/xml.py +33 -0
- capo_codeguruprofiler/_resources/code_guru_profiler/profiling_group.py +2257 -0
- capo_codeguruprofiler/_rule_engine/__init__.py +0 -0
- capo_codeguruprofiler/_rule_engine/_aws_partition.py +160 -0
- capo_codeguruprofiler/_rule_engine/_endpoint_rule_set.py +138 -0
- capo_codeguruprofiler/_rule_engine/_endpoint_runtime.py +389 -0
- capo_codeguruprofiler/_services/_aws_config.py +160 -0
- capo_codeguruprofiler/_services/_pipeline.py +198 -0
- capo_codeguruprofiler/_services/async_code_guru_profiler.py +377 -0
- capo_codeguruprofiler/_services/code_guru_profiler.py +373 -0
- capo_codeguruprofiler/errors/__init__.py +35 -0
- capo_codeguruprofiler/errors/_base.py +94 -0
- capo_codeguruprofiler/errors/conflict_exception.py +45 -0
- capo_codeguruprofiler/errors/internal_server_exception.py +47 -0
- capo_codeguruprofiler/errors/resource_not_found_exception.py +47 -0
- capo_codeguruprofiler/errors/service_quota_exceeded_exception.py +49 -0
- capo_codeguruprofiler/errors/throttling_exception.py +45 -0
- capo_codeguruprofiler/errors/validation_exception.py +45 -0
- capo_codeguruprofiler/py.typed +0 -0
- capo_codeguruprofiler/types/_prelude/blob.py +12 -0
- capo_codeguruprofiler/types/_prelude/timestamp.py +17 -0
- capo_codeguruprofiler/types/action_group.py +5 -0
- capo_codeguruprofiler/types/add_notification_channels_request.py +44 -0
- capo_codeguruprofiler/types/add_notification_channels_response.py +42 -0
- capo_codeguruprofiler/types/agent_configuration.py +58 -0
- capo_codeguruprofiler/types/agent_orchestration_config.py +28 -0
- capo_codeguruprofiler/types/agent_parameter_field.py +5 -0
- capo_codeguruprofiler/types/agent_parameters.py +27 -0
- capo_codeguruprofiler/types/agent_profile.py +15 -0
- capo_codeguruprofiler/types/aggregated_profile.py +15 -0
- capo_codeguruprofiler/types/aggregated_profile_time.py +45 -0
- capo_codeguruprofiler/types/aggregation_period.py +5 -0
- capo_codeguruprofiler/types/anomalies.py +29 -0
- capo_codeguruprofiler/types/anomaly.py +62 -0
- capo_codeguruprofiler/types/anomaly_instance.py +77 -0
- capo_codeguruprofiler/types/anomaly_instance_id.py +5 -0
- capo_codeguruprofiler/types/anomaly_instances.py +31 -0
- capo_codeguruprofiler/types/batch_get_frame_metric_data_request.py +56 -0
- capo_codeguruprofiler/types/batch_get_frame_metric_data_response.py +130 -0
- capo_codeguruprofiler/types/channel.py +58 -0
- capo_codeguruprofiler/types/channel_id.py +5 -0
- capo_codeguruprofiler/types/channel_uri.py +6 -0
- capo_codeguruprofiler/types/channels.py +29 -0
- capo_codeguruprofiler/types/client_token.py +5 -0
- capo_codeguruprofiler/types/compute_platform.py +5 -0
- capo_codeguruprofiler/types/configure_agent_request.py +50 -0
- capo_codeguruprofiler/types/configure_agent_response.py +43 -0
- capo_codeguruprofiler/types/create_profiling_group_request.py +81 -0
- capo_codeguruprofiler/types/create_profiling_group_response.py +45 -0
- capo_codeguruprofiler/types/delete_profiling_group_request.py +26 -0
- capo_codeguruprofiler/types/delete_profiling_group_response.py +18 -0
- capo_codeguruprofiler/types/describe_profiling_group_request.py +26 -0
- capo_codeguruprofiler/types/describe_profiling_group_response.py +45 -0
- capo_codeguruprofiler/types/event_publisher.py +5 -0
- capo_codeguruprofiler/types/event_publishers.py +19 -0
- capo_codeguruprofiler/types/feedback_type.py +5 -0
- capo_codeguruprofiler/types/findings_report_id.py +5 -0
- capo_codeguruprofiler/types/findings_report_summaries.py +35 -0
- capo_codeguruprofiler/types/findings_report_summary.py +73 -0
- capo_codeguruprofiler/types/fleet_instance_id.py +5 -0
- capo_codeguruprofiler/types/frame_metric.py +56 -0
- capo_codeguruprofiler/types/frame_metric_data.py +33 -0
- capo_codeguruprofiler/types/frame_metric_datum.py +56 -0
- capo_codeguruprofiler/types/frame_metric_value.py +5 -0
- capo_codeguruprofiler/types/frame_metric_values.py +30 -0
- capo_codeguruprofiler/types/frame_metrics.py +29 -0
- capo_codeguruprofiler/types/get_findings_report_account_summary_request.py +31 -0
- capo_codeguruprofiler/types/get_findings_report_account_summary_response.py +56 -0
- capo_codeguruprofiler/types/get_notification_configuration_request.py +26 -0
- capo_codeguruprofiler/types/get_notification_configuration_response.py +45 -0
- capo_codeguruprofiler/types/get_policy_request.py +26 -0
- capo_codeguruprofiler/types/get_policy_response.py +38 -0
- capo_codeguruprofiler/types/get_profile_request.py +39 -0
- capo_codeguruprofiler/types/get_profile_response.py +45 -0
- capo_codeguruprofiler/types/get_recommendations_request.py +34 -0
- capo_codeguruprofiler/types/get_recommendations_response.py +110 -0
- capo_codeguruprofiler/types/list_findings_reports_request.py +41 -0
- capo_codeguruprofiler/types/list_findings_reports_response.py +56 -0
- capo_codeguruprofiler/types/list_of_timestamps.py +33 -0
- capo_codeguruprofiler/types/list_profile_times_request.py +45 -0
- capo_codeguruprofiler/types/list_profile_times_response.py +50 -0
- capo_codeguruprofiler/types/list_profiling_groups_request.py +31 -0
- capo_codeguruprofiler/types/list_profiling_groups_response.py +77 -0
- capo_codeguruprofiler/types/list_tags_for_resource_request.py +24 -0
- capo_codeguruprofiler/types/list_tags_for_resource_response.py +34 -0
- capo_codeguruprofiler/types/locale.py +6 -0
- capo_codeguruprofiler/types/match.py +43 -0
- capo_codeguruprofiler/types/matches.py +29 -0
- capo_codeguruprofiler/types/max_depth.py +5 -0
- capo_codeguruprofiler/types/max_results.py +5 -0
- capo_codeguruprofiler/types/metadata.py +27 -0
- capo_codeguruprofiler/types/metadata_field.py +5 -0
- capo_codeguruprofiler/types/metric.py +54 -0
- capo_codeguruprofiler/types/metric_type.py +5 -0
- capo_codeguruprofiler/types/notification_configuration.py +36 -0
- capo_codeguruprofiler/types/order_by.py +5 -0
- capo_codeguruprofiler/types/pagination_token.py +5 -0
- capo_codeguruprofiler/types/pattern.py +95 -0
- capo_codeguruprofiler/types/percentage.py +5 -0
- capo_codeguruprofiler/types/period.py +5 -0
- capo_codeguruprofiler/types/post_agent_profile_request.py +51 -0
- capo_codeguruprofiler/types/post_agent_profile_response.py +18 -0
- capo_codeguruprofiler/types/principal.py +5 -0
- capo_codeguruprofiler/types/principals.py +17 -0
- capo_codeguruprofiler/types/profile_time.py +36 -0
- capo_codeguruprofiler/types/profile_times.py +29 -0
- capo_codeguruprofiler/types/profiling_group_arn.py +5 -0
- capo_codeguruprofiler/types/profiling_group_description.py +132 -0
- capo_codeguruprofiler/types/profiling_group_descriptions.py +37 -0
- capo_codeguruprofiler/types/profiling_group_name.py +5 -0
- capo_codeguruprofiler/types/profiling_group_names.py +19 -0
- capo_codeguruprofiler/types/profiling_status.py +83 -0
- capo_codeguruprofiler/types/put_permission_request.py +54 -0
- capo_codeguruprofiler/types/put_permission_response.py +38 -0
- capo_codeguruprofiler/types/recommendation.py +108 -0
- capo_codeguruprofiler/types/recommendations.py +31 -0
- capo_codeguruprofiler/types/remove_notification_channel_request.py +29 -0
- capo_codeguruprofiler/types/remove_notification_channel_response.py +42 -0
- capo_codeguruprofiler/types/remove_permission_request.py +32 -0
- capo_codeguruprofiler/types/remove_permission_response.py +38 -0
- capo_codeguruprofiler/types/revision_id.py +5 -0
- capo_codeguruprofiler/types/strings.py +14 -0
- capo_codeguruprofiler/types/submit_feedback_request.py +47 -0
- capo_codeguruprofiler/types/submit_feedback_response.py +18 -0
- capo_codeguruprofiler/types/tag_keys.py +14 -0
- capo_codeguruprofiler/types/tag_resource_request.py +40 -0
- capo_codeguruprofiler/types/tag_resource_response.py +18 -0
- capo_codeguruprofiler/types/tags_map.py +22 -0
- capo_codeguruprofiler/types/target_frame.py +14 -0
- capo_codeguruprofiler/types/target_frames.py +29 -0
- capo_codeguruprofiler/types/thread_states.py +14 -0
- capo_codeguruprofiler/types/timestamp.py +20 -0
- capo_codeguruprofiler/types/timestamp_structure.py +37 -0
- capo_codeguruprofiler/types/unprocessed_end_time_map.py +33 -0
- capo_codeguruprofiler/types/untag_resource_request.py +27 -0
- capo_codeguruprofiler/types/untag_resource_response.py +18 -0
- capo_codeguruprofiler/types/update_profiling_group_request.py +50 -0
- capo_codeguruprofiler/types/update_profiling_group_response.py +45 -0
- capo_codeguruprofiler/types/user_feedback.py +31 -0
- capo_codeguruprofiler-0.1.0.dist-info/METADATA +101 -0
- capo_codeguruprofiler-0.1.0.dist-info/RECORD +180 -0
- capo_codeguruprofiler-0.1.0.dist-info/WHEEL +5 -0
- capo_codeguruprofiler-0.1.0.dist-info/licenses/LICENSE +21 -0
- capo_codeguruprofiler-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeguruprofiler#ServiceQuotaExceededException``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import TypedDict
|
|
4
|
+
|
|
5
|
+
from capo_codeguruprofiler.errors import DeserializationError, ServiceError
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ServiceQuotaExceededException_(TypedDict, closed=True):
|
|
9
|
+
message: "str"
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# --- restJson1 ser/de ---
|
|
13
|
+
def serialize_json(value: ServiceQuotaExceededException_) -> dict:
|
|
14
|
+
out: dict = {}
|
|
15
|
+
out["message"] = value["message"]
|
|
16
|
+
return out
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def deserialize_json(data: dict) -> ServiceQuotaExceededException_:
|
|
20
|
+
out: ServiceQuotaExceededException_ = {} # type: ignore[typeddict-item]
|
|
21
|
+
if data.get("message") is not None:
|
|
22
|
+
out["message"] = data["message"]
|
|
23
|
+
else:
|
|
24
|
+
raise DeserializationError("ServiceQuotaExceededException_.message required")
|
|
25
|
+
return out
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class ServiceQuotaExceededException(ServiceError):
|
|
29
|
+
"""Modeled error for Smithy shape ``com.amazonaws.codeguruprofiler#ServiceQuotaExceededException``."""
|
|
30
|
+
|
|
31
|
+
code: str | None = "ServiceQuotaExceededException"
|
|
32
|
+
|
|
33
|
+
def __init__(
|
|
34
|
+
self, data: ServiceQuotaExceededException_, message: str | None = None
|
|
35
|
+
):
|
|
36
|
+
super().__init__(
|
|
37
|
+
"client",
|
|
38
|
+
is_throttling_error=False,
|
|
39
|
+
is_retryable=True,
|
|
40
|
+
code="ServiceQuotaExceededException",
|
|
41
|
+
message=message,
|
|
42
|
+
)
|
|
43
|
+
self.data = data
|
|
44
|
+
|
|
45
|
+
@classmethod
|
|
46
|
+
def from_json(
|
|
47
|
+
cls, data: dict, message: str | None = None
|
|
48
|
+
) -> "ServiceQuotaExceededException":
|
|
49
|
+
return cls(deserialize_json(data), message)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeguruprofiler#ThrottlingException``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import TypedDict
|
|
4
|
+
|
|
5
|
+
from capo_codeguruprofiler.errors import DeserializationError, ServiceError
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ThrottlingException_(TypedDict, closed=True):
|
|
9
|
+
message: "str"
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# --- restJson1 ser/de ---
|
|
13
|
+
def serialize_json(value: ThrottlingException_) -> dict:
|
|
14
|
+
out: dict = {}
|
|
15
|
+
out["message"] = value["message"]
|
|
16
|
+
return out
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def deserialize_json(data: dict) -> ThrottlingException_:
|
|
20
|
+
out: ThrottlingException_ = {} # type: ignore[typeddict-item]
|
|
21
|
+
if data.get("message") is not None:
|
|
22
|
+
out["message"] = data["message"]
|
|
23
|
+
else:
|
|
24
|
+
raise DeserializationError("ThrottlingException_.message required")
|
|
25
|
+
return out
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class ThrottlingException(ServiceError):
|
|
29
|
+
"""Modeled error for Smithy shape ``com.amazonaws.codeguruprofiler#ThrottlingException``."""
|
|
30
|
+
|
|
31
|
+
code: str | None = "ThrottlingException"
|
|
32
|
+
|
|
33
|
+
def __init__(self, data: ThrottlingException_, message: str | None = None):
|
|
34
|
+
super().__init__(
|
|
35
|
+
"client",
|
|
36
|
+
is_throttling_error=False,
|
|
37
|
+
is_retryable=True,
|
|
38
|
+
code="ThrottlingException",
|
|
39
|
+
message=message,
|
|
40
|
+
)
|
|
41
|
+
self.data = data
|
|
42
|
+
|
|
43
|
+
@classmethod
|
|
44
|
+
def from_json(cls, data: dict, message: str | None = None) -> "ThrottlingException":
|
|
45
|
+
return cls(deserialize_json(data), message)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeguruprofiler#ValidationException``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import TypedDict
|
|
4
|
+
|
|
5
|
+
from capo_codeguruprofiler.errors import DeserializationError, ServiceError
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ValidationException_(TypedDict, closed=True):
|
|
9
|
+
message: "str"
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# --- restJson1 ser/de ---
|
|
13
|
+
def serialize_json(value: ValidationException_) -> dict:
|
|
14
|
+
out: dict = {}
|
|
15
|
+
out["message"] = value["message"]
|
|
16
|
+
return out
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def deserialize_json(data: dict) -> ValidationException_:
|
|
20
|
+
out: ValidationException_ = {} # type: ignore[typeddict-item]
|
|
21
|
+
if data.get("message") is not None:
|
|
22
|
+
out["message"] = data["message"]
|
|
23
|
+
else:
|
|
24
|
+
raise DeserializationError("ValidationException_.message required")
|
|
25
|
+
return out
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class ValidationException(ServiceError):
|
|
29
|
+
"""Modeled error for Smithy shape ``com.amazonaws.codeguruprofiler#ValidationException``."""
|
|
30
|
+
|
|
31
|
+
code: str | None = "ValidationException"
|
|
32
|
+
|
|
33
|
+
def __init__(self, data: ValidationException_, message: str | None = None):
|
|
34
|
+
super().__init__(
|
|
35
|
+
"client",
|
|
36
|
+
is_throttling_error=False,
|
|
37
|
+
is_retryable=False,
|
|
38
|
+
code="ValidationException",
|
|
39
|
+
message=message,
|
|
40
|
+
)
|
|
41
|
+
self.data = data
|
|
42
|
+
|
|
43
|
+
@classmethod
|
|
44
|
+
def from_json(cls, data: dict, message: str | None = None) -> "ValidationException":
|
|
45
|
+
return cls(deserialize_json(data), message)
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Generated from Smithy prelude shape ``smithy.api#Blob``."""
|
|
2
|
+
|
|
3
|
+
import base64
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
# --- restJson1 ser/de ---
|
|
7
|
+
def serialize_json(value: bytes) -> str:
|
|
8
|
+
return base64.b64encode(value).decode("ascii")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def deserialize_json(data: str) -> bytes:
|
|
12
|
+
return base64.b64decode(data)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Generated from Smithy prelude shape ``smithy.api#Timestamp``."""
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
# --- restJson1 ser/de ---
|
|
7
|
+
def serialize_json(value: datetime.datetime) -> float:
|
|
8
|
+
value = (
|
|
9
|
+
value.astimezone(datetime.timezone.utc)
|
|
10
|
+
if value.tzinfo
|
|
11
|
+
else value.replace(tzinfo=datetime.timezone.utc)
|
|
12
|
+
)
|
|
13
|
+
return value.timestamp()
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def deserialize_json(data: float) -> datetime.datetime:
|
|
17
|
+
return datetime.datetime.fromtimestamp(float(data), tz=datetime.timezone.utc)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeguruprofiler#AddNotificationChannelsRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codeguruprofiler.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codeguruprofiler.types.channels
|
|
11
|
+
import capo_codeguruprofiler.types.profiling_group_name
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class AddNotificationChannelsRequest(TypedDict, closed=True):
|
|
15
|
+
profiling_group_name: (
|
|
16
|
+
"capo_codeguruprofiler.types.profiling_group_name.ProfilingGroupName"
|
|
17
|
+
)
|
|
18
|
+
"""<p>The name of the profiling group that we are setting up notifications for.</p>"""
|
|
19
|
+
channels: "capo_codeguruprofiler.types.channels.Channels"
|
|
20
|
+
"""<p>One or 2 channels to report to when anomalies are detected.</p>"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# --- restJson1 ser/de ---
|
|
24
|
+
def serialize_json(value: AddNotificationChannelsRequest) -> dict:
|
|
25
|
+
out: dict = {}
|
|
26
|
+
import capo_codeguruprofiler.types.channels
|
|
27
|
+
|
|
28
|
+
out["channels"] = capo_codeguruprofiler.types.channels.serialize_json(
|
|
29
|
+
value["channels"]
|
|
30
|
+
)
|
|
31
|
+
return out
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def deserialize_json(data: dict) -> AddNotificationChannelsRequest:
|
|
35
|
+
out: AddNotificationChannelsRequest = {} # type: ignore[typeddict-item]
|
|
36
|
+
if data.get("channels") is not None:
|
|
37
|
+
import capo_codeguruprofiler.types.channels
|
|
38
|
+
|
|
39
|
+
out["channels"] = capo_codeguruprofiler.types.channels.deserialize_json(
|
|
40
|
+
data["channels"]
|
|
41
|
+
)
|
|
42
|
+
else:
|
|
43
|
+
raise DeserializationError("AddNotificationChannelsRequest.channels required")
|
|
44
|
+
return out
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeguruprofiler#AddNotificationChannelsResponse``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codeguruprofiler.types.notification_configuration
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class AddNotificationChannelsResponse(TypedDict, closed=True):
|
|
12
|
+
notification_configuration: NotRequired[
|
|
13
|
+
"capo_codeguruprofiler.types.notification_configuration.NotificationConfiguration"
|
|
14
|
+
]
|
|
15
|
+
"""<p>The new notification configuration for this profiling group.</p>"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# --- restJson1 ser/de ---
|
|
19
|
+
def serialize_json(value: AddNotificationChannelsResponse) -> dict:
|
|
20
|
+
out: dict = {}
|
|
21
|
+
if "notification_configuration" in value:
|
|
22
|
+
import capo_codeguruprofiler.types.notification_configuration
|
|
23
|
+
|
|
24
|
+
out["notificationConfiguration"] = (
|
|
25
|
+
capo_codeguruprofiler.types.notification_configuration.serialize_json(
|
|
26
|
+
value["notification_configuration"]
|
|
27
|
+
)
|
|
28
|
+
)
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def deserialize_json(data: dict) -> AddNotificationChannelsResponse:
|
|
33
|
+
out: AddNotificationChannelsResponse = {} # type: ignore[typeddict-item]
|
|
34
|
+
if data.get("notificationConfiguration") is not None:
|
|
35
|
+
import capo_codeguruprofiler.types.notification_configuration
|
|
36
|
+
|
|
37
|
+
out["notification_configuration"] = (
|
|
38
|
+
capo_codeguruprofiler.types.notification_configuration.deserialize_json(
|
|
39
|
+
data["notificationConfiguration"]
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
return out
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeguruprofiler#AgentConfiguration``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codeguruprofiler.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codeguruprofiler.types.agent_parameters
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class AgentConfiguration(TypedDict, closed=True):
|
|
14
|
+
should_profile: "bool"
|
|
15
|
+
"""<p> A <code>Boolean</code> that specifies whether the profiling agent collects profiling data or not. Set to <code>true</code> to enable profiling. </p>"""
|
|
16
|
+
period_in_seconds: "int"
|
|
17
|
+
r"""<p> How long a profiling agent should send profiling data using <a href=\"https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ConfigureAgent.html\"> <code>ConfigureAgent</code> </a>. For example, if this is set to 300, the profiling agent calls <a href=\"https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ConfigureAgent.html\"> <code>ConfigureAgent</code> </a> every 5 minutes to submit the profiled data collected during that period. </p>"""
|
|
18
|
+
agent_parameters: NotRequired[
|
|
19
|
+
"capo_codeguruprofiler.types.agent_parameters.AgentParameters"
|
|
20
|
+
]
|
|
21
|
+
"""<p> Parameters used by the profiler. The valid parameters are: </p> <ul> <li> <p> <code>MaxStackDepth</code> - The maximum depth of the stacks in the code that is represented in the profile. For example, if CodeGuru Profiler finds a method <code>A</code>, which calls method <code>B</code>, which calls method <code>C</code>, which calls method <code>D</code>, then the depth is 4. If the <code>maxDepth</code> is set to 2, then the profiler evaluates <code>A</code> and <code>B</code>. </p> </li> <li> <p> <code>MemoryUsageLimitPercent</code> - The percentage of memory that is used by the profiler.</p> </li> <li> <p> <code>MinimumTimeForReportingInMilliseconds</code> - The minimum time in milliseconds between sending reports. </p> </li> <li> <p> <code>ReportingIntervalInMilliseconds</code> - The reporting interval in milliseconds used to report profiles. </p> </li> <li> <p> <code>SamplingIntervalInMilliseconds</code> - The sampling interval in milliseconds that is used to profile samples. </p> </li> </ul>"""
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# --- restJson1 ser/de ---
|
|
25
|
+
def serialize_json(value: AgentConfiguration) -> dict:
|
|
26
|
+
out: dict = {}
|
|
27
|
+
out["shouldProfile"] = value["should_profile"]
|
|
28
|
+
out["periodInSeconds"] = value["period_in_seconds"]
|
|
29
|
+
if "agent_parameters" in value:
|
|
30
|
+
import capo_codeguruprofiler.types.agent_parameters
|
|
31
|
+
|
|
32
|
+
out["agentParameters"] = (
|
|
33
|
+
capo_codeguruprofiler.types.agent_parameters.serialize_json(
|
|
34
|
+
value["agent_parameters"]
|
|
35
|
+
)
|
|
36
|
+
)
|
|
37
|
+
return out
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def deserialize_json(data: dict) -> AgentConfiguration:
|
|
41
|
+
out: AgentConfiguration = {} # type: ignore[typeddict-item]
|
|
42
|
+
if data.get("shouldProfile") is not None:
|
|
43
|
+
out["should_profile"] = data["shouldProfile"]
|
|
44
|
+
else:
|
|
45
|
+
raise DeserializationError("AgentConfiguration.should_profile required")
|
|
46
|
+
if data.get("periodInSeconds") is not None:
|
|
47
|
+
out["period_in_seconds"] = data["periodInSeconds"]
|
|
48
|
+
else:
|
|
49
|
+
raise DeserializationError("AgentConfiguration.period_in_seconds required")
|
|
50
|
+
if data.get("agentParameters") is not None:
|
|
51
|
+
import capo_codeguruprofiler.types.agent_parameters
|
|
52
|
+
|
|
53
|
+
out["agent_parameters"] = (
|
|
54
|
+
capo_codeguruprofiler.types.agent_parameters.deserialize_json(
|
|
55
|
+
data["agentParameters"]
|
|
56
|
+
)
|
|
57
|
+
)
|
|
58
|
+
return out
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeguruprofiler#AgentOrchestrationConfig``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import TypedDict
|
|
4
|
+
|
|
5
|
+
from capo_codeguruprofiler.errors import DeserializationError
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AgentOrchestrationConfig(TypedDict, closed=True):
|
|
9
|
+
profiling_enabled: "bool"
|
|
10
|
+
"""<p> A <code>Boolean</code> that specifies whether the profiling agent collects profiling data or not. Set to <code>true</code> to enable profiling. </p>"""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: AgentOrchestrationConfig) -> dict:
|
|
15
|
+
out: dict = {}
|
|
16
|
+
out["profilingEnabled"] = value["profiling_enabled"]
|
|
17
|
+
return out
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def deserialize_json(data: dict) -> AgentOrchestrationConfig:
|
|
21
|
+
out: AgentOrchestrationConfig = {} # type: ignore[typeddict-item]
|
|
22
|
+
if data.get("profilingEnabled") is not None:
|
|
23
|
+
out["profiling_enabled"] = data["profilingEnabled"]
|
|
24
|
+
else:
|
|
25
|
+
raise DeserializationError(
|
|
26
|
+
"AgentOrchestrationConfig.profiling_enabled required"
|
|
27
|
+
)
|
|
28
|
+
return out
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeguruprofiler#AgentParameters``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codeguruprofiler.types.agent_parameter_field
|
|
7
|
+
|
|
8
|
+
AgentParameters: TypeAlias = dict[
|
|
9
|
+
"capo_codeguruprofiler.types.agent_parameter_field.AgentParameterField", "str"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(input_to_serialize: AgentParameters) -> dict:
|
|
15
|
+
out: dict = {}
|
|
16
|
+
for key, value in input_to_serialize.items():
|
|
17
|
+
out[key] = value
|
|
18
|
+
return out
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def deserialize_json(data: dict) -> AgentParameters:
|
|
22
|
+
out: AgentParameters = {}
|
|
23
|
+
for key, value in data.items():
|
|
24
|
+
if value is None:
|
|
25
|
+
continue
|
|
26
|
+
out[key] = value
|
|
27
|
+
return out
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeguruprofiler#AgentProfile``."""
|
|
2
|
+
|
|
3
|
+
import base64
|
|
4
|
+
from typing import TypeAlias
|
|
5
|
+
|
|
6
|
+
AgentProfile: TypeAlias = bytes
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# --- restJson1 ser/de ---
|
|
10
|
+
def serialize_json(value: AgentProfile) -> str:
|
|
11
|
+
return base64.b64encode(value).decode("ascii")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def deserialize_json(data: str) -> AgentProfile:
|
|
15
|
+
return base64.b64decode(data)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeguruprofiler#AggregatedProfile``."""
|
|
2
|
+
|
|
3
|
+
import base64
|
|
4
|
+
from typing import TypeAlias
|
|
5
|
+
|
|
6
|
+
AggregatedProfile: TypeAlias = bytes
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# --- restJson1 ser/de ---
|
|
10
|
+
def serialize_json(value: AggregatedProfile) -> str:
|
|
11
|
+
return base64.b64encode(value).decode("ascii")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def deserialize_json(data: str) -> AggregatedProfile:
|
|
15
|
+
return base64.b64decode(data)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeguruprofiler#AggregatedProfileTime``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codeguruprofiler.types.aggregation_period
|
|
9
|
+
import capo_codeguruprofiler.types.timestamp
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class AggregatedProfileTime(TypedDict, closed=True):
|
|
13
|
+
start: NotRequired["capo_codeguruprofiler.types.timestamp.Timestamp"]
|
|
14
|
+
"""<p> The time that aggregation of posted agent profiles for a profiling group starts. The aggregation profile contains profiles posted by the agent starting at this time for an aggregation period specified by the <code>period</code> property of the <code>AggregatedProfileTime</code> object. </p> <p> Specify <code>start</code> using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. </p>"""
|
|
15
|
+
period: NotRequired[
|
|
16
|
+
"capo_codeguruprofiler.types.aggregation_period.AggregationPeriod"
|
|
17
|
+
]
|
|
18
|
+
"""<p> The aggregation period. This indicates the period during which an aggregation profile collects posted agent profiles for a profiling group. Use one of three valid durations that are specified using the ISO 8601 format. </p> <ul> <li> <p> <code>P1D</code> — 1 day </p> </li> <li> <p> <code>PT1H</code> — 1 hour </p> </li> <li> <p> <code>PT5M</code> — 5 minutes </p> </li> </ul>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: AggregatedProfileTime) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
if "start" in value:
|
|
25
|
+
import capo_codeguruprofiler.types.timestamp
|
|
26
|
+
|
|
27
|
+
out["start"] = capo_codeguruprofiler.types.timestamp.serialize_json(
|
|
28
|
+
value["start"]
|
|
29
|
+
)
|
|
30
|
+
if "period" in value:
|
|
31
|
+
out["period"] = value["period"]
|
|
32
|
+
return out
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def deserialize_json(data: dict) -> AggregatedProfileTime:
|
|
36
|
+
out: AggregatedProfileTime = {} # type: ignore[typeddict-item]
|
|
37
|
+
if data.get("start") is not None:
|
|
38
|
+
import capo_codeguruprofiler.types.timestamp
|
|
39
|
+
|
|
40
|
+
out["start"] = capo_codeguruprofiler.types.timestamp.deserialize_json(
|
|
41
|
+
data["start"]
|
|
42
|
+
)
|
|
43
|
+
if data.get("period") is not None:
|
|
44
|
+
out["period"] = data["period"]
|
|
45
|
+
return out
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeguruprofiler#Anomalies``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codeguruprofiler.types.anomaly
|
|
7
|
+
|
|
8
|
+
Anomalies: TypeAlias = list["capo_codeguruprofiler.types.anomaly.Anomaly"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# --- restJson1 ser/de ---
|
|
12
|
+
def serialize_json(value: Anomalies) -> list:
|
|
13
|
+
import capo_codeguruprofiler.types.anomaly
|
|
14
|
+
|
|
15
|
+
out: list = []
|
|
16
|
+
for item in value:
|
|
17
|
+
out.append(capo_codeguruprofiler.types.anomaly.serialize_json(item))
|
|
18
|
+
return out
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def deserialize_json(data: list) -> Anomalies:
|
|
22
|
+
import capo_codeguruprofiler.types.anomaly
|
|
23
|
+
|
|
24
|
+
out: Anomalies = []
|
|
25
|
+
for item in data:
|
|
26
|
+
if item is None:
|
|
27
|
+
continue
|
|
28
|
+
out.append(capo_codeguruprofiler.types.anomaly.deserialize_json(item))
|
|
29
|
+
return out
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeguruprofiler#Anomaly``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codeguruprofiler.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codeguruprofiler.types.anomaly_instances
|
|
11
|
+
import capo_codeguruprofiler.types.metric
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class Anomaly(TypedDict, closed=True):
|
|
15
|
+
metric: "capo_codeguruprofiler.types.metric.Metric"
|
|
16
|
+
"""<p> Details about the metric that the analysis used when it detected the anomaly. The metric includes the name of the frame that was analyzed with the type and thread states used to derive the metric value for that frame. </p>"""
|
|
17
|
+
reason: "str"
|
|
18
|
+
"""<p>The reason for which metric was flagged as anomalous.</p>"""
|
|
19
|
+
instances: "capo_codeguruprofiler.types.anomaly_instances.AnomalyInstances"
|
|
20
|
+
"""<p> A list of the instances of the detected anomalies during the requested period. </p>"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# --- restJson1 ser/de ---
|
|
24
|
+
def serialize_json(value: Anomaly) -> dict:
|
|
25
|
+
out: dict = {}
|
|
26
|
+
import capo_codeguruprofiler.types.metric
|
|
27
|
+
|
|
28
|
+
out["metric"] = capo_codeguruprofiler.types.metric.serialize_json(value["metric"])
|
|
29
|
+
out["reason"] = value["reason"]
|
|
30
|
+
import capo_codeguruprofiler.types.anomaly_instances
|
|
31
|
+
|
|
32
|
+
out["instances"] = capo_codeguruprofiler.types.anomaly_instances.serialize_json(
|
|
33
|
+
value["instances"]
|
|
34
|
+
)
|
|
35
|
+
return out
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def deserialize_json(data: dict) -> Anomaly:
|
|
39
|
+
out: Anomaly = {} # type: ignore[typeddict-item]
|
|
40
|
+
if data.get("metric") is not None:
|
|
41
|
+
import capo_codeguruprofiler.types.metric
|
|
42
|
+
|
|
43
|
+
out["metric"] = capo_codeguruprofiler.types.metric.deserialize_json(
|
|
44
|
+
data["metric"]
|
|
45
|
+
)
|
|
46
|
+
else:
|
|
47
|
+
raise DeserializationError("Anomaly.metric required")
|
|
48
|
+
if data.get("reason") is not None:
|
|
49
|
+
out["reason"] = data["reason"]
|
|
50
|
+
else:
|
|
51
|
+
raise DeserializationError("Anomaly.reason required")
|
|
52
|
+
if data.get("instances") is not None:
|
|
53
|
+
import capo_codeguruprofiler.types.anomaly_instances
|
|
54
|
+
|
|
55
|
+
out["instances"] = (
|
|
56
|
+
capo_codeguruprofiler.types.anomaly_instances.deserialize_json(
|
|
57
|
+
data["instances"]
|
|
58
|
+
)
|
|
59
|
+
)
|
|
60
|
+
else:
|
|
61
|
+
raise DeserializationError("Anomaly.instances required")
|
|
62
|
+
return out
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeguruprofiler#AnomalyInstance``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codeguruprofiler.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codeguruprofiler.types.timestamp
|
|
11
|
+
import capo_codeguruprofiler.types.user_feedback
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class AnomalyInstance(TypedDict, closed=True):
|
|
15
|
+
id: "str"
|
|
16
|
+
"""<p> The universally unique identifier (UUID) of an instance of an anomaly in a metric. </p>"""
|
|
17
|
+
start_time: "capo_codeguruprofiler.types.timestamp.Timestamp"
|
|
18
|
+
"""<p> The start time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. </p>"""
|
|
19
|
+
end_time: NotRequired["capo_codeguruprofiler.types.timestamp.Timestamp"]
|
|
20
|
+
"""<p> The end time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. </p>"""
|
|
21
|
+
user_feedback: NotRequired["capo_codeguruprofiler.types.user_feedback.UserFeedback"]
|
|
22
|
+
"""<p>Feedback type on a specific instance of anomaly submitted by the user.</p>"""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# --- restJson1 ser/de ---
|
|
26
|
+
def serialize_json(value: AnomalyInstance) -> dict:
|
|
27
|
+
out: dict = {}
|
|
28
|
+
out["id"] = value["id"]
|
|
29
|
+
import capo_codeguruprofiler.types.timestamp
|
|
30
|
+
|
|
31
|
+
out["startTime"] = capo_codeguruprofiler.types.timestamp.serialize_json(
|
|
32
|
+
value["start_time"]
|
|
33
|
+
)
|
|
34
|
+
if "end_time" in value:
|
|
35
|
+
import capo_codeguruprofiler.types.timestamp
|
|
36
|
+
|
|
37
|
+
out["endTime"] = capo_codeguruprofiler.types.timestamp.serialize_json(
|
|
38
|
+
value["end_time"]
|
|
39
|
+
)
|
|
40
|
+
if "user_feedback" in value:
|
|
41
|
+
import capo_codeguruprofiler.types.user_feedback
|
|
42
|
+
|
|
43
|
+
out["userFeedback"] = capo_codeguruprofiler.types.user_feedback.serialize_json(
|
|
44
|
+
value["user_feedback"]
|
|
45
|
+
)
|
|
46
|
+
return out
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def deserialize_json(data: dict) -> AnomalyInstance:
|
|
50
|
+
out: AnomalyInstance = {} # type: ignore[typeddict-item]
|
|
51
|
+
if data.get("id") is not None:
|
|
52
|
+
out["id"] = data["id"]
|
|
53
|
+
else:
|
|
54
|
+
raise DeserializationError("AnomalyInstance.id required")
|
|
55
|
+
if data.get("startTime") is not None:
|
|
56
|
+
import capo_codeguruprofiler.types.timestamp
|
|
57
|
+
|
|
58
|
+
out["start_time"] = capo_codeguruprofiler.types.timestamp.deserialize_json(
|
|
59
|
+
data["startTime"]
|
|
60
|
+
)
|
|
61
|
+
else:
|
|
62
|
+
raise DeserializationError("AnomalyInstance.start_time required")
|
|
63
|
+
if data.get("endTime") is not None:
|
|
64
|
+
import capo_codeguruprofiler.types.timestamp
|
|
65
|
+
|
|
66
|
+
out["end_time"] = capo_codeguruprofiler.types.timestamp.deserialize_json(
|
|
67
|
+
data["endTime"]
|
|
68
|
+
)
|
|
69
|
+
if data.get("userFeedback") is not None:
|
|
70
|
+
import capo_codeguruprofiler.types.user_feedback
|
|
71
|
+
|
|
72
|
+
out["user_feedback"] = (
|
|
73
|
+
capo_codeguruprofiler.types.user_feedback.deserialize_json(
|
|
74
|
+
data["userFeedback"]
|
|
75
|
+
)
|
|
76
|
+
)
|
|
77
|
+
return out
|