gcore 0.13.0__py3-none-any.whl → 0.15.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.
Potentially problematic release.
This version of gcore might be problematic. Click here for more details.
- gcore/__init__.py +3 -1
- gcore/_base_client.py +9 -9
- gcore/_client.py +25 -10
- gcore/_models.py +10 -4
- gcore/_qs.py +7 -7
- gcore/_types.py +18 -11
- gcore/_utils/_transform.py +2 -2
- gcore/_utils/_utils.py +4 -4
- gcore/_version.py +1 -1
- gcore/pagination.py +137 -0
- gcore/resources/__init__.py +14 -0
- gcore/resources/cdn/__init__.py +201 -0
- gcore/resources/cdn/audit_log.py +406 -0
- gcore/resources/cdn/cdn.py +957 -0
- gcore/resources/cdn/certificates.py +1062 -0
- gcore/resources/cdn/ip_ranges.py +224 -0
- gcore/resources/cdn/logs/__init__.py +33 -0
- gcore/resources/cdn/logs/logs.py +1424 -0
- gcore/resources/cdn/logs/settings.py +1081 -0
- gcore/resources/cdn/logs_uploader/__init__.py +61 -0
- gcore/resources/cdn/logs_uploader/configs.py +868 -0
- gcore/resources/cdn/logs_uploader/logs_uploader.py +166 -0
- gcore/resources/cdn/logs_uploader/policies.py +1060 -0
- gcore/resources/cdn/logs_uploader/targets.py +811 -0
- gcore/resources/cdn/metrics.py +419 -0
- gcore/resources/cdn/network_capacity.py +139 -0
- gcore/resources/cdn/origin_groups.py +1496 -0
- gcore/resources/cdn/resources/__init__.py +47 -0
- gcore/resources/cdn/resources/resources.py +2060 -0
- gcore/resources/cdn/resources/rules.py +1027 -0
- gcore/resources/cdn/resources/shield.py +259 -0
- gcore/resources/cdn/rule_templates.py +883 -0
- gcore/resources/cdn/shields.py +139 -0
- gcore/resources/cdn/statistics.py +1408 -0
- gcore/resources/cdn/trusted_ca_certificates.py +592 -0
- gcore/resources/cloud/audit_logs.py +33 -29
- gcore/resources/cloud/baremetal/flavors.py +21 -17
- gcore/resources/cloud/baremetal/images.py +19 -15
- gcore/resources/cloud/baremetal/servers.py +141 -119
- gcore/resources/cloud/billing_reservations.py +41 -33
- gcore/resources/cloud/cloud.py +24 -0
- gcore/resources/cloud/cost_reports.py +149 -119
- gcore/resources/cloud/file_shares/access_rules.py +25 -13
- gcore/resources/cloud/file_shares/file_shares.py +107 -71
- gcore/resources/cloud/floating_ips.py +101 -59
- gcore/resources/cloud/gpu_baremetal_clusters/flavors.py +13 -9
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +275 -65
- gcore/resources/cloud/gpu_baremetal_clusters/images.py +69 -53
- gcore/resources/cloud/gpu_baremetal_clusters/interfaces.py +9 -5
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +151 -127
- gcore/resources/cloud/inference/api_keys.py +51 -31
- gcore/resources/cloud/inference/applications/deployments.py +49 -31
- gcore/resources/cloud/inference/applications/templates.py +17 -9
- gcore/resources/cloud/inference/deployments/deployments.py +171 -139
- gcore/resources/cloud/inference/deployments/logs.py +17 -13
- gcore/resources/cloud/inference/flavors.py +21 -13
- gcore/resources/cloud/inference/inference.py +9 -5
- gcore/resources/cloud/inference/registry_credentials.py +45 -25
- gcore/resources/cloud/inference/secrets.py +45 -25
- gcore/resources/cloud/instances/flavors.py +17 -13
- gcore/resources/cloud/instances/images.py +153 -129
- gcore/resources/cloud/instances/instances.py +287 -213
- gcore/resources/cloud/instances/interfaces.py +165 -161
- gcore/resources/cloud/instances/metrics.py +9 -5
- gcore/resources/cloud/ip_ranges.py +25 -15
- gcore/resources/cloud/k8s/clusters/clusters.py +151 -87
- gcore/resources/cloud/k8s/clusters/nodes.py +19 -11
- gcore/resources/cloud/k8s/clusters/pools/nodes.py +19 -11
- gcore/resources/cloud/k8s/clusters/pools/pools.py +83 -59
- gcore/resources/cloud/k8s/flavors.py +13 -9
- gcore/resources/cloud/k8s/k8s.py +9 -5
- gcore/resources/cloud/load_balancers/flavors.py +11 -7
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +103 -83
- gcore/resources/cloud/load_balancers/l7_policies/rules.py +77 -57
- gcore/resources/cloud/load_balancers/listeners.py +125 -105
- gcore/resources/cloud/load_balancers/load_balancers.py +155 -123
- gcore/resources/cloud/load_balancers/metrics.py +9 -5
- gcore/resources/cloud/load_balancers/pools/health_monitors.py +25 -17
- gcore/resources/cloud/load_balancers/pools/members.py +31 -23
- gcore/resources/cloud/load_balancers/pools/pools.py +155 -129
- gcore/resources/cloud/load_balancers/statuses.py +17 -9
- gcore/resources/cloud/networks/networks.py +79 -55
- gcore/resources/cloud/networks/routers.py +75 -47
- gcore/resources/cloud/networks/subnets.py +109 -87
- gcore/resources/cloud/placement_groups.py +33 -17
- gcore/resources/cloud/projects.py +53 -41
- gcore/resources/cloud/quotas/quotas.py +25 -13
- gcore/resources/cloud/quotas/requests.py +41 -25
- gcore/resources/cloud/regions.py +25 -23
- gcore/resources/cloud/registries/artifacts.py +17 -9
- gcore/resources/cloud/registries/registries.py +55 -29
- gcore/resources/cloud/registries/repositories.py +17 -9
- gcore/resources/cloud/registries/tags.py +9 -5
- gcore/resources/cloud/registries/users.py +65 -35
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +233 -108
- gcore/resources/cloud/reserved_fixed_ips/vip.py +45 -25
- gcore/resources/cloud/secrets.py +43 -27
- gcore/resources/cloud/security_groups/rules.py +55 -43
- gcore/resources/cloud/security_groups/security_groups.py +79 -47
- gcore/resources/cloud/ssh_keys.py +51 -31
- gcore/resources/cloud/tasks.py +57 -45
- gcore/resources/cloud/usage_reports.py +27 -23
- gcore/resources/cloud/users/role_assignments.py +49 -33
- gcore/resources/cloud/volumes.py +237 -201
- gcore/resources/dns/dns.py +17 -13
- gcore/resources/dns/locations.py +29 -17
- gcore/resources/dns/metrics.py +13 -9
- gcore/resources/dns/pickers/pickers.py +5 -5
- gcore/resources/dns/pickers/presets.py +9 -5
- gcore/resources/dns/zones/dnssec.py +19 -11
- gcore/resources/dns/zones/rrsets.py +149 -91
- gcore/resources/dns/zones/zones.py +245 -187
- gcore/resources/fastedge/apps/apps.py +105 -89
- gcore/resources/fastedge/apps/logs.py +25 -21
- gcore/resources/fastedge/binaries.py +33 -17
- gcore/resources/fastedge/fastedge.py +5 -5
- gcore/resources/fastedge/kv_stores.py +43 -31
- gcore/resources/fastedge/secrets.py +69 -45
- gcore/resources/fastedge/statistics.py +25 -17
- gcore/resources/fastedge/templates.py +59 -39
- gcore/resources/iam/api_tokens.py +47 -29
- gcore/resources/iam/iam.py +5 -5
- gcore/resources/iam/users.py +97 -65
- gcore/resources/security/bgp_announces.py +27 -19
- gcore/resources/security/events.py +23 -19
- gcore/resources/security/profile_templates.py +9 -5
- gcore/resources/security/profiles.py +69 -45
- gcore/resources/storage/buckets/buckets.py +37 -25
- gcore/resources/storage/buckets/cors.py +19 -11
- gcore/resources/storage/buckets/lifecycle.py +19 -11
- gcore/resources/storage/buckets/policy.py +25 -13
- gcore/resources/storage/credentials.py +19 -15
- gcore/resources/storage/locations.py +13 -9
- gcore/resources/storage/statistics.py +39 -31
- gcore/resources/storage/storage.py +105 -69
- gcore/resources/streaming/ai_tasks.py +307 -197
- gcore/resources/streaming/broadcasts.py +63 -35
- gcore/resources/streaming/directories.py +65 -39
- gcore/resources/streaming/players.py +47 -31
- gcore/resources/streaming/playlists.py +189 -123
- gcore/resources/streaming/quality_sets.py +69 -39
- gcore/resources/streaming/restreams.py +47 -27
- gcore/resources/streaming/statistics.py +613 -407
- gcore/resources/streaming/streams/overlays.py +107 -67
- gcore/resources/streaming/streams/streams.py +403 -263
- gcore/resources/streaming/videos/subtitles.py +131 -75
- gcore/resources/streaming/videos/videos.py +429 -279
- gcore/resources/waap/advanced_rules.py +9 -5
- gcore/resources/waap/custom_page_sets.py +99 -75
- gcore/resources/waap/domains/advanced_rules.py +157 -99
- gcore/resources/waap/domains/api_discovery.py +71 -47
- gcore/resources/waap/domains/api_path_groups.py +9 -5
- gcore/resources/waap/domains/api_paths.py +79 -83
- gcore/resources/waap/domains/custom_rules.py +89 -59
- gcore/resources/waap/domains/domains.py +59 -41
- gcore/resources/waap/domains/firewall_rules.py +83 -55
- gcore/resources/waap/domains/insight_silences.py +59 -39
- gcore/resources/waap/domains/insights.py +39 -27
- gcore/resources/waap/domains/settings.py +21 -13
- gcore/resources/waap/domains/statistics.py +99 -75
- gcore/resources/waap/insights.py +23 -21
- gcore/resources/waap/ip_info/ip_info.py +65 -33
- gcore/resources/waap/ip_info/metrics.py +11 -7
- gcore/resources/waap/organizations.py +17 -13
- gcore/resources/waap/statistics.py +9 -5
- gcore/resources/waap/tags.py +17 -17
- gcore/resources/waap/waap.py +5 -5
- gcore/types/cdn/__init__.py +80 -0
- gcore/types/cdn/audit_log_list_params.py +73 -0
- gcore/types/cdn/ca_certificate.py +53 -0
- gcore/types/cdn/ca_certificate_list.py +10 -0
- gcore/types/cdn/cdn_account.py +86 -0
- gcore/types/cdn/cdn_account_limits.py +27 -0
- gcore/types/cdn/cdn_audit_log_entry.py +66 -0
- gcore/types/cdn/cdn_available_features.py +46 -0
- gcore/types/cdn/cdn_list_purge_statuses_params.py +67 -0
- gcore/types/cdn/cdn_log_entry.py +70 -0
- gcore/types/cdn/cdn_metrics.py +22 -0
- gcore/types/cdn/cdn_metrics_groups.py +13 -0
- gcore/types/cdn/cdn_metrics_values.py +19 -0
- gcore/types/cdn/cdn_resource.py +1997 -0
- gcore/types/cdn/cdn_resource_list.py +10 -0
- gcore/types/cdn/cdn_update_account_params.py +15 -0
- gcore/types/cdn/certificate_create_params.py +51 -0
- gcore/types/cdn/certificate_get_status_params.py +14 -0
- gcore/types/cdn/certificate_list_params.py +29 -0
- gcore/types/cdn/certificate_replace_params.py +39 -0
- gcore/types/cdn/log_download_params.py +279 -0
- gcore/types/cdn/log_list_params.py +273 -0
- gcore/types/cdn/logs/__init__.py +7 -0
- gcore/types/cdn/logs/log_settings.py +172 -0
- gcore/types/cdn/logs/setting_create_params.py +200 -0
- gcore/types/cdn/logs/setting_update_params.py +200 -0
- gcore/types/cdn/logs_aggregated_stats.py +23 -0
- gcore/types/cdn/logs_uploader/__init__.py +23 -0
- gcore/types/cdn/logs_uploader/config_create_params.py +32 -0
- gcore/types/cdn/logs_uploader/config_list_params.py +16 -0
- gcore/types/cdn/logs_uploader/config_replace_params.py +32 -0
- gcore/types/cdn/logs_uploader/config_update_params.py +32 -0
- gcore/types/cdn/logs_uploader/logs_uploader_config.py +51 -0
- gcore/types/cdn/logs_uploader/logs_uploader_config_list.py +10 -0
- gcore/types/cdn/logs_uploader/logs_uploader_policy.py +73 -0
- gcore/types/cdn/logs_uploader/logs_uploader_policy_list.py +10 -0
- gcore/types/cdn/logs_uploader/logs_uploader_target.py +236 -0
- gcore/types/cdn/logs_uploader/logs_uploader_target_list.py +10 -0
- gcore/types/cdn/logs_uploader/policy_create_params.py +61 -0
- gcore/types/cdn/logs_uploader/policy_list_fields_response.py +8 -0
- gcore/types/cdn/logs_uploader/policy_list_params.py +16 -0
- gcore/types/cdn/logs_uploader/policy_replace_params.py +61 -0
- gcore/types/cdn/logs_uploader/policy_update_params.py +61 -0
- gcore/types/cdn/logs_uploader/target_create_params.py +249 -0
- gcore/types/cdn/logs_uploader/target_list_params.py +16 -0
- gcore/types/cdn/logs_uploader/target_replace_params.py +249 -0
- gcore/types/cdn/logs_uploader/target_update_params.py +249 -0
- gcore/types/cdn/logs_uploader_validation.py +23 -0
- gcore/types/cdn/metric_list_params.py +168 -0
- gcore/types/cdn/network_capacity.py +22 -0
- gcore/types/cdn/origin_group_create_params.py +184 -0
- gcore/types/cdn/origin_group_list_params.py +24 -0
- gcore/types/cdn/origin_group_replace_params.py +190 -0
- gcore/types/cdn/origin_group_update_params.py +190 -0
- gcore/types/cdn/origin_groups.py +212 -0
- gcore/types/cdn/origin_groups_list.py +10 -0
- gcore/types/cdn/public_ip_list.py +15 -0
- gcore/types/cdn/public_network_list.py +15 -0
- gcore/types/cdn/purge_status.py +55 -0
- gcore/types/cdn/resource_aggregated_stats.py +80 -0
- gcore/types/cdn/resource_create_params.py +1845 -0
- gcore/types/cdn/resource_list_params.py +107 -0
- gcore/types/cdn/resource_prefetch_params.py +17 -0
- gcore/types/cdn/resource_purge_params.py +71 -0
- gcore/types/cdn/resource_replace_params.py +1823 -0
- gcore/types/cdn/resource_update_params.py +1814 -0
- gcore/types/cdn/resource_usage_stats.py +111 -0
- gcore/types/cdn/resources/__init__.py +11 -0
- gcore/types/cdn/resources/cdn_resource_rule.py +1715 -0
- gcore/types/cdn/resources/origin_shielding.py +15 -0
- gcore/types/cdn/resources/rule_create_params.py +1672 -0
- gcore/types/cdn/resources/rule_list_response.py +10 -0
- gcore/types/cdn/resources/rule_replace_params.py +1674 -0
- gcore/types/cdn/resources/rule_update_params.py +1674 -0
- gcore/types/cdn/resources/shield_replace_params.py +16 -0
- gcore/types/cdn/rule_template.py +1686 -0
- gcore/types/cdn/rule_template_create_params.py +1656 -0
- gcore/types/cdn/rule_template_list.py +10 -0
- gcore/types/cdn/rule_template_replace_params.py +1656 -0
- gcore/types/cdn/rule_template_update_params.py +1656 -0
- gcore/types/cdn/shield_aggregated_stats.py +23 -0
- gcore/types/cdn/shield_list_response.py +25 -0
- gcore/types/cdn/ssl_detail.py +62 -0
- gcore/types/cdn/ssl_detail_list.py +10 -0
- gcore/types/cdn/ssl_request_status.py +135 -0
- gcore/types/cdn/statistic_get_logs_usage_aggregated_params.py +42 -0
- gcore/types/cdn/statistic_get_logs_usage_series_params.py +35 -0
- gcore/types/cdn/statistic_get_resource_usage_aggregated_params.py +151 -0
- gcore/types/cdn/statistic_get_resource_usage_series_params.py +131 -0
- gcore/types/cdn/statistic_get_shield_usage_aggregated_params.py +42 -0
- gcore/types/cdn/statistic_get_shield_usage_series_params.py +25 -0
- gcore/types/cdn/trusted_ca_certificate_create_params.py +23 -0
- gcore/types/cdn/trusted_ca_certificate_list_params.py +29 -0
- gcore/types/cdn/trusted_ca_certificate_replace_params.py +15 -0
- gcore/types/cdn/usage_series_stats.py +31 -0
- gcore/types/cloud/__init__.py +2 -0
- gcore/types/cloud/file_share.py +4 -0
- gcore/types/cloud/file_share_create_params.py +20 -0
- gcore/types/cloud/file_share_update_params.py +40 -3
- gcore/types/cloud/floating_ip_update_params.py +3 -1
- gcore/types/cloud/gpu_baremetal_cluster_action_params.py +46 -0
- gcore/types/cloud/gpu_baremetal_clusters/gpu_baremetal_flavor.py +12 -0
- gcore/types/cloud/inference/inference_deployment.py +3 -1
- gcore/types/cloud/instance_create_params.py +3 -1
- gcore/types/cloud/k8s/cluster_create_params.py +46 -4
- gcore/types/cloud/k8s/cluster_update_params.py +60 -6
- gcore/types/cloud/k8s/clusters/pool_update_params.py +1 -1
- gcore/types/cloud/k8s/k8s_cluster.py +40 -3
- gcore/types/cloud/load_balancer_update_params.py +3 -1
- gcore/types/cloud/network_update_params.py +3 -1
- gcore/types/cloud/networks/subnet_update_params.py +3 -1
- gcore/types/cloud/quota_get_all_response.py +8 -8
- gcore/types/cloud/quota_get_by_region_response.py +8 -8
- gcore/types/cloud/quotas/request_create_params.py +4 -4
- gcore/types/cloud/quotas/request_get_response.py +4 -4
- gcore/types/cloud/quotas/request_list_response.py +4 -4
- gcore/types/cloud/registries/user_create_multiple_params.py +5 -3
- gcore/types/cloud/registries/user_create_params.py +5 -3
- gcore/types/cloud/registry_create_params.py +5 -3
- gcore/types/cloud/reserved_fixed_ip_update_params.py +16 -0
- gcore/types/cloud/security_group_update_params.py +3 -1
- gcore/types/cloud/ssh_key_created.py +6 -3
- gcore/types/cloud/volume_update_params.py +3 -1
- gcore/types/dns/zone_get_statistics_params.py +12 -9
- gcore/types/dns/zone_get_statistics_response.py +3 -1
- gcore/types/dns/zone_import_params.py +21 -15
- gcore/types/dns/zones/dns_output_rrset.py +7 -3
- gcore/types/iam/account_overview.py +31 -28
- gcore/types/iam/api_token.py +24 -24
- gcore/types/iam/api_token_create_params.py +2 -1
- gcore/types/iam/api_token_list.py +24 -24
- gcore/types/iam/user.py +7 -2
- gcore/types/iam/user_detailed.py +22 -17
- gcore/types/iam/user_invite.py +2 -4
- gcore/types/iam/user_invite_params.py +4 -1
- gcore/types/iam/user_update.py +22 -17
- gcore/types/iam/user_update_params.py +7 -2
- gcore/types/streaming/ai_contentmoderation_hardnudity.py +6 -4
- gcore/types/streaming/ai_contentmoderation_nsfw.py +6 -4
- gcore/types/streaming/ai_contentmoderation_softnudity.py +6 -4
- gcore/types/streaming/ai_contentmoderation_sport.py +6 -4
- gcore/types/streaming/ai_task.py +20 -11
- gcore/types/streaming/ai_task_create_params.py +20 -11
- gcore/types/streaming/ai_task_get_response.py +5 -4
- gcore/types/streaming/ai_task_list_params.py +11 -5
- gcore/types/streaming/clip.py +33 -22
- gcore/types/streaming/create_video_param.py +75 -43
- gcore/types/streaming/playlist.py +7 -5
- gcore/types/streaming/playlist_create_params.py +7 -5
- gcore/types/streaming/playlist_update_params.py +7 -5
- gcore/types/streaming/playlist_video.py +75 -43
- gcore/types/streaming/statistic_get_unique_viewers_cdn_params.py +7 -4
- gcore/types/streaming/stream.py +207 -136
- gcore/types/streaming/stream_create_clip_params.py +33 -22
- gcore/types/streaming/stream_create_params.py +41 -24
- gcore/types/streaming/stream_update_params.py +41 -24
- gcore/types/streaming/video.py +138 -76
- gcore/types/streaming/video_list_params.py +4 -2
- gcore/types/streaming/video_update_params.py +75 -43
- gcore/types/waap/domain_update_params.py +2 -2
- gcore/types/waap/domains/advanced_rule_create_params.py +26 -18
- gcore/types/waap/domains/advanced_rule_list_params.py +10 -7
- gcore/types/waap/domains/advanced_rule_update_params.py +22 -17
- gcore/types/waap/domains/api_path_create_params.py +0 -3
- gcore/types/waap/domains/api_path_update_params.py +1 -3
- gcore/types/waap/domains/custom_rule_create_params.py +36 -35
- gcore/types/waap/domains/custom_rule_update_params.py +31 -33
- gcore/types/waap/domains/firewall_rule_create_params.py +6 -6
- gcore/types/waap/domains/firewall_rule_update_params.py +5 -5
- gcore/types/waap/domains/waap_advanced_rule.py +17 -9
- gcore/types/waap/domains/waap_custom_rule.py +5 -2
- gcore/types/waap/domains/waap_firewall_rule.py +1 -1
- gcore/types/waap/domains/waap_insight.py +1 -1
- gcore/types/waap/insight_list_types_params.py +1 -1
- {gcore-0.13.0.dist-info → gcore-0.15.0.dist-info}/METADATA +1 -1
- {gcore-0.13.0.dist-info → gcore-0.15.0.dist-info}/RECORD +345 -224
- {gcore-0.13.0.dist-info → gcore-0.15.0.dist-info}/WHEEL +0 -0
- {gcore-0.13.0.dist-info → gcore-0.15.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Iterable
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["TargetListParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class TargetListParams(TypedDict, total=False):
|
|
12
|
+
config_ids: Iterable[int]
|
|
13
|
+
"""Filter by ids of related logs uploader configs that use given target."""
|
|
14
|
+
|
|
15
|
+
search: str
|
|
16
|
+
"""Search by target name or id."""
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict, Union, Iterable, Optional
|
|
6
|
+
from typing_extensions import Literal, Required, TypeAlias, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"TargetReplaceParams",
|
|
10
|
+
"Config",
|
|
11
|
+
"ConfigS3GcoreConfig",
|
|
12
|
+
"ConfigS3AmazonConfig",
|
|
13
|
+
"ConfigS3OssConfig",
|
|
14
|
+
"ConfigS3OtherConfig",
|
|
15
|
+
"ConfigS3V1Config",
|
|
16
|
+
"ConfigFtpConfig",
|
|
17
|
+
"ConfigSftpConfig",
|
|
18
|
+
"ConfigHTTPConfig",
|
|
19
|
+
"ConfigHTTPConfigUpload",
|
|
20
|
+
"ConfigHTTPConfigUploadResponseAction",
|
|
21
|
+
"ConfigHTTPConfigAppend",
|
|
22
|
+
"ConfigHTTPConfigAppendResponseAction",
|
|
23
|
+
"ConfigHTTPConfigAuth",
|
|
24
|
+
"ConfigHTTPConfigAuthConfig",
|
|
25
|
+
"ConfigHTTPConfigRetry",
|
|
26
|
+
"ConfigHTTPConfigRetryResponseAction",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class TargetReplaceParams(TypedDict, total=False):
|
|
31
|
+
config: Required[Config]
|
|
32
|
+
"""Config for specific storage type."""
|
|
33
|
+
|
|
34
|
+
storage_type: Required[Literal["s3_gcore", "s3_amazon", "s3_oss", "s3_other", "s3_v1", "ftp", "sftp", "http"]]
|
|
35
|
+
"""Type of storage for logs."""
|
|
36
|
+
|
|
37
|
+
description: str
|
|
38
|
+
"""Description of the target."""
|
|
39
|
+
|
|
40
|
+
name: str
|
|
41
|
+
"""Name of the target."""
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class ConfigS3GcoreConfig(TypedDict, total=False):
|
|
45
|
+
access_key_id: Required[str]
|
|
46
|
+
|
|
47
|
+
bucket_name: Required[str]
|
|
48
|
+
|
|
49
|
+
endpoint: Required[str]
|
|
50
|
+
|
|
51
|
+
region: Required[str]
|
|
52
|
+
|
|
53
|
+
secret_access_key: Required[str]
|
|
54
|
+
|
|
55
|
+
directory: Optional[str]
|
|
56
|
+
|
|
57
|
+
use_path_style: bool
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
class ConfigS3AmazonConfig(TypedDict, total=False):
|
|
61
|
+
access_key_id: Required[str]
|
|
62
|
+
|
|
63
|
+
bucket_name: Required[str]
|
|
64
|
+
|
|
65
|
+
region: Required[str]
|
|
66
|
+
|
|
67
|
+
secret_access_key: Required[str]
|
|
68
|
+
|
|
69
|
+
directory: Optional[str]
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
class ConfigS3OssConfig(TypedDict, total=False):
|
|
73
|
+
access_key_id: Required[str]
|
|
74
|
+
|
|
75
|
+
bucket_name: Required[str]
|
|
76
|
+
|
|
77
|
+
secret_access_key: Required[str]
|
|
78
|
+
|
|
79
|
+
directory: Optional[str]
|
|
80
|
+
|
|
81
|
+
region: Optional[str]
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
class ConfigS3OtherConfig(TypedDict, total=False):
|
|
85
|
+
access_key_id: Required[str]
|
|
86
|
+
|
|
87
|
+
bucket_name: Required[str]
|
|
88
|
+
|
|
89
|
+
endpoint: Required[str]
|
|
90
|
+
|
|
91
|
+
region: Required[str]
|
|
92
|
+
|
|
93
|
+
secret_access_key: Required[str]
|
|
94
|
+
|
|
95
|
+
directory: Optional[str]
|
|
96
|
+
|
|
97
|
+
use_path_style: bool
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
class ConfigS3V1Config(TypedDict, total=False):
|
|
101
|
+
access_key_id: Required[str]
|
|
102
|
+
|
|
103
|
+
bucket_name: Required[str]
|
|
104
|
+
|
|
105
|
+
endpoint: Required[str]
|
|
106
|
+
|
|
107
|
+
region: Required[str]
|
|
108
|
+
|
|
109
|
+
secret_access_key: Required[str]
|
|
110
|
+
|
|
111
|
+
directory: Optional[str]
|
|
112
|
+
|
|
113
|
+
use_path_style: bool
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
class ConfigFtpConfig(TypedDict, total=False):
|
|
117
|
+
hostname: Required[str]
|
|
118
|
+
|
|
119
|
+
password: Required[str]
|
|
120
|
+
|
|
121
|
+
user: Required[str]
|
|
122
|
+
|
|
123
|
+
directory: Optional[str]
|
|
124
|
+
|
|
125
|
+
timeout_seconds: int
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
class ConfigSftpConfig(TypedDict, total=False):
|
|
129
|
+
hostname: Required[str]
|
|
130
|
+
|
|
131
|
+
user: Required[str]
|
|
132
|
+
|
|
133
|
+
directory: Optional[str]
|
|
134
|
+
|
|
135
|
+
key_passphrase: Optional[str]
|
|
136
|
+
|
|
137
|
+
password: Optional[str]
|
|
138
|
+
|
|
139
|
+
private_key: Optional[str]
|
|
140
|
+
|
|
141
|
+
timeout_seconds: int
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
class ConfigHTTPConfigUploadResponseAction(TypedDict, total=False):
|
|
145
|
+
action: Required[Literal["drop", "retry", "append"]]
|
|
146
|
+
|
|
147
|
+
description: str
|
|
148
|
+
|
|
149
|
+
match_payload: str
|
|
150
|
+
|
|
151
|
+
match_status_code: int
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
class ConfigHTTPConfigUpload(TypedDict, total=False):
|
|
155
|
+
url: Required[str]
|
|
156
|
+
|
|
157
|
+
headers: Dict[str, str]
|
|
158
|
+
|
|
159
|
+
method: Literal["POST", "PUT"]
|
|
160
|
+
|
|
161
|
+
response_actions: Iterable[ConfigHTTPConfigUploadResponseAction]
|
|
162
|
+
|
|
163
|
+
timeout_seconds: int
|
|
164
|
+
|
|
165
|
+
use_compression: bool
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
class ConfigHTTPConfigAppendResponseAction(TypedDict, total=False):
|
|
169
|
+
action: Required[Literal["drop", "retry", "append"]]
|
|
170
|
+
|
|
171
|
+
description: str
|
|
172
|
+
|
|
173
|
+
match_payload: str
|
|
174
|
+
|
|
175
|
+
match_status_code: int
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
class ConfigHTTPConfigAppend(TypedDict, total=False):
|
|
179
|
+
url: Required[str]
|
|
180
|
+
|
|
181
|
+
headers: Dict[str, str]
|
|
182
|
+
|
|
183
|
+
method: Literal["POST", "PUT"]
|
|
184
|
+
|
|
185
|
+
response_actions: Iterable[ConfigHTTPConfigAppendResponseAction]
|
|
186
|
+
|
|
187
|
+
timeout_seconds: int
|
|
188
|
+
|
|
189
|
+
use_compression: bool
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
class ConfigHTTPConfigAuthConfig(TypedDict, total=False):
|
|
193
|
+
token: Required[str]
|
|
194
|
+
|
|
195
|
+
header_name: Required[str]
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
class ConfigHTTPConfigAuth(TypedDict, total=False):
|
|
199
|
+
config: Required[ConfigHTTPConfigAuthConfig]
|
|
200
|
+
|
|
201
|
+
type: Required[Literal["token"]]
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
class ConfigHTTPConfigRetryResponseAction(TypedDict, total=False):
|
|
205
|
+
action: Required[Literal["drop", "retry", "append"]]
|
|
206
|
+
|
|
207
|
+
description: str
|
|
208
|
+
|
|
209
|
+
match_payload: str
|
|
210
|
+
|
|
211
|
+
match_status_code: int
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
class ConfigHTTPConfigRetry(TypedDict, total=False):
|
|
215
|
+
url: Required[str]
|
|
216
|
+
|
|
217
|
+
headers: Dict[str, str]
|
|
218
|
+
|
|
219
|
+
method: Literal["POST", "PUT"]
|
|
220
|
+
|
|
221
|
+
response_actions: Iterable[ConfigHTTPConfigRetryResponseAction]
|
|
222
|
+
|
|
223
|
+
timeout_seconds: int
|
|
224
|
+
|
|
225
|
+
use_compression: bool
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
class ConfigHTTPConfig(TypedDict, total=False):
|
|
229
|
+
upload: Required[ConfigHTTPConfigUpload]
|
|
230
|
+
|
|
231
|
+
append: ConfigHTTPConfigAppend
|
|
232
|
+
|
|
233
|
+
auth: ConfigHTTPConfigAuth
|
|
234
|
+
|
|
235
|
+
content_type: Literal["json", "text"]
|
|
236
|
+
|
|
237
|
+
retry: ConfigHTTPConfigRetry
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
Config: TypeAlias = Union[
|
|
241
|
+
ConfigS3GcoreConfig,
|
|
242
|
+
ConfigS3AmazonConfig,
|
|
243
|
+
ConfigS3OssConfig,
|
|
244
|
+
ConfigS3OtherConfig,
|
|
245
|
+
ConfigS3V1Config,
|
|
246
|
+
ConfigFtpConfig,
|
|
247
|
+
ConfigSftpConfig,
|
|
248
|
+
ConfigHTTPConfig,
|
|
249
|
+
]
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict, Union, Iterable, Optional
|
|
6
|
+
from typing_extensions import Literal, Required, TypeAlias, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"TargetUpdateParams",
|
|
10
|
+
"Config",
|
|
11
|
+
"ConfigS3GcoreConfig",
|
|
12
|
+
"ConfigS3AmazonConfig",
|
|
13
|
+
"ConfigS3OssConfig",
|
|
14
|
+
"ConfigS3OtherConfig",
|
|
15
|
+
"ConfigS3V1Config",
|
|
16
|
+
"ConfigFtpConfig",
|
|
17
|
+
"ConfigSftpConfig",
|
|
18
|
+
"ConfigHTTPConfig",
|
|
19
|
+
"ConfigHTTPConfigUpload",
|
|
20
|
+
"ConfigHTTPConfigUploadResponseAction",
|
|
21
|
+
"ConfigHTTPConfigAppend",
|
|
22
|
+
"ConfigHTTPConfigAppendResponseAction",
|
|
23
|
+
"ConfigHTTPConfigAuth",
|
|
24
|
+
"ConfigHTTPConfigAuthConfig",
|
|
25
|
+
"ConfigHTTPConfigRetry",
|
|
26
|
+
"ConfigHTTPConfigRetryResponseAction",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class TargetUpdateParams(TypedDict, total=False):
|
|
31
|
+
config: Config
|
|
32
|
+
"""Config for specific storage type."""
|
|
33
|
+
|
|
34
|
+
description: str
|
|
35
|
+
"""Description of the target."""
|
|
36
|
+
|
|
37
|
+
name: str
|
|
38
|
+
"""Name of the target."""
|
|
39
|
+
|
|
40
|
+
storage_type: Literal["s3_gcore", "s3_amazon", "s3_oss", "s3_other", "s3_v1", "ftp", "sftp", "http"]
|
|
41
|
+
"""Type of storage for logs."""
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class ConfigS3GcoreConfig(TypedDict, total=False):
|
|
45
|
+
access_key_id: Required[str]
|
|
46
|
+
|
|
47
|
+
bucket_name: Required[str]
|
|
48
|
+
|
|
49
|
+
endpoint: Required[str]
|
|
50
|
+
|
|
51
|
+
region: Required[str]
|
|
52
|
+
|
|
53
|
+
secret_access_key: Required[str]
|
|
54
|
+
|
|
55
|
+
directory: Optional[str]
|
|
56
|
+
|
|
57
|
+
use_path_style: bool
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
class ConfigS3AmazonConfig(TypedDict, total=False):
|
|
61
|
+
access_key_id: Required[str]
|
|
62
|
+
|
|
63
|
+
bucket_name: Required[str]
|
|
64
|
+
|
|
65
|
+
region: Required[str]
|
|
66
|
+
|
|
67
|
+
secret_access_key: Required[str]
|
|
68
|
+
|
|
69
|
+
directory: Optional[str]
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
class ConfigS3OssConfig(TypedDict, total=False):
|
|
73
|
+
access_key_id: Required[str]
|
|
74
|
+
|
|
75
|
+
bucket_name: Required[str]
|
|
76
|
+
|
|
77
|
+
secret_access_key: Required[str]
|
|
78
|
+
|
|
79
|
+
directory: Optional[str]
|
|
80
|
+
|
|
81
|
+
region: Optional[str]
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
class ConfigS3OtherConfig(TypedDict, total=False):
|
|
85
|
+
access_key_id: Required[str]
|
|
86
|
+
|
|
87
|
+
bucket_name: Required[str]
|
|
88
|
+
|
|
89
|
+
endpoint: Required[str]
|
|
90
|
+
|
|
91
|
+
region: Required[str]
|
|
92
|
+
|
|
93
|
+
secret_access_key: Required[str]
|
|
94
|
+
|
|
95
|
+
directory: Optional[str]
|
|
96
|
+
|
|
97
|
+
use_path_style: bool
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
class ConfigS3V1Config(TypedDict, total=False):
|
|
101
|
+
access_key_id: Required[str]
|
|
102
|
+
|
|
103
|
+
bucket_name: Required[str]
|
|
104
|
+
|
|
105
|
+
endpoint: Required[str]
|
|
106
|
+
|
|
107
|
+
region: Required[str]
|
|
108
|
+
|
|
109
|
+
secret_access_key: Required[str]
|
|
110
|
+
|
|
111
|
+
directory: Optional[str]
|
|
112
|
+
|
|
113
|
+
use_path_style: bool
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
class ConfigFtpConfig(TypedDict, total=False):
|
|
117
|
+
hostname: Required[str]
|
|
118
|
+
|
|
119
|
+
password: Required[str]
|
|
120
|
+
|
|
121
|
+
user: Required[str]
|
|
122
|
+
|
|
123
|
+
directory: Optional[str]
|
|
124
|
+
|
|
125
|
+
timeout_seconds: int
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
class ConfigSftpConfig(TypedDict, total=False):
|
|
129
|
+
hostname: Required[str]
|
|
130
|
+
|
|
131
|
+
user: Required[str]
|
|
132
|
+
|
|
133
|
+
directory: Optional[str]
|
|
134
|
+
|
|
135
|
+
key_passphrase: Optional[str]
|
|
136
|
+
|
|
137
|
+
password: Optional[str]
|
|
138
|
+
|
|
139
|
+
private_key: Optional[str]
|
|
140
|
+
|
|
141
|
+
timeout_seconds: int
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
class ConfigHTTPConfigUploadResponseAction(TypedDict, total=False):
|
|
145
|
+
action: Required[Literal["drop", "retry", "append"]]
|
|
146
|
+
|
|
147
|
+
description: str
|
|
148
|
+
|
|
149
|
+
match_payload: str
|
|
150
|
+
|
|
151
|
+
match_status_code: int
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
class ConfigHTTPConfigUpload(TypedDict, total=False):
|
|
155
|
+
url: Required[str]
|
|
156
|
+
|
|
157
|
+
headers: Dict[str, str]
|
|
158
|
+
|
|
159
|
+
method: Literal["POST", "PUT"]
|
|
160
|
+
|
|
161
|
+
response_actions: Iterable[ConfigHTTPConfigUploadResponseAction]
|
|
162
|
+
|
|
163
|
+
timeout_seconds: int
|
|
164
|
+
|
|
165
|
+
use_compression: bool
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
class ConfigHTTPConfigAppendResponseAction(TypedDict, total=False):
|
|
169
|
+
action: Required[Literal["drop", "retry", "append"]]
|
|
170
|
+
|
|
171
|
+
description: str
|
|
172
|
+
|
|
173
|
+
match_payload: str
|
|
174
|
+
|
|
175
|
+
match_status_code: int
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
class ConfigHTTPConfigAppend(TypedDict, total=False):
|
|
179
|
+
url: Required[str]
|
|
180
|
+
|
|
181
|
+
headers: Dict[str, str]
|
|
182
|
+
|
|
183
|
+
method: Literal["POST", "PUT"]
|
|
184
|
+
|
|
185
|
+
response_actions: Iterable[ConfigHTTPConfigAppendResponseAction]
|
|
186
|
+
|
|
187
|
+
timeout_seconds: int
|
|
188
|
+
|
|
189
|
+
use_compression: bool
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
class ConfigHTTPConfigAuthConfig(TypedDict, total=False):
|
|
193
|
+
token: Required[str]
|
|
194
|
+
|
|
195
|
+
header_name: Required[str]
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
class ConfigHTTPConfigAuth(TypedDict, total=False):
|
|
199
|
+
config: Required[ConfigHTTPConfigAuthConfig]
|
|
200
|
+
|
|
201
|
+
type: Required[Literal["token"]]
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
class ConfigHTTPConfigRetryResponseAction(TypedDict, total=False):
|
|
205
|
+
action: Required[Literal["drop", "retry", "append"]]
|
|
206
|
+
|
|
207
|
+
description: str
|
|
208
|
+
|
|
209
|
+
match_payload: str
|
|
210
|
+
|
|
211
|
+
match_status_code: int
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
class ConfigHTTPConfigRetry(TypedDict, total=False):
|
|
215
|
+
url: Required[str]
|
|
216
|
+
|
|
217
|
+
headers: Dict[str, str]
|
|
218
|
+
|
|
219
|
+
method: Literal["POST", "PUT"]
|
|
220
|
+
|
|
221
|
+
response_actions: Iterable[ConfigHTTPConfigRetryResponseAction]
|
|
222
|
+
|
|
223
|
+
timeout_seconds: int
|
|
224
|
+
|
|
225
|
+
use_compression: bool
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
class ConfigHTTPConfig(TypedDict, total=False):
|
|
229
|
+
upload: Required[ConfigHTTPConfigUpload]
|
|
230
|
+
|
|
231
|
+
append: ConfigHTTPConfigAppend
|
|
232
|
+
|
|
233
|
+
auth: ConfigHTTPConfigAuth
|
|
234
|
+
|
|
235
|
+
content_type: Literal["json", "text"]
|
|
236
|
+
|
|
237
|
+
retry: ConfigHTTPConfigRetry
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
Config: TypeAlias = Union[
|
|
241
|
+
ConfigS3GcoreConfig,
|
|
242
|
+
ConfigS3AmazonConfig,
|
|
243
|
+
ConfigS3OssConfig,
|
|
244
|
+
ConfigS3OtherConfig,
|
|
245
|
+
ConfigS3V1Config,
|
|
246
|
+
ConfigFtpConfig,
|
|
247
|
+
ConfigSftpConfig,
|
|
248
|
+
ConfigHTTPConfig,
|
|
249
|
+
]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from ..._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["LogsUploaderValidation"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class LogsUploaderValidation(BaseModel):
|
|
13
|
+
code: Optional[int] = None
|
|
14
|
+
"""Error code indicating the type of validation error."""
|
|
15
|
+
|
|
16
|
+
details: Optional[str] = None
|
|
17
|
+
"""Error message if the validation failed."""
|
|
18
|
+
|
|
19
|
+
status: Optional[Literal["in_progress", "successful", "failed"]] = None
|
|
20
|
+
"""Status of the validation."""
|
|
21
|
+
|
|
22
|
+
updated: Optional[datetime] = None
|
|
23
|
+
"""Time when the validation status was updated."""
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Union, Iterable
|
|
6
|
+
from typing_extensions import Required, Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
from ..._types import SequenceNotStr
|
|
9
|
+
from ..._utils import PropertyInfo
|
|
10
|
+
|
|
11
|
+
__all__ = ["MetricListParams", "FilterBy"]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class MetricListParams(TypedDict, total=False):
|
|
15
|
+
from_: Required[Annotated[str, PropertyInfo(alias="from")]]
|
|
16
|
+
"""Beginning period to fetch metrics (ISO 8601/RFC 3339 format, UTC.)
|
|
17
|
+
|
|
18
|
+
Examples:
|
|
19
|
+
|
|
20
|
+
- 2021-06-14T00:00:00Z
|
|
21
|
+
- 2021-06-14T00:00:00.000Z
|
|
22
|
+
|
|
23
|
+
The total number of points, which is determined as the difference between "from"
|
|
24
|
+
and "to" divided by "granularity", cannot exceed 1440. Exception: "speed"
|
|
25
|
+
metrics are limited to 72 points.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
metrics: Required[SequenceNotStr[str]]
|
|
29
|
+
"""Possible values:
|
|
30
|
+
|
|
31
|
+
- **`edge_bandwidth`** - Bandwidth from client to CDN (bit/s.)
|
|
32
|
+
- **`edge_requests`** - Number of requests per interval (requests/s.)
|
|
33
|
+
- **`edge_requests_total`** - Total number of requests per interval.
|
|
34
|
+
- **`edge_status_1xx`** - Number of 1xx status codes from edge.
|
|
35
|
+
- **`edge_status_200`** - Number of 200 status codes from edge.
|
|
36
|
+
- **`edge_status_204`** - Number of 204 status codes from edge.
|
|
37
|
+
- **`edge_status_206`** - Number of 206 status codes from edge.
|
|
38
|
+
- **`edge_status_2xx`** - Number of 2xx status codes from edge.
|
|
39
|
+
- **`edge_status_301`** - Number of 301 status codes from edge.
|
|
40
|
+
- **`edge_status_302`** - Number of 302 status codes from edge.
|
|
41
|
+
- **`edge_status_304`** - Number of 304 status codes from edge.
|
|
42
|
+
- **`edge_status_3xx`** - Number of 3xx status codes from edge.
|
|
43
|
+
- **`edge_status_400`** - Number of 400 status codes from edge.
|
|
44
|
+
- **`edge_status_401`** - Number of 401 status codes from edge.
|
|
45
|
+
- **`edge_status_403`** - Number of 403 status codes from edge.
|
|
46
|
+
- **`edge_status_404`** - Number of 404 status codes from edge.
|
|
47
|
+
- **`edge_status_416`** - Number of 416 status codes from edge.
|
|
48
|
+
- **`edge_status_429`** - Number of 429 status codes from edge.
|
|
49
|
+
- **`edge_status_4xx`** - Number of 4xx status codes from edge.
|
|
50
|
+
- **`edge_status_500`** - Number of 500 status codes from edge.
|
|
51
|
+
- **`edge_status_501`** - Number of 501 status codes from edge.
|
|
52
|
+
- **`edge_status_502`** - Number of 502 status codes from edge.
|
|
53
|
+
- **`edge_status_503`** - Number of 503 status codes from edge.
|
|
54
|
+
- **`edge_status_504`** - Number of 504 status codes from edge.
|
|
55
|
+
- **`edge_status_505`** - Number of 505 status codes from edge.
|
|
56
|
+
- **`edge_status_5xx`** - Number of 5xx status codes from edge.
|
|
57
|
+
- **`edge_hit_ratio`** - Percent of cache hits (0.0 - 1.0).
|
|
58
|
+
- **`edge_hit_bytes`** - Number of bytes sent back when cache hits.
|
|
59
|
+
- **`origin_bandwidth`** - Bandwidth from CDN to Origin (bit/s.)
|
|
60
|
+
- **`origin_requests`** - Number of requests per interval (requests/s.)
|
|
61
|
+
- **`origin_status_1xx`** - Number of 1xx status from origin.
|
|
62
|
+
- **`origin_status_200`** - Number of 200 status from origin.
|
|
63
|
+
- **`origin_status_204`** - Number of 204 status from origin.
|
|
64
|
+
- **`origin_status_206`** - Number of 206 status from origin.
|
|
65
|
+
- **`origin_status_2xx`** - Number of 2xx status from origin.
|
|
66
|
+
- **`origin_status_301`** - Number of 301 status from origin.
|
|
67
|
+
- **`origin_status_302`** - Number of 302 status from origin.
|
|
68
|
+
- **`origin_status_304`** - Number of 304 status from origin.
|
|
69
|
+
- **`origin_status_3xx`** - Number of 3xx status from origin.
|
|
70
|
+
- **`origin_status_400`** - Number of 400 status from origin.
|
|
71
|
+
- **`origin_status_401`** - Number of 401 status from origin.
|
|
72
|
+
- **`origin_status_403`** - Number of 403 status from origin.
|
|
73
|
+
- **`origin_status_404`** - Number of 404 status from origin.
|
|
74
|
+
- **`origin_status_416`** - Number of 416 status from origin.
|
|
75
|
+
- **`origin_status_429`** - Number of 426 status from origin.
|
|
76
|
+
- **`origin_status_4xx`** - Number of 4xx status from origin.
|
|
77
|
+
- **`origin_status_500`** - Number of 500 status from origin.
|
|
78
|
+
- **`origin_status_501`** - Number of 501 status from origin.
|
|
79
|
+
- **`origin_status_502`** - Number of 502 status from origin.
|
|
80
|
+
- **`origin_status_503`** - Number of 503 status from origin.
|
|
81
|
+
- **`origin_status_504`** - Number of 504 status from origin.
|
|
82
|
+
- **`origin_status_505`** - Number of 505 status from origin.
|
|
83
|
+
- **`origin_status_5xx`** - Number of 5xx status from origin.
|
|
84
|
+
- **`edge_download_speed`** - Download speed from edge in KB/s (includes only
|
|
85
|
+
requests that status was in the range [200, 300].)
|
|
86
|
+
- **`origin_download_speed`** - Download speed from origin in KB/s (includes
|
|
87
|
+
only requests that status was in the range [200, 300].)
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
to: Required[str]
|
|
91
|
+
"""Specifies ending period to fetch metrics (ISO 8601/RFC 3339 format, UTC)
|
|
92
|
+
|
|
93
|
+
Examples:
|
|
94
|
+
|
|
95
|
+
- 2021-06-15T00:00:00Z
|
|
96
|
+
- 2021-06-15T00:00:00.000Z
|
|
97
|
+
|
|
98
|
+
The total number of points, which is determined as the difference between "from"
|
|
99
|
+
and "to" divided by "granularity", cannot exceed 1440. Exception: "speed"
|
|
100
|
+
metrics are limited to 72 points.
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
filter_by: Iterable[FilterBy]
|
|
104
|
+
"""Each item represents one filter statement."""
|
|
105
|
+
|
|
106
|
+
granularity: str
|
|
107
|
+
"""Duration of the time blocks into which the data is divided.
|
|
108
|
+
|
|
109
|
+
The value must correspond to the ISO 8601 period format.
|
|
110
|
+
|
|
111
|
+
Examples:
|
|
112
|
+
|
|
113
|
+
- P1D
|
|
114
|
+
- PT5M
|
|
115
|
+
|
|
116
|
+
Notes:
|
|
117
|
+
|
|
118
|
+
- The total number of points, which is determined as the difference between
|
|
119
|
+
"from" and "to" divided by "granularity", cannot exceed 1440. Exception:
|
|
120
|
+
"speed" metrics are limited to 72 points.
|
|
121
|
+
- For "speed" metrics the value must be a multiple of 5.
|
|
122
|
+
"""
|
|
123
|
+
|
|
124
|
+
group_by: SequenceNotStr[str]
|
|
125
|
+
"""Output data grouping.
|
|
126
|
+
|
|
127
|
+
Possible values:
|
|
128
|
+
|
|
129
|
+
- **resource** - Data is grouped by CDN resource.
|
|
130
|
+
- **cname** - Data is grouped by common names.
|
|
131
|
+
- **region** – Data is grouped by regions (continents.) Available for "speed"
|
|
132
|
+
metrics only.
|
|
133
|
+
- **isp** - Data is grouped by ISP names. Available for "speed" metrics only.
|
|
134
|
+
"""
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
class FilterBy(TypedDict, total=False):
|
|
138
|
+
field: Required[str]
|
|
139
|
+
"""Defines the parameters by that data can be filtered.
|
|
140
|
+
|
|
141
|
+
Possible values:
|
|
142
|
+
|
|
143
|
+
- **resource** - Data is filtered by CDN resource ID.
|
|
144
|
+
- **cname** - Data is filtered by common name.
|
|
145
|
+
- **region** - Data is filtered by region (continent.) Available for "speed"
|
|
146
|
+
metrics only.
|
|
147
|
+
- **isp** - Data is filtered by ISP name. Available for "speed" metrics only.
|
|
148
|
+
"""
|
|
149
|
+
|
|
150
|
+
op: Required[str]
|
|
151
|
+
"""Comparison operator to be applied.
|
|
152
|
+
|
|
153
|
+
Possible values:
|
|
154
|
+
|
|
155
|
+
- **in** - 'IN' operator.
|
|
156
|
+
- **`not_in`** - 'NOT IN' operator.
|
|
157
|
+
- **gt** - '>' operator.
|
|
158
|
+
- **gte** - '>=' operator.
|
|
159
|
+
- **lt** - '<' operator.
|
|
160
|
+
- **lte** - '<=' operator.
|
|
161
|
+
- **eq** - '==' operator.
|
|
162
|
+
- **ne** - '!=' operator.
|
|
163
|
+
- **like** - 'LIKE' operator.
|
|
164
|
+
- **`not_like`** - 'NOT LIKE' operator.
|
|
165
|
+
"""
|
|
166
|
+
|
|
167
|
+
values: Required[SequenceNotStr[Union[float, str]]]
|
|
168
|
+
"""Contains one or more values to be compared against."""
|