docker-engine-api 0.2.1
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.
- checksums.yaml +7 -0
- data/.ignore +2 -0
- data/CHANGELOG.md +33 -0
- data/README.md +232 -0
- data/SECURITY.md +27 -0
- data/lib/docker_engine_api/client.rb +109 -0
- data/lib/docker_engine_api/errors.rb +228 -0
- data/lib/docker_engine_api/file_part.rb +58 -0
- data/lib/docker_engine_api/internal/transport/base_client.rb +571 -0
- data/lib/docker_engine_api/internal/transport/pooled_net_requester.rb +210 -0
- data/lib/docker_engine_api/internal/type/array_of.rb +168 -0
- data/lib/docker_engine_api/internal/type/base_model.rb +534 -0
- data/lib/docker_engine_api/internal/type/base_page.rb +55 -0
- data/lib/docker_engine_api/internal/type/boolean.rb +77 -0
- data/lib/docker_engine_api/internal/type/converter.rb +327 -0
- data/lib/docker_engine_api/internal/type/enum.rb +131 -0
- data/lib/docker_engine_api/internal/type/file_input.rb +111 -0
- data/lib/docker_engine_api/internal/type/hash_of.rb +188 -0
- data/lib/docker_engine_api/internal/type/request_parameters.rb +42 -0
- data/lib/docker_engine_api/internal/type/union.rb +245 -0
- data/lib/docker_engine_api/internal/type/unknown.rb +81 -0
- data/lib/docker_engine_api/internal/util.rb +920 -0
- data/lib/docker_engine_api/internal.rb +20 -0
- data/lib/docker_engine_api/models/auth_login_params.rb +32 -0
- data/lib/docker_engine_api/models/auth_response.rb +27 -0
- data/lib/docker_engine_api/models/config.rb +307 -0
- data/lib/docker_engine_api/models/config_create_params.rb +24 -0
- data/lib/docker_engine_api/models/config_create_response.rb +19 -0
- data/lib/docker_engine_api/models/config_delete_params.rb +14 -0
- data/lib/docker_engine_api/models/config_inspect_params.rb +14 -0
- data/lib/docker_engine_api/models/config_list_params.rb +33 -0
- data/lib/docker_engine_api/models/config_list_response.rb +8 -0
- data/lib/docker_engine_api/models/config_update_params.rb +26 -0
- data/lib/docker_engine_api/models/connect_request.rb +198 -0
- data/lib/docker_engine_api/models/container.rb +2515 -0
- data/lib/docker_engine_api/models/container_archive_params.rb +22 -0
- data/lib/docker_engine_api/models/container_attach_params.rb +73 -0
- data/lib/docker_engine_api/models/container_changes_params.rb +14 -0
- data/lib/docker_engine_api/models/container_changes_response.rb +9 -0
- data/lib/docker_engine_api/models/container_create_params.rb +1720 -0
- data/lib/docker_engine_api/models/container_delete_params.rb +38 -0
- data/lib/docker_engine_api/models/container_exec_params.rb +111 -0
- data/lib/docker_engine_api/models/container_exec_response.rb +19 -0
- data/lib/docker_engine_api/models/container_export_params.rb +14 -0
- data/lib/docker_engine_api/models/container_inspect_params.rb +22 -0
- data/lib/docker_engine_api/models/container_kill_params.rb +25 -0
- data/lib/docker_engine_api/models/container_list_params.rb +70 -0
- data/lib/docker_engine_api/models/container_list_response.rb +8 -0
- data/lib/docker_engine_api/models/container_logs_params.rb +74 -0
- data/lib/docker_engine_api/models/container_pause_params.rb +14 -0
- data/lib/docker_engine_api/models/container_prune_params.rb +35 -0
- data/lib/docker_engine_api/models/container_prune_response.rb +27 -0
- data/lib/docker_engine_api/models/container_rename_params.rb +22 -0
- data/lib/docker_engine_api/models/container_resize_params.rb +30 -0
- data/lib/docker_engine_api/models/container_restart_params.rb +33 -0
- data/lib/docker_engine_api/models/container_start_params.rb +27 -0
- data/lib/docker_engine_api/models/container_stats_params.rb +35 -0
- data/lib/docker_engine_api/models/container_stop_params.rb +33 -0
- data/lib/docker_engine_api/models/container_top_params.rb +22 -0
- data/lib/docker_engine_api/models/container_unpause_params.rb +14 -0
- data/lib/docker_engine_api/models/container_update_params.rb +606 -0
- data/lib/docker_engine_api/models/container_wait_params.rb +41 -0
- data/lib/docker_engine_api/models/create_request.rb +348 -0
- data/lib/docker_engine_api/models/create_response.rb +27 -0
- data/lib/docker_engine_api/models/delete_item.rb +24 -0
- data/lib/docker_engine_api/models/disconnect_request.rb +27 -0
- data/lib/docker_engine_api/models/distribution_inspect_params.rb +14 -0
- data/lib/docker_engine_api/models/error.rb +18 -0
- data/lib/docker_engine_api/models/exec_inspect_params.rb +14 -0
- data/lib/docker_engine_api/models/exec_inspect_response.rb +87 -0
- data/lib/docker_engine_api/models/exec_resize_params.rb +30 -0
- data/lib/docker_engine_api/models/exec_start_params.rb +41 -0
- data/lib/docker_engine_api/models/filesystem_change.rb +55 -0
- data/lib/docker_engine_api/models/history_item.rb +47 -0
- data/lib/docker_engine_api/models/image.rb +1395 -0
- data/lib/docker_engine_api/models/image_build_params.rb +283 -0
- data/lib/docker_engine_api/models/image_build_prune_params.rb +71 -0
- data/lib/docker_engine_api/models/image_build_prune_response.rb +24 -0
- data/lib/docker_engine_api/models/image_commit_params.rb +70 -0
- data/lib/docker_engine_api/models/image_commit_response.rb +19 -0
- data/lib/docker_engine_api/models/image_delete_params.rb +43 -0
- data/lib/docker_engine_api/models/image_delete_response.rb +8 -0
- data/lib/docker_engine_api/models/image_get_all_params.rb +37 -0
- data/lib/docker_engine_api/models/image_get_params.rb +29 -0
- data/lib/docker_engine_api/models/image_history_params.rb +34 -0
- data/lib/docker_engine_api/models/image_history_response.rb +8 -0
- data/lib/docker_engine_api/models/image_inspect_params.rb +22 -0
- data/lib/docker_engine_api/models/image_list_params.rb +68 -0
- data/lib/docker_engine_api/models/image_list_response.rb +8 -0
- data/lib/docker_engine_api/models/image_load_params.rb +44 -0
- data/lib/docker_engine_api/models/image_prune_params.rb +35 -0
- data/lib/docker_engine_api/models/image_prune_response.rb +27 -0
- data/lib/docker_engine_api/models/image_pull_params.rb +115 -0
- data/lib/docker_engine_api/models/image_push_params.rb +49 -0
- data/lib/docker_engine_api/models/image_search_params.rb +45 -0
- data/lib/docker_engine_api/models/image_search_response.rb +55 -0
- data/lib/docker_engine_api/models/image_tag_params.rb +30 -0
- data/lib/docker_engine_api/models/info.rb +1488 -0
- data/lib/docker_engine_api/models/inspect.rb +221 -0
- data/lib/docker_engine_api/models/inspect_response.rb +39 -0
- data/lib/docker_engine_api/models/list_response.rb +32 -0
- data/lib/docker_engine_api/models/network.rb +253 -0
- data/lib/docker_engine_api/models/network_connect_params.rb +14 -0
- data/lib/docker_engine_api/models/network_create_params.rb +210 -0
- data/lib/docker_engine_api/models/network_delete_params.rb +14 -0
- data/lib/docker_engine_api/models/network_disconnect_params.rb +14 -0
- data/lib/docker_engine_api/models/network_inspect_params.rb +30 -0
- data/lib/docker_engine_api/models/network_inspect_response.rb +131 -0
- data/lib/docker_engine_api/models/network_list_params.rb +40 -0
- data/lib/docker_engine_api/models/network_list_response.rb +8 -0
- data/lib/docker_engine_api/models/network_prune_params.rb +35 -0
- data/lib/docker_engine_api/models/network_prune_response.rb +17 -0
- data/lib/docker_engine_api/models/node.rb +459 -0
- data/lib/docker_engine_api/models/node_delete_params.rb +22 -0
- data/lib/docker_engine_api/models/node_inspect_params.rb +14 -0
- data/lib/docker_engine_api/models/node_list_params.rb +34 -0
- data/lib/docker_engine_api/models/node_list_response.rb +8 -0
- data/lib/docker_engine_api/models/node_update_params.rb +26 -0
- data/lib/docker_engine_api/models/plugin.rb +532 -0
- data/lib/docker_engine_api/models/plugin_create_params.rb +33 -0
- data/lib/docker_engine_api/models/plugin_delete_params.rb +26 -0
- data/lib/docker_engine_api/models/plugin_disable_params.rb +25 -0
- data/lib/docker_engine_api/models/plugin_enable_params.rb +22 -0
- data/lib/docker_engine_api/models/plugin_inspect_params.rb +14 -0
- data/lib/docker_engine_api/models/plugin_list_params.rb +31 -0
- data/lib/docker_engine_api/models/plugin_list_response.rb +8 -0
- data/lib/docker_engine_api/models/plugin_privileges_params.rb +26 -0
- data/lib/docker_engine_api/models/plugin_privileges_response.rb +8 -0
- data/lib/docker_engine_api/models/plugin_pull_params.rb +51 -0
- data/lib/docker_engine_api/models/plugin_push_params.rb +14 -0
- data/lib/docker_engine_api/models/plugin_set_params.rb +20 -0
- data/lib/docker_engine_api/models/plugin_upgrade_params.rb +41 -0
- data/lib/docker_engine_api/models/privilege.rb +29 -0
- data/lib/docker_engine_api/models/secret.rb +77 -0
- data/lib/docker_engine_api/models/secret_create_params.rb +24 -0
- data/lib/docker_engine_api/models/secret_create_response.rb +19 -0
- data/lib/docker_engine_api/models/secret_delete_params.rb +14 -0
- data/lib/docker_engine_api/models/secret_inspect_params.rb +14 -0
- data/lib/docker_engine_api/models/secret_list_params.rb +33 -0
- data/lib/docker_engine_api/models/secret_list_response.rb +8 -0
- data/lib/docker_engine_api/models/secret_update_params.rb +26 -0
- data/lib/docker_engine_api/models/service.rb +524 -0
- data/lib/docker_engine_api/models/service_create_params.rb +34 -0
- data/lib/docker_engine_api/models/service_delete_params.rb +14 -0
- data/lib/docker_engine_api/models/service_inspect_params.rb +22 -0
- data/lib/docker_engine_api/models/service_list_params.rb +41 -0
- data/lib/docker_engine_api/models/service_list_response.rb +8 -0
- data/lib/docker_engine_api/models/service_logs_params.rb +74 -0
- data/lib/docker_engine_api/models/service_update_params.rb +78 -0
- data/lib/docker_engine_api/models/spec.rb +510 -0
- data/lib/docker_engine_api/models/stats_response.rb +950 -0
- data/lib/docker_engine_api/models/summary.rb +767 -0
- data/lib/docker_engine_api/models/swarm.rb +198 -0
- data/lib/docker_engine_api/models/swarm_init_params.rb +101 -0
- data/lib/docker_engine_api/models/swarm_init_response.rb +7 -0
- data/lib/docker_engine_api/models/swarm_inspect_params.rb +14 -0
- data/lib/docker_engine_api/models/swarm_join_params.rb +70 -0
- data/lib/docker_engine_api/models/swarm_leave_params.rb +26 -0
- data/lib/docker_engine_api/models/swarm_unlock_key_params.rb +14 -0
- data/lib/docker_engine_api/models/swarm_unlock_key_response.rb +17 -0
- data/lib/docker_engine_api/models/swarm_unlock_params.rb +22 -0
- data/lib/docker_engine_api/models/swarm_update_params.rb +50 -0
- data/lib/docker_engine_api/models/system_data_usage_params.rb +46 -0
- data/lib/docker_engine_api/models/system_data_usage_response.rb +260 -0
- data/lib/docker_engine_api/models/system_events_params.rb +58 -0
- data/lib/docker_engine_api/models/system_events_response.rb +126 -0
- data/lib/docker_engine_api/models/system_info_params.rb +14 -0
- data/lib/docker_engine_api/models/system_ping_params.rb +14 -0
- data/lib/docker_engine_api/models/system_ping_response.rb +7 -0
- data/lib/docker_engine_api/models/system_version_params.rb +14 -0
- data/lib/docker_engine_api/models/task.rb +471 -0
- data/lib/docker_engine_api/models/task_inspect_params.rb +14 -0
- data/lib/docker_engine_api/models/task_list_params.rb +35 -0
- data/lib/docker_engine_api/models/task_list_response.rb +8 -0
- data/lib/docker_engine_api/models/task_logs_params.rb +74 -0
- data/lib/docker_engine_api/models/top_response.rb +33 -0
- data/lib/docker_engine_api/models/update_response.rb +19 -0
- data/lib/docker_engine_api/models/version.rb +164 -0
- data/lib/docker_engine_api/models/volume.rb +651 -0
- data/lib/docker_engine_api/models/volume_create_params.rb +14 -0
- data/lib/docker_engine_api/models/volume_delete_params.rb +22 -0
- data/lib/docker_engine_api/models/volume_inspect_params.rb +14 -0
- data/lib/docker_engine_api/models/volume_list_params.rb +34 -0
- data/lib/docker_engine_api/models/volume_prune_params.rb +33 -0
- data/lib/docker_engine_api/models/volume_prune_response.rb +25 -0
- data/lib/docker_engine_api/models/volume_update_params.rb +325 -0
- data/lib/docker_engine_api/models/wait_response.rb +41 -0
- data/lib/docker_engine_api/models.rb +312 -0
- data/lib/docker_engine_api/request_options.rb +78 -0
- data/lib/docker_engine_api/resources/auth.rb +38 -0
- data/lib/docker_engine_api/resources/configs.rb +130 -0
- data/lib/docker_engine_api/resources/containers.rb +854 -0
- data/lib/docker_engine_api/resources/distribution.rb +34 -0
- data/lib/docker_engine_api/resources/exec.rb +91 -0
- data/lib/docker_engine_api/resources/images.rb +676 -0
- data/lib/docker_engine_api/resources/networks.rb +218 -0
- data/lib/docker_engine_api/resources/nodes.rb +113 -0
- data/lib/docker_engine_api/resources/plugins.rb +317 -0
- data/lib/docker_engine_api/resources/secrets.rb +130 -0
- data/lib/docker_engine_api/resources/services.rb +195 -0
- data/lib/docker_engine_api/resources/swarm.rb +183 -0
- data/lib/docker_engine_api/resources/system.rb +155 -0
- data/lib/docker_engine_api/resources/tasks.rb +103 -0
- data/lib/docker_engine_api/resources/volumes.rb +161 -0
- data/lib/docker_engine_api/version.rb +5 -0
- data/lib/docker_engine_api.rb +234 -0
- data/manifest.yaml +17 -0
- data/rbi/docker_engine_api/client.rbi +80 -0
- data/rbi/docker_engine_api/errors.rbi +205 -0
- data/rbi/docker_engine_api/file_part.rbi +37 -0
- data/rbi/docker_engine_api/internal/transport/base_client.rbi +304 -0
- data/rbi/docker_engine_api/internal/transport/pooled_net_requester.rbi +84 -0
- data/rbi/docker_engine_api/internal/type/array_of.rbi +108 -0
- data/rbi/docker_engine_api/internal/type/base_model.rbi +314 -0
- data/rbi/docker_engine_api/internal/type/base_page.rbi +43 -0
- data/rbi/docker_engine_api/internal/type/boolean.rbi +58 -0
- data/rbi/docker_engine_api/internal/type/converter.rbi +225 -0
- data/rbi/docker_engine_api/internal/type/enum.rbi +82 -0
- data/rbi/docker_engine_api/internal/type/file_input.rbi +59 -0
- data/rbi/docker_engine_api/internal/type/hash_of.rbi +108 -0
- data/rbi/docker_engine_api/internal/type/request_parameters.rbi +31 -0
- data/rbi/docker_engine_api/internal/type/union.rbi +134 -0
- data/rbi/docker_engine_api/internal/type/unknown.rbi +58 -0
- data/rbi/docker_engine_api/internal/util.rbi +487 -0
- data/rbi/docker_engine_api/internal.rbi +18 -0
- data/rbi/docker_engine_api/models/auth_login_params.rbi +65 -0
- data/rbi/docker_engine_api/models/auth_response.rbi +42 -0
- data/rbi/docker_engine_api/models/config.rbi +442 -0
- data/rbi/docker_engine_api/models/config_create_params.rbi +64 -0
- data/rbi/docker_engine_api/models/config_create_response.rbi +31 -0
- data/rbi/docker_engine_api/models/config_delete_params.rbi +32 -0
- data/rbi/docker_engine_api/models/config_inspect_params.rbi +32 -0
- data/rbi/docker_engine_api/models/config_list_params.rbi +62 -0
- data/rbi/docker_engine_api/models/config_list_response.rbi +11 -0
- data/rbi/docker_engine_api/models/config_update_params.rbi +45 -0
- data/rbi/docker_engine_api/models/connect_request.rbi +343 -0
- data/rbi/docker_engine_api/models/container.rbi +4645 -0
- data/rbi/docker_engine_api/models/container_archive_params.rbi +43 -0
- data/rbi/docker_engine_api/models/container_attach_params.rbi +120 -0
- data/rbi/docker_engine_api/models/container_changes_params.rbi +32 -0
- data/rbi/docker_engine_api/models/container_changes_response.rbi +13 -0
- data/rbi/docker_engine_api/models/container_create_params.rbi +3301 -0
- data/rbi/docker_engine_api/models/container_delete_params.rbi +71 -0
- data/rbi/docker_engine_api/models/container_exec_params.rbi +162 -0
- data/rbi/docker_engine_api/models/container_exec_response.rbi +31 -0
- data/rbi/docker_engine_api/models/container_export_params.rbi +32 -0
- data/rbi/docker_engine_api/models/container_inspect_params.rbi +46 -0
- data/rbi/docker_engine_api/models/container_kill_params.rbi +46 -0
- data/rbi/docker_engine_api/models/container_list_params.rbi +124 -0
- data/rbi/docker_engine_api/models/container_list_response.rbi +11 -0
- data/rbi/docker_engine_api/models/container_logs_params.rbi +117 -0
- data/rbi/docker_engine_api/models/container_pause_params.rbi +32 -0
- data/rbi/docker_engine_api/models/container_prune_params.rbi +66 -0
- data/rbi/docker_engine_api/models/container_prune_response.rbi +51 -0
- data/rbi/docker_engine_api/models/container_rename_params.rbi +43 -0
- data/rbi/docker_engine_api/models/container_resize_params.rbi +54 -0
- data/rbi/docker_engine_api/models/container_restart_params.rbi +60 -0
- data/rbi/docker_engine_api/models/container_start_params.rbi +53 -0
- data/rbi/docker_engine_api/models/container_stats_params.rbi +64 -0
- data/rbi/docker_engine_api/models/container_stop_params.rbi +60 -0
- data/rbi/docker_engine_api/models/container_top_params.rbi +46 -0
- data/rbi/docker_engine_api/models/container_unpause_params.rbi +32 -0
- data/rbi/docker_engine_api/models/container_update_params.rbi +1121 -0
- data/rbi/docker_engine_api/models/container_wait_params.rbi +101 -0
- data/rbi/docker_engine_api/models/create_request.rbi +708 -0
- data/rbi/docker_engine_api/models/create_response.rbi +39 -0
- data/rbi/docker_engine_api/models/delete_item.rbi +41 -0
- data/rbi/docker_engine_api/models/disconnect_request.rbi +43 -0
- data/rbi/docker_engine_api/models/distribution_inspect_params.rbi +32 -0
- data/rbi/docker_engine_api/models/error.rbi +28 -0
- data/rbi/docker_engine_api/models/exec_inspect_params.rbi +32 -0
- data/rbi/docker_engine_api/models/exec_inspect_response.rbi +135 -0
- data/rbi/docker_engine_api/models/exec_resize_params.rbi +54 -0
- data/rbi/docker_engine_api/models/exec_start_params.rbi +68 -0
- data/rbi/docker_engine_api/models/filesystem_change.rbi +93 -0
- data/rbi/docker_engine_api/models/history_item.rbi +62 -0
- data/rbi/docker_engine_api/models/image.rbi +2353 -0
- data/rbi/docker_engine_api/models/image_build_params.rbi +434 -0
- data/rbi/docker_engine_api/models/image_build_prune_params.rbi +121 -0
- data/rbi/docker_engine_api/models/image_build_prune_response.rbi +49 -0
- data/rbi/docker_engine_api/models/image_commit_params.rbi +115 -0
- data/rbi/docker_engine_api/models/image_commit_response.rbi +31 -0
- data/rbi/docker_engine_api/models/image_delete_params.rbi +75 -0
- data/rbi/docker_engine_api/models/image_delete_response.rbi +11 -0
- data/rbi/docker_engine_api/models/image_get_all_params.rbi +68 -0
- data/rbi/docker_engine_api/models/image_get_params.rbi +57 -0
- data/rbi/docker_engine_api/models/image_history_params.rbi +64 -0
- data/rbi/docker_engine_api/models/image_history_response.rbi +11 -0
- data/rbi/docker_engine_api/models/image_inspect_params.rbi +49 -0
- data/rbi/docker_engine_api/models/image_list_params.rbi +115 -0
- data/rbi/docker_engine_api/models/image_list_response.rbi +11 -0
- data/rbi/docker_engine_api/models/image_load_params.rbi +74 -0
- data/rbi/docker_engine_api/models/image_prune_params.rbi +66 -0
- data/rbi/docker_engine_api/models/image_prune_response.rbi +58 -0
- data/rbi/docker_engine_api/models/image_pull_params.rbi +189 -0
- data/rbi/docker_engine_api/models/image_push_params.rbi +84 -0
- data/rbi/docker_engine_api/models/image_search_params.rbi +76 -0
- data/rbi/docker_engine_api/models/image_search_response.rbi +95 -0
- data/rbi/docker_engine_api/models/image_tag_params.rbi +60 -0
- data/rbi/docker_engine_api/models/info.rbi +2564 -0
- data/rbi/docker_engine_api/models/inspect.rbi +359 -0
- data/rbi/docker_engine_api/models/inspect_response.rbi +77 -0
- data/rbi/docker_engine_api/models/list_response.rbi +55 -0
- data/rbi/docker_engine_api/models/network.rbi +427 -0
- data/rbi/docker_engine_api/models/network_connect_params.rbi +32 -0
- data/rbi/docker_engine_api/models/network_create_params.rbi +373 -0
- data/rbi/docker_engine_api/models/network_delete_params.rbi +32 -0
- data/rbi/docker_engine_api/models/network_disconnect_params.rbi +32 -0
- data/rbi/docker_engine_api/models/network_inspect_params.rbi +60 -0
- data/rbi/docker_engine_api/models/network_inspect_response.rbi +336 -0
- data/rbi/docker_engine_api/models/network_list_params.rbi +76 -0
- data/rbi/docker_engine_api/models/network_list_response.rbi +11 -0
- data/rbi/docker_engine_api/models/network_prune_params.rbi +66 -0
- data/rbi/docker_engine_api/models/network_prune_response.rbi +35 -0
- data/rbi/docker_engine_api/models/node.rbi +909 -0
- data/rbi/docker_engine_api/models/node_delete_params.rbi +49 -0
- data/rbi/docker_engine_api/models/node_inspect_params.rbi +32 -0
- data/rbi/docker_engine_api/models/node_list_params.rbi +64 -0
- data/rbi/docker_engine_api/models/node_list_response.rbi +11 -0
- data/rbi/docker_engine_api/models/node_update_params.rbi +45 -0
- data/rbi/docker_engine_api/models/plugin.rbi +835 -0
- data/rbi/docker_engine_api/models/plugin_create_params.rbi +54 -0
- data/rbi/docker_engine_api/models/plugin_delete_params.rbi +51 -0
- data/rbi/docker_engine_api/models/plugin_disable_params.rbi +49 -0
- data/rbi/docker_engine_api/models/plugin_enable_params.rbi +46 -0
- data/rbi/docker_engine_api/models/plugin_inspect_params.rbi +32 -0
- data/rbi/docker_engine_api/models/plugin_list_params.rbi +58 -0
- data/rbi/docker_engine_api/models/plugin_list_response.rbi +11 -0
- data/rbi/docker_engine_api/models/plugin_privileges_params.rbi +45 -0
- data/rbi/docker_engine_api/models/plugin_privileges_response.rbi +11 -0
- data/rbi/docker_engine_api/models/plugin_pull_params.rbi +83 -0
- data/rbi/docker_engine_api/models/plugin_push_params.rbi +32 -0
- data/rbi/docker_engine_api/models/plugin_set_params.rbi +44 -0
- data/rbi/docker_engine_api/models/plugin_upgrade_params.rbi +68 -0
- data/rbi/docker_engine_api/models/privilege.rbi +49 -0
- data/rbi/docker_engine_api/models/secret.rbi +125 -0
- data/rbi/docker_engine_api/models/secret_create_params.rbi +64 -0
- data/rbi/docker_engine_api/models/secret_create_response.rbi +31 -0
- data/rbi/docker_engine_api/models/secret_delete_params.rbi +32 -0
- data/rbi/docker_engine_api/models/secret_inspect_params.rbi +32 -0
- data/rbi/docker_engine_api/models/secret_list_params.rbi +62 -0
- data/rbi/docker_engine_api/models/secret_list_response.rbi +11 -0
- data/rbi/docker_engine_api/models/secret_update_params.rbi +45 -0
- data/rbi/docker_engine_api/models/service.rbi +1093 -0
- data/rbi/docker_engine_api/models/service_create_params.rbi +79 -0
- data/rbi/docker_engine_api/models/service_delete_params.rbi +32 -0
- data/rbi/docker_engine_api/models/service_inspect_params.rbi +49 -0
- data/rbi/docker_engine_api/models/service_list_params.rbi +76 -0
- data/rbi/docker_engine_api/models/service_list_response.rbi +11 -0
- data/rbi/docker_engine_api/models/service_logs_params.rbi +117 -0
- data/rbi/docker_engine_api/models/service_update_params.rbi +168 -0
- data/rbi/docker_engine_api/models/spec.rbi +1030 -0
- data/rbi/docker_engine_api/models/stats_response.rbi +1772 -0
- data/rbi/docker_engine_api/models/summary.rbi +1332 -0
- data/rbi/docker_engine_api/models/swarm.rbi +315 -0
- data/rbi/docker_engine_api/models/swarm_init_params.rbi +162 -0
- data/rbi/docker_engine_api/models/swarm_init_response.rbi +7 -0
- data/rbi/docker_engine_api/models/swarm_inspect_params.rbi +32 -0
- data/rbi/docker_engine_api/models/swarm_join_params.rbi +119 -0
- data/rbi/docker_engine_api/models/swarm_leave_params.rbi +51 -0
- data/rbi/docker_engine_api/models/swarm_unlock_key_params.rbi +32 -0
- data/rbi/docker_engine_api/models/swarm_unlock_key_response.rbi +33 -0
- data/rbi/docker_engine_api/models/swarm_unlock_params.rbi +49 -0
- data/rbi/docker_engine_api/models/swarm_update_params.rbi +81 -0
- data/rbi/docker_engine_api/models/system_data_usage_params.rbi +111 -0
- data/rbi/docker_engine_api/models/system_data_usage_response.rbi +460 -0
- data/rbi/docker_engine_api/models/system_events_params.rbi +105 -0
- data/rbi/docker_engine_api/models/system_events_response.rbi +286 -0
- data/rbi/docker_engine_api/models/system_info_params.rbi +32 -0
- data/rbi/docker_engine_api/models/system_ping_params.rbi +32 -0
- data/rbi/docker_engine_api/models/system_ping_response.rbi +7 -0
- data/rbi/docker_engine_api/models/system_version_params.rbi +32 -0
- data/rbi/docker_engine_api/models/task.rbi +921 -0
- data/rbi/docker_engine_api/models/task_inspect_params.rbi +32 -0
- data/rbi/docker_engine_api/models/task_list_params.rbi +66 -0
- data/rbi/docker_engine_api/models/task_list_response.rbi +11 -0
- data/rbi/docker_engine_api/models/task_logs_params.rbi +117 -0
- data/rbi/docker_engine_api/models/top_response.rbi +54 -0
- data/rbi/docker_engine_api/models/update_response.rbi +34 -0
- data/rbi/docker_engine_api/models/version.rbi +256 -0
- data/rbi/docker_engine_api/models/volume.rbi +1230 -0
- data/rbi/docker_engine_api/models/volume_create_params.rbi +32 -0
- data/rbi/docker_engine_api/models/volume_delete_params.rbi +49 -0
- data/rbi/docker_engine_api/models/volume_inspect_params.rbi +32 -0
- data/rbi/docker_engine_api/models/volume_list_params.rbi +64 -0
- data/rbi/docker_engine_api/models/volume_prune_params.rbi +62 -0
- data/rbi/docker_engine_api/models/volume_prune_response.rbi +51 -0
- data/rbi/docker_engine_api/models/volume_update_params.rbi +668 -0
- data/rbi/docker_engine_api/models/wait_response.rbi +78 -0
- data/rbi/docker_engine_api/models.rbi +271 -0
- data/rbi/docker_engine_api/request_options.rbi +64 -0
- data/rbi/docker_engine_api/resources/auth.rbi +30 -0
- data/rbi/docker_engine_api/resources/configs.rbi +93 -0
- data/rbi/docker_engine_api/resources/containers.rbi +843 -0
- data/rbi/docker_engine_api/resources/distribution.rbi +26 -0
- data/rbi/docker_engine_api/resources/exec.rbi +72 -0
- data/rbi/docker_engine_api/resources/images.rbi +739 -0
- data/rbi/docker_engine_api/resources/networks.rbi +200 -0
- data/rbi/docker_engine_api/resources/nodes.rbi +87 -0
- data/rbi/docker_engine_api/resources/plugins.rbi +228 -0
- data/rbi/docker_engine_api/resources/secrets.rbi +93 -0
- data/rbi/docker_engine_api/resources/services.rbi +166 -0
- data/rbi/docker_engine_api/resources/swarm.rbi +178 -0
- data/rbi/docker_engine_api/resources/system.rbi +123 -0
- data/rbi/docker_engine_api/resources/tasks.rbi +90 -0
- data/rbi/docker_engine_api/resources/volumes.rbi +123 -0
- data/rbi/docker_engine_api/version.rbi +5 -0
- data/sig/docker_engine_api/client.rbs +49 -0
- data/sig/docker_engine_api/errors.rbs +117 -0
- data/sig/docker_engine_api/file_part.rbs +21 -0
- data/sig/docker_engine_api/internal/transport/base_client.rbs +131 -0
- data/sig/docker_engine_api/internal/transport/pooled_net_requester.rbs +48 -0
- data/sig/docker_engine_api/internal/type/array_of.rbs +48 -0
- data/sig/docker_engine_api/internal/type/base_model.rbs +104 -0
- data/sig/docker_engine_api/internal/type/base_page.rbs +24 -0
- data/sig/docker_engine_api/internal/type/boolean.rbs +26 -0
- data/sig/docker_engine_api/internal/type/converter.rbs +79 -0
- data/sig/docker_engine_api/internal/type/enum.rbs +32 -0
- data/sig/docker_engine_api/internal/type/file_input.rbs +25 -0
- data/sig/docker_engine_api/internal/type/hash_of.rbs +48 -0
- data/sig/docker_engine_api/internal/type/request_parameters.rbs +20 -0
- data/sig/docker_engine_api/internal/type/union.rbs +52 -0
- data/sig/docker_engine_api/internal/type/unknown.rbs +26 -0
- data/sig/docker_engine_api/internal/util.rbs +185 -0
- data/sig/docker_engine_api/internal.rbs +10 -0
- data/sig/docker_engine_api/models/auth_login_params.rbs +38 -0
- data/sig/docker_engine_api/models/auth_response.rbs +17 -0
- data/sig/docker_engine_api/models/config.rbs +225 -0
- data/sig/docker_engine_api/models/config_create_params.rbs +36 -0
- data/sig/docker_engine_api/models/config_create_response.rbs +13 -0
- data/sig/docker_engine_api/models/config_delete_params.rbs +15 -0
- data/sig/docker_engine_api/models/config_inspect_params.rbs +15 -0
- data/sig/docker_engine_api/models/config_list_params.rbs +25 -0
- data/sig/docker_engine_api/models/config_list_response.rbs +7 -0
- data/sig/docker_engine_api/models/config_update_params.rbs +23 -0
- data/sig/docker_engine_api/models/connect_request.rbs +175 -0
- data/sig/docker_engine_api/models/container.rbs +1973 -0
- data/sig/docker_engine_api/models/container_archive_params.rbs +23 -0
- data/sig/docker_engine_api/models/container_attach_params.rbs +63 -0
- data/sig/docker_engine_api/models/container_changes_params.rbs +15 -0
- data/sig/docker_engine_api/models/container_changes_response.rbs +7 -0
- data/sig/docker_engine_api/models/container_create_params.rbs +1352 -0
- data/sig/docker_engine_api/models/container_delete_params.rbs +38 -0
- data/sig/docker_engine_api/models/container_exec_params.rbs +96 -0
- data/sig/docker_engine_api/models/container_exec_response.rbs +13 -0
- data/sig/docker_engine_api/models/container_export_params.rbs +15 -0
- data/sig/docker_engine_api/models/container_inspect_params.rbs +25 -0
- data/sig/docker_engine_api/models/container_kill_params.rbs +25 -0
- data/sig/docker_engine_api/models/container_list_params.rbs +44 -0
- data/sig/docker_engine_api/models/container_list_response.rbs +7 -0
- data/sig/docker_engine_api/models/container_logs_params.rbs +70 -0
- data/sig/docker_engine_api/models/container_pause_params.rbs +15 -0
- data/sig/docker_engine_api/models/container_prune_params.rbs +25 -0
- data/sig/docker_engine_api/models/container_prune_response.rbs +26 -0
- data/sig/docker_engine_api/models/container_rename_params.rbs +23 -0
- data/sig/docker_engine_api/models/container_resize_params.rbs +28 -0
- data/sig/docker_engine_api/models/container_restart_params.rbs +32 -0
- data/sig/docker_engine_api/models/container_start_params.rbs +26 -0
- data/sig/docker_engine_api/models/container_stats_params.rbs +32 -0
- data/sig/docker_engine_api/models/container_stop_params.rbs +32 -0
- data/sig/docker_engine_api/models/container_top_params.rbs +25 -0
- data/sig/docker_engine_api/models/container_unpause_params.rbs +15 -0
- data/sig/docker_engine_api/models/container_update_params.rbs +476 -0
- data/sig/docker_engine_api/models/container_wait_params.rbs +40 -0
- data/sig/docker_engine_api/models/create_request.rbs +255 -0
- data/sig/docker_engine_api/models/create_response.rbs +15 -0
- data/sig/docker_engine_api/models/delete_item.rbs +19 -0
- data/sig/docker_engine_api/models/disconnect_request.rbs +17 -0
- data/sig/docker_engine_api/models/distribution_inspect_params.rbs +15 -0
- data/sig/docker_engine_api/models/error.rbs +13 -0
- data/sig/docker_engine_api/models/exec_inspect_params.rbs +15 -0
- data/sig/docker_engine_api/models/exec_inspect_response.rbs +94 -0
- data/sig/docker_engine_api/models/exec_resize_params.rbs +28 -0
- data/sig/docker_engine_api/models/exec_start_params.rbs +36 -0
- data/sig/docker_engine_api/models/filesystem_change.rbs +34 -0
- data/sig/docker_engine_api/models/history_item.rbs +45 -0
- data/sig/docker_engine_api/models/image.rbs +1042 -0
- data/sig/docker_engine_api/models/image_build_params.rbs +221 -0
- data/sig/docker_engine_api/models/image_build_prune_params.rbs +56 -0
- data/sig/docker_engine_api/models/image_build_prune_response.rbs +26 -0
- data/sig/docker_engine_api/models/image_commit_params.rbs +70 -0
- data/sig/docker_engine_api/models/image_commit_response.rbs +13 -0
- data/sig/docker_engine_api/models/image_delete_params.rbs +38 -0
- data/sig/docker_engine_api/models/image_delete_response.rbs +7 -0
- data/sig/docker_engine_api/models/image_get_all_params.rbs +32 -0
- data/sig/docker_engine_api/models/image_get_params.rbs +26 -0
- data/sig/docker_engine_api/models/image_history_params.rbs +25 -0
- data/sig/docker_engine_api/models/image_history_response.rbs +7 -0
- data/sig/docker_engine_api/models/image_inspect_params.rbs +25 -0
- data/sig/docker_engine_api/models/image_list_params.rbs +56 -0
- data/sig/docker_engine_api/models/image_list_response.rbs +7 -0
- data/sig/docker_engine_api/models/image_load_params.rbs +40 -0
- data/sig/docker_engine_api/models/image_prune_params.rbs +25 -0
- data/sig/docker_engine_api/models/image_prune_response.rbs +31 -0
- data/sig/docker_engine_api/models/image_pull_params.rbs +84 -0
- data/sig/docker_engine_api/models/image_push_params.rbs +36 -0
- data/sig/docker_engine_api/models/image_search_params.rbs +36 -0
- data/sig/docker_engine_api/models/image_search_response.rbs +55 -0
- data/sig/docker_engine_api/models/image_tag_params.rbs +32 -0
- data/sig/docker_engine_api/models/info.rbs +1080 -0
- data/sig/docker_engine_api/models/inspect.rbs +177 -0
- data/sig/docker_engine_api/models/inspect_response.rbs +50 -0
- data/sig/docker_engine_api/models/list_response.rbs +28 -0
- data/sig/docker_engine_api/models/network.rbs +238 -0
- data/sig/docker_engine_api/models/network_connect_params.rbs +15 -0
- data/sig/docker_engine_api/models/network_create_params.rbs +203 -0
- data/sig/docker_engine_api/models/network_delete_params.rbs +15 -0
- data/sig/docker_engine_api/models/network_disconnect_params.rbs +15 -0
- data/sig/docker_engine_api/models/network_inspect_params.rbs +32 -0
- data/sig/docker_engine_api/models/network_inspect_response.rbs +149 -0
- data/sig/docker_engine_api/models/network_list_params.rbs +25 -0
- data/sig/docker_engine_api/models/network_list_response.rbs +7 -0
- data/sig/docker_engine_api/models/network_prune_params.rbs +25 -0
- data/sig/docker_engine_api/models/network_prune_response.rbs +15 -0
- data/sig/docker_engine_api/models/node.rbs +434 -0
- data/sig/docker_engine_api/models/node_delete_params.rbs +25 -0
- data/sig/docker_engine_api/models/node_inspect_params.rbs +15 -0
- data/sig/docker_engine_api/models/node_list_params.rbs +25 -0
- data/sig/docker_engine_api/models/node_list_response.rbs +7 -0
- data/sig/docker_engine_api/models/node_update_params.rbs +23 -0
- data/sig/docker_engine_api/models/plugin.rbs +509 -0
- data/sig/docker_engine_api/models/plugin_create_params.rbs +28 -0
- data/sig/docker_engine_api/models/plugin_delete_params.rbs +25 -0
- data/sig/docker_engine_api/models/plugin_disable_params.rbs +25 -0
- data/sig/docker_engine_api/models/plugin_enable_params.rbs +25 -0
- data/sig/docker_engine_api/models/plugin_inspect_params.rbs +15 -0
- data/sig/docker_engine_api/models/plugin_list_params.rbs +25 -0
- data/sig/docker_engine_api/models/plugin_list_response.rbs +7 -0
- data/sig/docker_engine_api/models/plugin_privileges_params.rbs +23 -0
- data/sig/docker_engine_api/models/plugin_privileges_response.rbs +7 -0
- data/sig/docker_engine_api/models/plugin_pull_params.rbs +49 -0
- data/sig/docker_engine_api/models/plugin_push_params.rbs +15 -0
- data/sig/docker_engine_api/models/plugin_set_params.rbs +26 -0
- data/sig/docker_engine_api/models/plugin_upgrade_params.rbs +42 -0
- data/sig/docker_engine_api/models/privilege.rbs +32 -0
- data/sig/docker_engine_api/models/secret.rbs +64 -0
- data/sig/docker_engine_api/models/secret_create_params.rbs +36 -0
- data/sig/docker_engine_api/models/secret_create_response.rbs +13 -0
- data/sig/docker_engine_api/models/secret_delete_params.rbs +15 -0
- data/sig/docker_engine_api/models/secret_inspect_params.rbs +15 -0
- data/sig/docker_engine_api/models/secret_list_params.rbs +25 -0
- data/sig/docker_engine_api/models/secret_list_response.rbs +7 -0
- data/sig/docker_engine_api/models/secret_update_params.rbs +23 -0
- data/sig/docker_engine_api/models/service.rbs +471 -0
- data/sig/docker_engine_api/models/service_create_params.rbs +41 -0
- data/sig/docker_engine_api/models/service_delete_params.rbs +15 -0
- data/sig/docker_engine_api/models/service_inspect_params.rbs +26 -0
- data/sig/docker_engine_api/models/service_list_params.rbs +32 -0
- data/sig/docker_engine_api/models/service_list_response.rbs +7 -0
- data/sig/docker_engine_api/models/service_logs_params.rbs +70 -0
- data/sig/docker_engine_api/models/service_update_params.rbs +73 -0
- data/sig/docker_engine_api/models/spec.rbs +467 -0
- data/sig/docker_engine_api/models/stats_response.rbs +730 -0
- data/sig/docker_engine_api/models/summary.rbs +634 -0
- data/sig/docker_engine_api/models/swarm.rbs +159 -0
- data/sig/docker_engine_api/models/swarm_init_params.rbs +77 -0
- data/sig/docker_engine_api/models/swarm_init_response.rbs +5 -0
- data/sig/docker_engine_api/models/swarm_inspect_params.rbs +15 -0
- data/sig/docker_engine_api/models/swarm_join_params.rbs +56 -0
- data/sig/docker_engine_api/models/swarm_leave_params.rbs +25 -0
- data/sig/docker_engine_api/models/swarm_unlock_key_params.rbs +15 -0
- data/sig/docker_engine_api/models/swarm_unlock_key_response.rbs +15 -0
- data/sig/docker_engine_api/models/swarm_unlock_params.rbs +26 -0
- data/sig/docker_engine_api/models/swarm_update_params.rbs +47 -0
- data/sig/docker_engine_api/models/system_data_usage_params.rbs +50 -0
- data/sig/docker_engine_api/models/system_data_usage_response.rbs +239 -0
- data/sig/docker_engine_api/models/system_events_params.rbs +38 -0
- data/sig/docker_engine_api/models/system_events_response.rbs +124 -0
- data/sig/docker_engine_api/models/system_info_params.rbs +15 -0
- data/sig/docker_engine_api/models/system_ping_params.rbs +15 -0
- data/sig/docker_engine_api/models/system_ping_response.rbs +5 -0
- data/sig/docker_engine_api/models/system_version_params.rbs +15 -0
- data/sig/docker_engine_api/models/task.rbs +469 -0
- data/sig/docker_engine_api/models/task_inspect_params.rbs +15 -0
- data/sig/docker_engine_api/models/task_list_params.rbs +25 -0
- data/sig/docker_engine_api/models/task_list_response.rbs +7 -0
- data/sig/docker_engine_api/models/task_logs_params.rbs +70 -0
- data/sig/docker_engine_api/models/top_response.rbs +26 -0
- data/sig/docker_engine_api/models/update_response.rbs +15 -0
- data/sig/docker_engine_api/models/version.rbs +127 -0
- data/sig/docker_engine_api/models/volume.rbs +478 -0
- data/sig/docker_engine_api/models/volume_create_params.rbs +15 -0
- data/sig/docker_engine_api/models/volume_delete_params.rbs +25 -0
- data/sig/docker_engine_api/models/volume_inspect_params.rbs +15 -0
- data/sig/docker_engine_api/models/volume_list_params.rbs +25 -0
- data/sig/docker_engine_api/models/volume_prune_params.rbs +25 -0
- data/sig/docker_engine_api/models/volume_prune_response.rbs +26 -0
- data/sig/docker_engine_api/models/volume_update_params.rbs +235 -0
- data/sig/docker_engine_api/models/wait_response.rbs +38 -0
- data/sig/docker_engine_api/models.rbs +269 -0
- data/sig/docker_engine_api/request_options.rbs +36 -0
- data/sig/docker_engine_api/resources/auth.rbs +14 -0
- data/sig/docker_engine_api/resources/configs.rbs +34 -0
- data/sig/docker_engine_api/resources/containers.rbs +200 -0
- data/sig/docker_engine_api/resources/distribution.rbs +12 -0
- data/sig/docker_engine_api/resources/exec.rbs +27 -0
- data/sig/docker_engine_api/resources/images.rbs +170 -0
- data/sig/docker_engine_api/resources/networks.rbs +60 -0
- data/sig/docker_engine_api/resources/nodes.rbs +30 -0
- data/sig/docker_engine_api/resources/plugins.rbs +73 -0
- data/sig/docker_engine_api/resources/secrets.rbs +34 -0
- data/sig/docker_engine_api/resources/services.rbs +52 -0
- data/sig/docker_engine_api/resources/swarm.rbs +55 -0
- data/sig/docker_engine_api/resources/system.rbs +30 -0
- data/sig/docker_engine_api/resources/tasks.rbs +29 -0
- data/sig/docker_engine_api/resources/volumes.rbs +40 -0
- data/sig/docker_engine_api/version.rbs +3 -0
- metadata +679 -0
|
@@ -0,0 +1,1772 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module DockerEngineAPI
|
|
4
|
+
module Models
|
|
5
|
+
class StatsResponse < DockerEngineAPI::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
DockerEngineAPI::StatsResponse,
|
|
10
|
+
DockerEngineAPI::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# ID of the container for which the stats were collected.
|
|
15
|
+
sig { returns(T.nilable(String)) }
|
|
16
|
+
attr_accessor :id
|
|
17
|
+
|
|
18
|
+
# BlkioStats stores all IO service stats for data read and write.
|
|
19
|
+
#
|
|
20
|
+
# This type is Linux-specific and holds many fields that are specific to cgroups
|
|
21
|
+
# v1. On a cgroup v2 host, all fields other than `io_service_bytes_recursive` are
|
|
22
|
+
# omitted or `null`.
|
|
23
|
+
#
|
|
24
|
+
# This type is only populated on Linux and omitted for Windows containers.
|
|
25
|
+
sig { returns(T.nilable(DockerEngineAPI::StatsResponse::BlkioStats)) }
|
|
26
|
+
attr_reader :blkio_stats
|
|
27
|
+
|
|
28
|
+
sig do
|
|
29
|
+
params(
|
|
30
|
+
blkio_stats:
|
|
31
|
+
T.nilable(DockerEngineAPI::StatsResponse::BlkioStats::OrHash)
|
|
32
|
+
).void
|
|
33
|
+
end
|
|
34
|
+
attr_writer :blkio_stats
|
|
35
|
+
|
|
36
|
+
# CPU related info of the container
|
|
37
|
+
sig { returns(T.nilable(DockerEngineAPI::StatsResponse::CPUStats)) }
|
|
38
|
+
attr_reader :cpu_stats
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
params(
|
|
42
|
+
cpu_stats: T.nilable(DockerEngineAPI::StatsResponse::CPUStats::OrHash)
|
|
43
|
+
).void
|
|
44
|
+
end
|
|
45
|
+
attr_writer :cpu_stats
|
|
46
|
+
|
|
47
|
+
# Aggregates all memory stats since container inception on Linux. Windows returns
|
|
48
|
+
# stats for commit and private working set only.
|
|
49
|
+
sig { returns(T.nilable(DockerEngineAPI::StatsResponse::MemoryStats)) }
|
|
50
|
+
attr_reader :memory_stats
|
|
51
|
+
|
|
52
|
+
sig do
|
|
53
|
+
params(
|
|
54
|
+
memory_stats: DockerEngineAPI::StatsResponse::MemoryStats::OrHash
|
|
55
|
+
).void
|
|
56
|
+
end
|
|
57
|
+
attr_writer :memory_stats
|
|
58
|
+
|
|
59
|
+
# Name of the container for which the stats were collected.
|
|
60
|
+
sig { returns(T.nilable(String)) }
|
|
61
|
+
attr_accessor :name
|
|
62
|
+
|
|
63
|
+
# Network statistics for the container per interface.
|
|
64
|
+
#
|
|
65
|
+
# This field is omitted if the container has no networking enabled.
|
|
66
|
+
sig { returns(T.nilable(T.anything)) }
|
|
67
|
+
attr_accessor :networks
|
|
68
|
+
|
|
69
|
+
# The number of processors on the system.
|
|
70
|
+
#
|
|
71
|
+
# This field is Windows-specific and always zero for Linux containers.
|
|
72
|
+
sig { returns(T.nilable(Integer)) }
|
|
73
|
+
attr_reader :num_procs
|
|
74
|
+
|
|
75
|
+
sig { params(num_procs: Integer).void }
|
|
76
|
+
attr_writer :num_procs
|
|
77
|
+
|
|
78
|
+
# OSType is the OS of the container ("linux" or "windows") to allow
|
|
79
|
+
# platform-specific handling of stats.
|
|
80
|
+
sig { returns(T.nilable(String)) }
|
|
81
|
+
attr_accessor :os_type
|
|
82
|
+
|
|
83
|
+
# PidsStats contains Linux-specific stats of a container's process-IDs (PIDs).
|
|
84
|
+
#
|
|
85
|
+
# This type is Linux-specific and omitted for Windows containers.
|
|
86
|
+
sig { returns(T.nilable(DockerEngineAPI::StatsResponse::PidsStats)) }
|
|
87
|
+
attr_reader :pids_stats
|
|
88
|
+
|
|
89
|
+
sig do
|
|
90
|
+
params(
|
|
91
|
+
pids_stats:
|
|
92
|
+
T.nilable(DockerEngineAPI::StatsResponse::PidsStats::OrHash)
|
|
93
|
+
).void
|
|
94
|
+
end
|
|
95
|
+
attr_writer :pids_stats
|
|
96
|
+
|
|
97
|
+
# CPU related info of the container
|
|
98
|
+
sig { returns(T.nilable(DockerEngineAPI::StatsResponse::PrecpuStats)) }
|
|
99
|
+
attr_reader :precpu_stats
|
|
100
|
+
|
|
101
|
+
sig do
|
|
102
|
+
params(
|
|
103
|
+
precpu_stats:
|
|
104
|
+
T.nilable(DockerEngineAPI::StatsResponse::PrecpuStats::OrHash)
|
|
105
|
+
).void
|
|
106
|
+
end
|
|
107
|
+
attr_writer :precpu_stats
|
|
108
|
+
|
|
109
|
+
# Date and time at which this first sample was collected. This field is not
|
|
110
|
+
# propagated if the "one-shot" option is set. If the "one-shot" option is set,
|
|
111
|
+
# this field may be omitted, empty, or set to a default date
|
|
112
|
+
# (`0001-01-01T00:00:00Z`).
|
|
113
|
+
#
|
|
114
|
+
# The value is formatted as [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) with
|
|
115
|
+
# nano-seconds.
|
|
116
|
+
sig { returns(T.nilable(Time)) }
|
|
117
|
+
attr_reader :preread
|
|
118
|
+
|
|
119
|
+
sig { params(preread: Time).void }
|
|
120
|
+
attr_writer :preread
|
|
121
|
+
|
|
122
|
+
# Date and time at which this sample was collected. The value is formatted as
|
|
123
|
+
# [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) with nano-seconds.
|
|
124
|
+
sig { returns(T.nilable(Time)) }
|
|
125
|
+
attr_reader :read
|
|
126
|
+
|
|
127
|
+
sig { params(read: Time).void }
|
|
128
|
+
attr_writer :read
|
|
129
|
+
|
|
130
|
+
# StorageStats is the disk I/O stats for read/write on Windows.
|
|
131
|
+
#
|
|
132
|
+
# This type is Windows-specific and omitted for Linux containers.
|
|
133
|
+
sig { returns(T.nilable(DockerEngineAPI::StatsResponse::StorageStats)) }
|
|
134
|
+
attr_reader :storage_stats
|
|
135
|
+
|
|
136
|
+
sig do
|
|
137
|
+
params(
|
|
138
|
+
storage_stats:
|
|
139
|
+
T.nilable(DockerEngineAPI::StatsResponse::StorageStats::OrHash)
|
|
140
|
+
).void
|
|
141
|
+
end
|
|
142
|
+
attr_writer :storage_stats
|
|
143
|
+
|
|
144
|
+
# Statistics sample for a container.
|
|
145
|
+
sig do
|
|
146
|
+
params(
|
|
147
|
+
id: T.nilable(String),
|
|
148
|
+
blkio_stats:
|
|
149
|
+
T.nilable(DockerEngineAPI::StatsResponse::BlkioStats::OrHash),
|
|
150
|
+
cpu_stats:
|
|
151
|
+
T.nilable(DockerEngineAPI::StatsResponse::CPUStats::OrHash),
|
|
152
|
+
memory_stats: DockerEngineAPI::StatsResponse::MemoryStats::OrHash,
|
|
153
|
+
name: T.nilable(String),
|
|
154
|
+
networks: T.nilable(T.anything),
|
|
155
|
+
num_procs: Integer,
|
|
156
|
+
os_type: T.nilable(String),
|
|
157
|
+
pids_stats:
|
|
158
|
+
T.nilable(DockerEngineAPI::StatsResponse::PidsStats::OrHash),
|
|
159
|
+
precpu_stats:
|
|
160
|
+
T.nilable(DockerEngineAPI::StatsResponse::PrecpuStats::OrHash),
|
|
161
|
+
preread: Time,
|
|
162
|
+
read: Time,
|
|
163
|
+
storage_stats:
|
|
164
|
+
T.nilable(DockerEngineAPI::StatsResponse::StorageStats::OrHash)
|
|
165
|
+
).returns(T.attached_class)
|
|
166
|
+
end
|
|
167
|
+
def self.new(
|
|
168
|
+
# ID of the container for which the stats were collected.
|
|
169
|
+
id: nil,
|
|
170
|
+
# BlkioStats stores all IO service stats for data read and write.
|
|
171
|
+
#
|
|
172
|
+
# This type is Linux-specific and holds many fields that are specific to cgroups
|
|
173
|
+
# v1. On a cgroup v2 host, all fields other than `io_service_bytes_recursive` are
|
|
174
|
+
# omitted or `null`.
|
|
175
|
+
#
|
|
176
|
+
# This type is only populated on Linux and omitted for Windows containers.
|
|
177
|
+
blkio_stats: nil,
|
|
178
|
+
# CPU related info of the container
|
|
179
|
+
cpu_stats: nil,
|
|
180
|
+
# Aggregates all memory stats since container inception on Linux. Windows returns
|
|
181
|
+
# stats for commit and private working set only.
|
|
182
|
+
memory_stats: nil,
|
|
183
|
+
# Name of the container for which the stats were collected.
|
|
184
|
+
name: nil,
|
|
185
|
+
# Network statistics for the container per interface.
|
|
186
|
+
#
|
|
187
|
+
# This field is omitted if the container has no networking enabled.
|
|
188
|
+
networks: nil,
|
|
189
|
+
# The number of processors on the system.
|
|
190
|
+
#
|
|
191
|
+
# This field is Windows-specific and always zero for Linux containers.
|
|
192
|
+
num_procs: nil,
|
|
193
|
+
# OSType is the OS of the container ("linux" or "windows") to allow
|
|
194
|
+
# platform-specific handling of stats.
|
|
195
|
+
os_type: nil,
|
|
196
|
+
# PidsStats contains Linux-specific stats of a container's process-IDs (PIDs).
|
|
197
|
+
#
|
|
198
|
+
# This type is Linux-specific and omitted for Windows containers.
|
|
199
|
+
pids_stats: nil,
|
|
200
|
+
# CPU related info of the container
|
|
201
|
+
precpu_stats: nil,
|
|
202
|
+
# Date and time at which this first sample was collected. This field is not
|
|
203
|
+
# propagated if the "one-shot" option is set. If the "one-shot" option is set,
|
|
204
|
+
# this field may be omitted, empty, or set to a default date
|
|
205
|
+
# (`0001-01-01T00:00:00Z`).
|
|
206
|
+
#
|
|
207
|
+
# The value is formatted as [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) with
|
|
208
|
+
# nano-seconds.
|
|
209
|
+
preread: nil,
|
|
210
|
+
# Date and time at which this sample was collected. The value is formatted as
|
|
211
|
+
# [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) with nano-seconds.
|
|
212
|
+
read: nil,
|
|
213
|
+
# StorageStats is the disk I/O stats for read/write on Windows.
|
|
214
|
+
#
|
|
215
|
+
# This type is Windows-specific and omitted for Linux containers.
|
|
216
|
+
storage_stats: nil
|
|
217
|
+
)
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
sig do
|
|
221
|
+
override.returns(
|
|
222
|
+
{
|
|
223
|
+
id: T.nilable(String),
|
|
224
|
+
blkio_stats: T.nilable(DockerEngineAPI::StatsResponse::BlkioStats),
|
|
225
|
+
cpu_stats: T.nilable(DockerEngineAPI::StatsResponse::CPUStats),
|
|
226
|
+
memory_stats: DockerEngineAPI::StatsResponse::MemoryStats,
|
|
227
|
+
name: T.nilable(String),
|
|
228
|
+
networks: T.nilable(T.anything),
|
|
229
|
+
num_procs: Integer,
|
|
230
|
+
os_type: T.nilable(String),
|
|
231
|
+
pids_stats: T.nilable(DockerEngineAPI::StatsResponse::PidsStats),
|
|
232
|
+
precpu_stats:
|
|
233
|
+
T.nilable(DockerEngineAPI::StatsResponse::PrecpuStats),
|
|
234
|
+
preread: Time,
|
|
235
|
+
read: Time,
|
|
236
|
+
storage_stats:
|
|
237
|
+
T.nilable(DockerEngineAPI::StatsResponse::StorageStats)
|
|
238
|
+
}
|
|
239
|
+
)
|
|
240
|
+
end
|
|
241
|
+
def to_hash
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
class BlkioStats < DockerEngineAPI::Internal::Type::BaseModel
|
|
245
|
+
OrHash =
|
|
246
|
+
T.type_alias do
|
|
247
|
+
T.any(
|
|
248
|
+
DockerEngineAPI::StatsResponse::BlkioStats,
|
|
249
|
+
DockerEngineAPI::Internal::AnyHash
|
|
250
|
+
)
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# This field is only available when using Linux containers with cgroups v1. It is
|
|
254
|
+
# omitted or `null` when using cgroups v2.
|
|
255
|
+
sig do
|
|
256
|
+
returns(
|
|
257
|
+
T.nilable(
|
|
258
|
+
T::Array[
|
|
259
|
+
T.nilable(
|
|
260
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoMergedRecursive
|
|
261
|
+
)
|
|
262
|
+
]
|
|
263
|
+
)
|
|
264
|
+
)
|
|
265
|
+
end
|
|
266
|
+
attr_accessor :io_merged_recursive
|
|
267
|
+
|
|
268
|
+
# This field is only available when using Linux containers with cgroups v1. It is
|
|
269
|
+
# omitted or `null` when using cgroups v2.
|
|
270
|
+
sig do
|
|
271
|
+
returns(
|
|
272
|
+
T.nilable(
|
|
273
|
+
T::Array[
|
|
274
|
+
T.nilable(
|
|
275
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoQueueRecursive
|
|
276
|
+
)
|
|
277
|
+
]
|
|
278
|
+
)
|
|
279
|
+
)
|
|
280
|
+
end
|
|
281
|
+
attr_accessor :io_queue_recursive
|
|
282
|
+
|
|
283
|
+
sig do
|
|
284
|
+
returns(
|
|
285
|
+
T.nilable(
|
|
286
|
+
T::Array[
|
|
287
|
+
T.nilable(
|
|
288
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoServiceBytesRecursive
|
|
289
|
+
)
|
|
290
|
+
]
|
|
291
|
+
)
|
|
292
|
+
)
|
|
293
|
+
end
|
|
294
|
+
attr_reader :io_service_bytes_recursive
|
|
295
|
+
|
|
296
|
+
sig do
|
|
297
|
+
params(
|
|
298
|
+
io_service_bytes_recursive:
|
|
299
|
+
T::Array[
|
|
300
|
+
T.nilable(
|
|
301
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoServiceBytesRecursive::OrHash
|
|
302
|
+
)
|
|
303
|
+
]
|
|
304
|
+
).void
|
|
305
|
+
end
|
|
306
|
+
attr_writer :io_service_bytes_recursive
|
|
307
|
+
|
|
308
|
+
# This field is only available when using Linux containers with cgroups v1. It is
|
|
309
|
+
# omitted or `null` when using cgroups v2.
|
|
310
|
+
sig do
|
|
311
|
+
returns(
|
|
312
|
+
T.nilable(
|
|
313
|
+
T::Array[
|
|
314
|
+
T.nilable(
|
|
315
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoServiceTimeRecursive
|
|
316
|
+
)
|
|
317
|
+
]
|
|
318
|
+
)
|
|
319
|
+
)
|
|
320
|
+
end
|
|
321
|
+
attr_accessor :io_service_time_recursive
|
|
322
|
+
|
|
323
|
+
# This field is only available when using Linux containers with cgroups v1. It is
|
|
324
|
+
# omitted or `null` when using cgroups v2.
|
|
325
|
+
sig do
|
|
326
|
+
returns(
|
|
327
|
+
T.nilable(
|
|
328
|
+
T::Array[
|
|
329
|
+
T.nilable(
|
|
330
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoServicedRecursive
|
|
331
|
+
)
|
|
332
|
+
]
|
|
333
|
+
)
|
|
334
|
+
)
|
|
335
|
+
end
|
|
336
|
+
attr_accessor :io_serviced_recursive
|
|
337
|
+
|
|
338
|
+
# This field is only available when using Linux containers with cgroups v1. It is
|
|
339
|
+
# omitted or `null` when using cgroups v2.
|
|
340
|
+
sig do
|
|
341
|
+
returns(
|
|
342
|
+
T.nilable(
|
|
343
|
+
T::Array[
|
|
344
|
+
T.nilable(
|
|
345
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoTimeRecursive
|
|
346
|
+
)
|
|
347
|
+
]
|
|
348
|
+
)
|
|
349
|
+
)
|
|
350
|
+
end
|
|
351
|
+
attr_accessor :io_time_recursive
|
|
352
|
+
|
|
353
|
+
# This field is only available when using Linux containers with cgroups v1. It is
|
|
354
|
+
# omitted or `null` when using cgroups v2.
|
|
355
|
+
sig do
|
|
356
|
+
returns(
|
|
357
|
+
T.nilable(
|
|
358
|
+
T::Array[
|
|
359
|
+
T.nilable(
|
|
360
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoWaitTimeRecursive
|
|
361
|
+
)
|
|
362
|
+
]
|
|
363
|
+
)
|
|
364
|
+
)
|
|
365
|
+
end
|
|
366
|
+
attr_accessor :io_wait_time_recursive
|
|
367
|
+
|
|
368
|
+
# This field is only available when using Linux containers with cgroups v1. It is
|
|
369
|
+
# omitted or `null` when using cgroups v2.
|
|
370
|
+
sig do
|
|
371
|
+
returns(
|
|
372
|
+
T.nilable(
|
|
373
|
+
T::Array[
|
|
374
|
+
T.nilable(
|
|
375
|
+
DockerEngineAPI::StatsResponse::BlkioStats::SectorsRecursive
|
|
376
|
+
)
|
|
377
|
+
]
|
|
378
|
+
)
|
|
379
|
+
)
|
|
380
|
+
end
|
|
381
|
+
attr_accessor :sectors_recursive
|
|
382
|
+
|
|
383
|
+
# BlkioStats stores all IO service stats for data read and write.
|
|
384
|
+
#
|
|
385
|
+
# This type is Linux-specific and holds many fields that are specific to cgroups
|
|
386
|
+
# v1. On a cgroup v2 host, all fields other than `io_service_bytes_recursive` are
|
|
387
|
+
# omitted or `null`.
|
|
388
|
+
#
|
|
389
|
+
# This type is only populated on Linux and omitted for Windows containers.
|
|
390
|
+
sig do
|
|
391
|
+
params(
|
|
392
|
+
io_merged_recursive:
|
|
393
|
+
T.nilable(
|
|
394
|
+
T::Array[
|
|
395
|
+
T.nilable(
|
|
396
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoMergedRecursive::OrHash
|
|
397
|
+
)
|
|
398
|
+
]
|
|
399
|
+
),
|
|
400
|
+
io_queue_recursive:
|
|
401
|
+
T.nilable(
|
|
402
|
+
T::Array[
|
|
403
|
+
T.nilable(
|
|
404
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoQueueRecursive::OrHash
|
|
405
|
+
)
|
|
406
|
+
]
|
|
407
|
+
),
|
|
408
|
+
io_service_bytes_recursive:
|
|
409
|
+
T::Array[
|
|
410
|
+
T.nilable(
|
|
411
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoServiceBytesRecursive::OrHash
|
|
412
|
+
)
|
|
413
|
+
],
|
|
414
|
+
io_service_time_recursive:
|
|
415
|
+
T.nilable(
|
|
416
|
+
T::Array[
|
|
417
|
+
T.nilable(
|
|
418
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoServiceTimeRecursive::OrHash
|
|
419
|
+
)
|
|
420
|
+
]
|
|
421
|
+
),
|
|
422
|
+
io_serviced_recursive:
|
|
423
|
+
T.nilable(
|
|
424
|
+
T::Array[
|
|
425
|
+
T.nilable(
|
|
426
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoServicedRecursive::OrHash
|
|
427
|
+
)
|
|
428
|
+
]
|
|
429
|
+
),
|
|
430
|
+
io_time_recursive:
|
|
431
|
+
T.nilable(
|
|
432
|
+
T::Array[
|
|
433
|
+
T.nilable(
|
|
434
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoTimeRecursive::OrHash
|
|
435
|
+
)
|
|
436
|
+
]
|
|
437
|
+
),
|
|
438
|
+
io_wait_time_recursive:
|
|
439
|
+
T.nilable(
|
|
440
|
+
T::Array[
|
|
441
|
+
T.nilable(
|
|
442
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoWaitTimeRecursive::OrHash
|
|
443
|
+
)
|
|
444
|
+
]
|
|
445
|
+
),
|
|
446
|
+
sectors_recursive:
|
|
447
|
+
T.nilable(
|
|
448
|
+
T::Array[
|
|
449
|
+
T.nilable(
|
|
450
|
+
DockerEngineAPI::StatsResponse::BlkioStats::SectorsRecursive::OrHash
|
|
451
|
+
)
|
|
452
|
+
]
|
|
453
|
+
)
|
|
454
|
+
).returns(T.attached_class)
|
|
455
|
+
end
|
|
456
|
+
def self.new(
|
|
457
|
+
# This field is only available when using Linux containers with cgroups v1. It is
|
|
458
|
+
# omitted or `null` when using cgroups v2.
|
|
459
|
+
io_merged_recursive: nil,
|
|
460
|
+
# This field is only available when using Linux containers with cgroups v1. It is
|
|
461
|
+
# omitted or `null` when using cgroups v2.
|
|
462
|
+
io_queue_recursive: nil,
|
|
463
|
+
io_service_bytes_recursive: nil,
|
|
464
|
+
# This field is only available when using Linux containers with cgroups v1. It is
|
|
465
|
+
# omitted or `null` when using cgroups v2.
|
|
466
|
+
io_service_time_recursive: nil,
|
|
467
|
+
# This field is only available when using Linux containers with cgroups v1. It is
|
|
468
|
+
# omitted or `null` when using cgroups v2.
|
|
469
|
+
io_serviced_recursive: nil,
|
|
470
|
+
# This field is only available when using Linux containers with cgroups v1. It is
|
|
471
|
+
# omitted or `null` when using cgroups v2.
|
|
472
|
+
io_time_recursive: nil,
|
|
473
|
+
# This field is only available when using Linux containers with cgroups v1. It is
|
|
474
|
+
# omitted or `null` when using cgroups v2.
|
|
475
|
+
io_wait_time_recursive: nil,
|
|
476
|
+
# This field is only available when using Linux containers with cgroups v1. It is
|
|
477
|
+
# omitted or `null` when using cgroups v2.
|
|
478
|
+
sectors_recursive: nil
|
|
479
|
+
)
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
sig do
|
|
483
|
+
override.returns(
|
|
484
|
+
{
|
|
485
|
+
io_merged_recursive:
|
|
486
|
+
T.nilable(
|
|
487
|
+
T::Array[
|
|
488
|
+
T.nilable(
|
|
489
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoMergedRecursive
|
|
490
|
+
)
|
|
491
|
+
]
|
|
492
|
+
),
|
|
493
|
+
io_queue_recursive:
|
|
494
|
+
T.nilable(
|
|
495
|
+
T::Array[
|
|
496
|
+
T.nilable(
|
|
497
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoQueueRecursive
|
|
498
|
+
)
|
|
499
|
+
]
|
|
500
|
+
),
|
|
501
|
+
io_service_bytes_recursive:
|
|
502
|
+
T::Array[
|
|
503
|
+
T.nilable(
|
|
504
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoServiceBytesRecursive
|
|
505
|
+
)
|
|
506
|
+
],
|
|
507
|
+
io_service_time_recursive:
|
|
508
|
+
T.nilable(
|
|
509
|
+
T::Array[
|
|
510
|
+
T.nilable(
|
|
511
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoServiceTimeRecursive
|
|
512
|
+
)
|
|
513
|
+
]
|
|
514
|
+
),
|
|
515
|
+
io_serviced_recursive:
|
|
516
|
+
T.nilable(
|
|
517
|
+
T::Array[
|
|
518
|
+
T.nilable(
|
|
519
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoServicedRecursive
|
|
520
|
+
)
|
|
521
|
+
]
|
|
522
|
+
),
|
|
523
|
+
io_time_recursive:
|
|
524
|
+
T.nilable(
|
|
525
|
+
T::Array[
|
|
526
|
+
T.nilable(
|
|
527
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoTimeRecursive
|
|
528
|
+
)
|
|
529
|
+
]
|
|
530
|
+
),
|
|
531
|
+
io_wait_time_recursive:
|
|
532
|
+
T.nilable(
|
|
533
|
+
T::Array[
|
|
534
|
+
T.nilable(
|
|
535
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoWaitTimeRecursive
|
|
536
|
+
)
|
|
537
|
+
]
|
|
538
|
+
),
|
|
539
|
+
sectors_recursive:
|
|
540
|
+
T.nilable(
|
|
541
|
+
T::Array[
|
|
542
|
+
T.nilable(
|
|
543
|
+
DockerEngineAPI::StatsResponse::BlkioStats::SectorsRecursive
|
|
544
|
+
)
|
|
545
|
+
]
|
|
546
|
+
)
|
|
547
|
+
}
|
|
548
|
+
)
|
|
549
|
+
end
|
|
550
|
+
def to_hash
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
class IoMergedRecursive < DockerEngineAPI::Internal::Type::BaseModel
|
|
554
|
+
OrHash =
|
|
555
|
+
T.type_alias do
|
|
556
|
+
T.any(
|
|
557
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoMergedRecursive,
|
|
558
|
+
DockerEngineAPI::Internal::AnyHash
|
|
559
|
+
)
|
|
560
|
+
end
|
|
561
|
+
|
|
562
|
+
sig { returns(T.nilable(Integer)) }
|
|
563
|
+
attr_reader :major
|
|
564
|
+
|
|
565
|
+
sig { params(major: Integer).void }
|
|
566
|
+
attr_writer :major
|
|
567
|
+
|
|
568
|
+
sig { returns(T.nilable(Integer)) }
|
|
569
|
+
attr_reader :minor
|
|
570
|
+
|
|
571
|
+
sig { params(minor: Integer).void }
|
|
572
|
+
attr_writer :minor
|
|
573
|
+
|
|
574
|
+
sig { returns(T.nilable(String)) }
|
|
575
|
+
attr_reader :op
|
|
576
|
+
|
|
577
|
+
sig { params(op: String).void }
|
|
578
|
+
attr_writer :op
|
|
579
|
+
|
|
580
|
+
sig { returns(T.nilable(Integer)) }
|
|
581
|
+
attr_reader :value
|
|
582
|
+
|
|
583
|
+
sig { params(value: Integer).void }
|
|
584
|
+
attr_writer :value
|
|
585
|
+
|
|
586
|
+
# Blkio stats entry.
|
|
587
|
+
#
|
|
588
|
+
# This type is Linux-specific and omitted for Windows containers.
|
|
589
|
+
sig do
|
|
590
|
+
params(
|
|
591
|
+
major: Integer,
|
|
592
|
+
minor: Integer,
|
|
593
|
+
op: String,
|
|
594
|
+
value: Integer
|
|
595
|
+
).returns(T.attached_class)
|
|
596
|
+
end
|
|
597
|
+
def self.new(major: nil, minor: nil, op: nil, value: nil)
|
|
598
|
+
end
|
|
599
|
+
|
|
600
|
+
sig do
|
|
601
|
+
override.returns(
|
|
602
|
+
{ major: Integer, minor: Integer, op: String, value: Integer }
|
|
603
|
+
)
|
|
604
|
+
end
|
|
605
|
+
def to_hash
|
|
606
|
+
end
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
class IoQueueRecursive < DockerEngineAPI::Internal::Type::BaseModel
|
|
610
|
+
OrHash =
|
|
611
|
+
T.type_alias do
|
|
612
|
+
T.any(
|
|
613
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoQueueRecursive,
|
|
614
|
+
DockerEngineAPI::Internal::AnyHash
|
|
615
|
+
)
|
|
616
|
+
end
|
|
617
|
+
|
|
618
|
+
sig { returns(T.nilable(Integer)) }
|
|
619
|
+
attr_reader :major
|
|
620
|
+
|
|
621
|
+
sig { params(major: Integer).void }
|
|
622
|
+
attr_writer :major
|
|
623
|
+
|
|
624
|
+
sig { returns(T.nilable(Integer)) }
|
|
625
|
+
attr_reader :minor
|
|
626
|
+
|
|
627
|
+
sig { params(minor: Integer).void }
|
|
628
|
+
attr_writer :minor
|
|
629
|
+
|
|
630
|
+
sig { returns(T.nilable(String)) }
|
|
631
|
+
attr_reader :op
|
|
632
|
+
|
|
633
|
+
sig { params(op: String).void }
|
|
634
|
+
attr_writer :op
|
|
635
|
+
|
|
636
|
+
sig { returns(T.nilable(Integer)) }
|
|
637
|
+
attr_reader :value
|
|
638
|
+
|
|
639
|
+
sig { params(value: Integer).void }
|
|
640
|
+
attr_writer :value
|
|
641
|
+
|
|
642
|
+
# Blkio stats entry.
|
|
643
|
+
#
|
|
644
|
+
# This type is Linux-specific and omitted for Windows containers.
|
|
645
|
+
sig do
|
|
646
|
+
params(
|
|
647
|
+
major: Integer,
|
|
648
|
+
minor: Integer,
|
|
649
|
+
op: String,
|
|
650
|
+
value: Integer
|
|
651
|
+
).returns(T.attached_class)
|
|
652
|
+
end
|
|
653
|
+
def self.new(major: nil, minor: nil, op: nil, value: nil)
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
sig do
|
|
657
|
+
override.returns(
|
|
658
|
+
{ major: Integer, minor: Integer, op: String, value: Integer }
|
|
659
|
+
)
|
|
660
|
+
end
|
|
661
|
+
def to_hash
|
|
662
|
+
end
|
|
663
|
+
end
|
|
664
|
+
|
|
665
|
+
class IoServiceBytesRecursive < DockerEngineAPI::Internal::Type::BaseModel
|
|
666
|
+
OrHash =
|
|
667
|
+
T.type_alias do
|
|
668
|
+
T.any(
|
|
669
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoServiceBytesRecursive,
|
|
670
|
+
DockerEngineAPI::Internal::AnyHash
|
|
671
|
+
)
|
|
672
|
+
end
|
|
673
|
+
|
|
674
|
+
sig { returns(T.nilable(Integer)) }
|
|
675
|
+
attr_reader :major
|
|
676
|
+
|
|
677
|
+
sig { params(major: Integer).void }
|
|
678
|
+
attr_writer :major
|
|
679
|
+
|
|
680
|
+
sig { returns(T.nilable(Integer)) }
|
|
681
|
+
attr_reader :minor
|
|
682
|
+
|
|
683
|
+
sig { params(minor: Integer).void }
|
|
684
|
+
attr_writer :minor
|
|
685
|
+
|
|
686
|
+
sig { returns(T.nilable(String)) }
|
|
687
|
+
attr_reader :op
|
|
688
|
+
|
|
689
|
+
sig { params(op: String).void }
|
|
690
|
+
attr_writer :op
|
|
691
|
+
|
|
692
|
+
sig { returns(T.nilable(Integer)) }
|
|
693
|
+
attr_reader :value
|
|
694
|
+
|
|
695
|
+
sig { params(value: Integer).void }
|
|
696
|
+
attr_writer :value
|
|
697
|
+
|
|
698
|
+
# Blkio stats entry.
|
|
699
|
+
#
|
|
700
|
+
# This type is Linux-specific and omitted for Windows containers.
|
|
701
|
+
sig do
|
|
702
|
+
params(
|
|
703
|
+
major: Integer,
|
|
704
|
+
minor: Integer,
|
|
705
|
+
op: String,
|
|
706
|
+
value: Integer
|
|
707
|
+
).returns(T.attached_class)
|
|
708
|
+
end
|
|
709
|
+
def self.new(major: nil, minor: nil, op: nil, value: nil)
|
|
710
|
+
end
|
|
711
|
+
|
|
712
|
+
sig do
|
|
713
|
+
override.returns(
|
|
714
|
+
{ major: Integer, minor: Integer, op: String, value: Integer }
|
|
715
|
+
)
|
|
716
|
+
end
|
|
717
|
+
def to_hash
|
|
718
|
+
end
|
|
719
|
+
end
|
|
720
|
+
|
|
721
|
+
class IoServiceTimeRecursive < DockerEngineAPI::Internal::Type::BaseModel
|
|
722
|
+
OrHash =
|
|
723
|
+
T.type_alias do
|
|
724
|
+
T.any(
|
|
725
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoServiceTimeRecursive,
|
|
726
|
+
DockerEngineAPI::Internal::AnyHash
|
|
727
|
+
)
|
|
728
|
+
end
|
|
729
|
+
|
|
730
|
+
sig { returns(T.nilable(Integer)) }
|
|
731
|
+
attr_reader :major
|
|
732
|
+
|
|
733
|
+
sig { params(major: Integer).void }
|
|
734
|
+
attr_writer :major
|
|
735
|
+
|
|
736
|
+
sig { returns(T.nilable(Integer)) }
|
|
737
|
+
attr_reader :minor
|
|
738
|
+
|
|
739
|
+
sig { params(minor: Integer).void }
|
|
740
|
+
attr_writer :minor
|
|
741
|
+
|
|
742
|
+
sig { returns(T.nilable(String)) }
|
|
743
|
+
attr_reader :op
|
|
744
|
+
|
|
745
|
+
sig { params(op: String).void }
|
|
746
|
+
attr_writer :op
|
|
747
|
+
|
|
748
|
+
sig { returns(T.nilable(Integer)) }
|
|
749
|
+
attr_reader :value
|
|
750
|
+
|
|
751
|
+
sig { params(value: Integer).void }
|
|
752
|
+
attr_writer :value
|
|
753
|
+
|
|
754
|
+
# Blkio stats entry.
|
|
755
|
+
#
|
|
756
|
+
# This type is Linux-specific and omitted for Windows containers.
|
|
757
|
+
sig do
|
|
758
|
+
params(
|
|
759
|
+
major: Integer,
|
|
760
|
+
minor: Integer,
|
|
761
|
+
op: String,
|
|
762
|
+
value: Integer
|
|
763
|
+
).returns(T.attached_class)
|
|
764
|
+
end
|
|
765
|
+
def self.new(major: nil, minor: nil, op: nil, value: nil)
|
|
766
|
+
end
|
|
767
|
+
|
|
768
|
+
sig do
|
|
769
|
+
override.returns(
|
|
770
|
+
{ major: Integer, minor: Integer, op: String, value: Integer }
|
|
771
|
+
)
|
|
772
|
+
end
|
|
773
|
+
def to_hash
|
|
774
|
+
end
|
|
775
|
+
end
|
|
776
|
+
|
|
777
|
+
class IoServicedRecursive < DockerEngineAPI::Internal::Type::BaseModel
|
|
778
|
+
OrHash =
|
|
779
|
+
T.type_alias do
|
|
780
|
+
T.any(
|
|
781
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoServicedRecursive,
|
|
782
|
+
DockerEngineAPI::Internal::AnyHash
|
|
783
|
+
)
|
|
784
|
+
end
|
|
785
|
+
|
|
786
|
+
sig { returns(T.nilable(Integer)) }
|
|
787
|
+
attr_reader :major
|
|
788
|
+
|
|
789
|
+
sig { params(major: Integer).void }
|
|
790
|
+
attr_writer :major
|
|
791
|
+
|
|
792
|
+
sig { returns(T.nilable(Integer)) }
|
|
793
|
+
attr_reader :minor
|
|
794
|
+
|
|
795
|
+
sig { params(minor: Integer).void }
|
|
796
|
+
attr_writer :minor
|
|
797
|
+
|
|
798
|
+
sig { returns(T.nilable(String)) }
|
|
799
|
+
attr_reader :op
|
|
800
|
+
|
|
801
|
+
sig { params(op: String).void }
|
|
802
|
+
attr_writer :op
|
|
803
|
+
|
|
804
|
+
sig { returns(T.nilable(Integer)) }
|
|
805
|
+
attr_reader :value
|
|
806
|
+
|
|
807
|
+
sig { params(value: Integer).void }
|
|
808
|
+
attr_writer :value
|
|
809
|
+
|
|
810
|
+
# Blkio stats entry.
|
|
811
|
+
#
|
|
812
|
+
# This type is Linux-specific and omitted for Windows containers.
|
|
813
|
+
sig do
|
|
814
|
+
params(
|
|
815
|
+
major: Integer,
|
|
816
|
+
minor: Integer,
|
|
817
|
+
op: String,
|
|
818
|
+
value: Integer
|
|
819
|
+
).returns(T.attached_class)
|
|
820
|
+
end
|
|
821
|
+
def self.new(major: nil, minor: nil, op: nil, value: nil)
|
|
822
|
+
end
|
|
823
|
+
|
|
824
|
+
sig do
|
|
825
|
+
override.returns(
|
|
826
|
+
{ major: Integer, minor: Integer, op: String, value: Integer }
|
|
827
|
+
)
|
|
828
|
+
end
|
|
829
|
+
def to_hash
|
|
830
|
+
end
|
|
831
|
+
end
|
|
832
|
+
|
|
833
|
+
class IoTimeRecursive < DockerEngineAPI::Internal::Type::BaseModel
|
|
834
|
+
OrHash =
|
|
835
|
+
T.type_alias do
|
|
836
|
+
T.any(
|
|
837
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoTimeRecursive,
|
|
838
|
+
DockerEngineAPI::Internal::AnyHash
|
|
839
|
+
)
|
|
840
|
+
end
|
|
841
|
+
|
|
842
|
+
sig { returns(T.nilable(Integer)) }
|
|
843
|
+
attr_reader :major
|
|
844
|
+
|
|
845
|
+
sig { params(major: Integer).void }
|
|
846
|
+
attr_writer :major
|
|
847
|
+
|
|
848
|
+
sig { returns(T.nilable(Integer)) }
|
|
849
|
+
attr_reader :minor
|
|
850
|
+
|
|
851
|
+
sig { params(minor: Integer).void }
|
|
852
|
+
attr_writer :minor
|
|
853
|
+
|
|
854
|
+
sig { returns(T.nilable(String)) }
|
|
855
|
+
attr_reader :op
|
|
856
|
+
|
|
857
|
+
sig { params(op: String).void }
|
|
858
|
+
attr_writer :op
|
|
859
|
+
|
|
860
|
+
sig { returns(T.nilable(Integer)) }
|
|
861
|
+
attr_reader :value
|
|
862
|
+
|
|
863
|
+
sig { params(value: Integer).void }
|
|
864
|
+
attr_writer :value
|
|
865
|
+
|
|
866
|
+
# Blkio stats entry.
|
|
867
|
+
#
|
|
868
|
+
# This type is Linux-specific and omitted for Windows containers.
|
|
869
|
+
sig do
|
|
870
|
+
params(
|
|
871
|
+
major: Integer,
|
|
872
|
+
minor: Integer,
|
|
873
|
+
op: String,
|
|
874
|
+
value: Integer
|
|
875
|
+
).returns(T.attached_class)
|
|
876
|
+
end
|
|
877
|
+
def self.new(major: nil, minor: nil, op: nil, value: nil)
|
|
878
|
+
end
|
|
879
|
+
|
|
880
|
+
sig do
|
|
881
|
+
override.returns(
|
|
882
|
+
{ major: Integer, minor: Integer, op: String, value: Integer }
|
|
883
|
+
)
|
|
884
|
+
end
|
|
885
|
+
def to_hash
|
|
886
|
+
end
|
|
887
|
+
end
|
|
888
|
+
|
|
889
|
+
class IoWaitTimeRecursive < DockerEngineAPI::Internal::Type::BaseModel
|
|
890
|
+
OrHash =
|
|
891
|
+
T.type_alias do
|
|
892
|
+
T.any(
|
|
893
|
+
DockerEngineAPI::StatsResponse::BlkioStats::IoWaitTimeRecursive,
|
|
894
|
+
DockerEngineAPI::Internal::AnyHash
|
|
895
|
+
)
|
|
896
|
+
end
|
|
897
|
+
|
|
898
|
+
sig { returns(T.nilable(Integer)) }
|
|
899
|
+
attr_reader :major
|
|
900
|
+
|
|
901
|
+
sig { params(major: Integer).void }
|
|
902
|
+
attr_writer :major
|
|
903
|
+
|
|
904
|
+
sig { returns(T.nilable(Integer)) }
|
|
905
|
+
attr_reader :minor
|
|
906
|
+
|
|
907
|
+
sig { params(minor: Integer).void }
|
|
908
|
+
attr_writer :minor
|
|
909
|
+
|
|
910
|
+
sig { returns(T.nilable(String)) }
|
|
911
|
+
attr_reader :op
|
|
912
|
+
|
|
913
|
+
sig { params(op: String).void }
|
|
914
|
+
attr_writer :op
|
|
915
|
+
|
|
916
|
+
sig { returns(T.nilable(Integer)) }
|
|
917
|
+
attr_reader :value
|
|
918
|
+
|
|
919
|
+
sig { params(value: Integer).void }
|
|
920
|
+
attr_writer :value
|
|
921
|
+
|
|
922
|
+
# Blkio stats entry.
|
|
923
|
+
#
|
|
924
|
+
# This type is Linux-specific and omitted for Windows containers.
|
|
925
|
+
sig do
|
|
926
|
+
params(
|
|
927
|
+
major: Integer,
|
|
928
|
+
minor: Integer,
|
|
929
|
+
op: String,
|
|
930
|
+
value: Integer
|
|
931
|
+
).returns(T.attached_class)
|
|
932
|
+
end
|
|
933
|
+
def self.new(major: nil, minor: nil, op: nil, value: nil)
|
|
934
|
+
end
|
|
935
|
+
|
|
936
|
+
sig do
|
|
937
|
+
override.returns(
|
|
938
|
+
{ major: Integer, minor: Integer, op: String, value: Integer }
|
|
939
|
+
)
|
|
940
|
+
end
|
|
941
|
+
def to_hash
|
|
942
|
+
end
|
|
943
|
+
end
|
|
944
|
+
|
|
945
|
+
class SectorsRecursive < DockerEngineAPI::Internal::Type::BaseModel
|
|
946
|
+
OrHash =
|
|
947
|
+
T.type_alias do
|
|
948
|
+
T.any(
|
|
949
|
+
DockerEngineAPI::StatsResponse::BlkioStats::SectorsRecursive,
|
|
950
|
+
DockerEngineAPI::Internal::AnyHash
|
|
951
|
+
)
|
|
952
|
+
end
|
|
953
|
+
|
|
954
|
+
sig { returns(T.nilable(Integer)) }
|
|
955
|
+
attr_reader :major
|
|
956
|
+
|
|
957
|
+
sig { params(major: Integer).void }
|
|
958
|
+
attr_writer :major
|
|
959
|
+
|
|
960
|
+
sig { returns(T.nilable(Integer)) }
|
|
961
|
+
attr_reader :minor
|
|
962
|
+
|
|
963
|
+
sig { params(minor: Integer).void }
|
|
964
|
+
attr_writer :minor
|
|
965
|
+
|
|
966
|
+
sig { returns(T.nilable(String)) }
|
|
967
|
+
attr_reader :op
|
|
968
|
+
|
|
969
|
+
sig { params(op: String).void }
|
|
970
|
+
attr_writer :op
|
|
971
|
+
|
|
972
|
+
sig { returns(T.nilable(Integer)) }
|
|
973
|
+
attr_reader :value
|
|
974
|
+
|
|
975
|
+
sig { params(value: Integer).void }
|
|
976
|
+
attr_writer :value
|
|
977
|
+
|
|
978
|
+
# Blkio stats entry.
|
|
979
|
+
#
|
|
980
|
+
# This type is Linux-specific and omitted for Windows containers.
|
|
981
|
+
sig do
|
|
982
|
+
params(
|
|
983
|
+
major: Integer,
|
|
984
|
+
minor: Integer,
|
|
985
|
+
op: String,
|
|
986
|
+
value: Integer
|
|
987
|
+
).returns(T.attached_class)
|
|
988
|
+
end
|
|
989
|
+
def self.new(major: nil, minor: nil, op: nil, value: nil)
|
|
990
|
+
end
|
|
991
|
+
|
|
992
|
+
sig do
|
|
993
|
+
override.returns(
|
|
994
|
+
{ major: Integer, minor: Integer, op: String, value: Integer }
|
|
995
|
+
)
|
|
996
|
+
end
|
|
997
|
+
def to_hash
|
|
998
|
+
end
|
|
999
|
+
end
|
|
1000
|
+
end
|
|
1001
|
+
|
|
1002
|
+
class CPUStats < DockerEngineAPI::Internal::Type::BaseModel
|
|
1003
|
+
OrHash =
|
|
1004
|
+
T.type_alias do
|
|
1005
|
+
T.any(
|
|
1006
|
+
DockerEngineAPI::StatsResponse::CPUStats,
|
|
1007
|
+
DockerEngineAPI::Internal::AnyHash
|
|
1008
|
+
)
|
|
1009
|
+
end
|
|
1010
|
+
|
|
1011
|
+
# All CPU stats aggregated since container inception.
|
|
1012
|
+
sig do
|
|
1013
|
+
returns(T.nilable(DockerEngineAPI::StatsResponse::CPUStats::CPUUsage))
|
|
1014
|
+
end
|
|
1015
|
+
attr_reader :cpu_usage
|
|
1016
|
+
|
|
1017
|
+
sig do
|
|
1018
|
+
params(
|
|
1019
|
+
cpu_usage:
|
|
1020
|
+
T.nilable(
|
|
1021
|
+
DockerEngineAPI::StatsResponse::CPUStats::CPUUsage::OrHash
|
|
1022
|
+
)
|
|
1023
|
+
).void
|
|
1024
|
+
end
|
|
1025
|
+
attr_writer :cpu_usage
|
|
1026
|
+
|
|
1027
|
+
# Number of online CPUs.
|
|
1028
|
+
#
|
|
1029
|
+
# This field is Linux-specific and omitted for Windows containers.
|
|
1030
|
+
sig { returns(T.nilable(Integer)) }
|
|
1031
|
+
attr_accessor :online_cpus
|
|
1032
|
+
|
|
1033
|
+
# System Usage.
|
|
1034
|
+
#
|
|
1035
|
+
# This field is Linux-specific and omitted for Windows containers.
|
|
1036
|
+
sig { returns(T.nilable(Integer)) }
|
|
1037
|
+
attr_accessor :system_cpu_usage
|
|
1038
|
+
|
|
1039
|
+
# CPU throttling stats of the container.
|
|
1040
|
+
#
|
|
1041
|
+
# This type is Linux-specific and omitted for Windows containers.
|
|
1042
|
+
sig do
|
|
1043
|
+
returns(
|
|
1044
|
+
T.nilable(DockerEngineAPI::StatsResponse::CPUStats::ThrottlingData)
|
|
1045
|
+
)
|
|
1046
|
+
end
|
|
1047
|
+
attr_reader :throttling_data
|
|
1048
|
+
|
|
1049
|
+
sig do
|
|
1050
|
+
params(
|
|
1051
|
+
throttling_data:
|
|
1052
|
+
T.nilable(
|
|
1053
|
+
DockerEngineAPI::StatsResponse::CPUStats::ThrottlingData::OrHash
|
|
1054
|
+
)
|
|
1055
|
+
).void
|
|
1056
|
+
end
|
|
1057
|
+
attr_writer :throttling_data
|
|
1058
|
+
|
|
1059
|
+
# CPU related info of the container
|
|
1060
|
+
sig do
|
|
1061
|
+
params(
|
|
1062
|
+
cpu_usage:
|
|
1063
|
+
T.nilable(
|
|
1064
|
+
DockerEngineAPI::StatsResponse::CPUStats::CPUUsage::OrHash
|
|
1065
|
+
),
|
|
1066
|
+
online_cpus: T.nilable(Integer),
|
|
1067
|
+
system_cpu_usage: T.nilable(Integer),
|
|
1068
|
+
throttling_data:
|
|
1069
|
+
T.nilable(
|
|
1070
|
+
DockerEngineAPI::StatsResponse::CPUStats::ThrottlingData::OrHash
|
|
1071
|
+
)
|
|
1072
|
+
).returns(T.attached_class)
|
|
1073
|
+
end
|
|
1074
|
+
def self.new(
|
|
1075
|
+
# All CPU stats aggregated since container inception.
|
|
1076
|
+
cpu_usage: nil,
|
|
1077
|
+
# Number of online CPUs.
|
|
1078
|
+
#
|
|
1079
|
+
# This field is Linux-specific and omitted for Windows containers.
|
|
1080
|
+
online_cpus: nil,
|
|
1081
|
+
# System Usage.
|
|
1082
|
+
#
|
|
1083
|
+
# This field is Linux-specific and omitted for Windows containers.
|
|
1084
|
+
system_cpu_usage: nil,
|
|
1085
|
+
# CPU throttling stats of the container.
|
|
1086
|
+
#
|
|
1087
|
+
# This type is Linux-specific and omitted for Windows containers.
|
|
1088
|
+
throttling_data: nil
|
|
1089
|
+
)
|
|
1090
|
+
end
|
|
1091
|
+
|
|
1092
|
+
sig do
|
|
1093
|
+
override.returns(
|
|
1094
|
+
{
|
|
1095
|
+
cpu_usage:
|
|
1096
|
+
T.nilable(DockerEngineAPI::StatsResponse::CPUStats::CPUUsage),
|
|
1097
|
+
online_cpus: T.nilable(Integer),
|
|
1098
|
+
system_cpu_usage: T.nilable(Integer),
|
|
1099
|
+
throttling_data:
|
|
1100
|
+
T.nilable(
|
|
1101
|
+
DockerEngineAPI::StatsResponse::CPUStats::ThrottlingData
|
|
1102
|
+
)
|
|
1103
|
+
}
|
|
1104
|
+
)
|
|
1105
|
+
end
|
|
1106
|
+
def to_hash
|
|
1107
|
+
end
|
|
1108
|
+
|
|
1109
|
+
class CPUUsage < DockerEngineAPI::Internal::Type::BaseModel
|
|
1110
|
+
OrHash =
|
|
1111
|
+
T.type_alias do
|
|
1112
|
+
T.any(
|
|
1113
|
+
DockerEngineAPI::StatsResponse::CPUStats::CPUUsage,
|
|
1114
|
+
DockerEngineAPI::Internal::AnyHash
|
|
1115
|
+
)
|
|
1116
|
+
end
|
|
1117
|
+
|
|
1118
|
+
# Total CPU time (in nanoseconds) consumed per core (Linux).
|
|
1119
|
+
#
|
|
1120
|
+
# This field is Linux-specific when using cgroups v1. It is omitted when using
|
|
1121
|
+
# cgroups v2 and Windows containers.
|
|
1122
|
+
sig { returns(T.nilable(T::Array[Integer])) }
|
|
1123
|
+
attr_accessor :percpu_usage
|
|
1124
|
+
|
|
1125
|
+
# Total CPU time consumed in nanoseconds (Linux) or 100's of nanoseconds
|
|
1126
|
+
# (Windows).
|
|
1127
|
+
sig { returns(T.nilable(Integer)) }
|
|
1128
|
+
attr_reader :total_usage
|
|
1129
|
+
|
|
1130
|
+
sig { params(total_usage: Integer).void }
|
|
1131
|
+
attr_writer :total_usage
|
|
1132
|
+
|
|
1133
|
+
# Time (in nanoseconds) spent by tasks of the cgroup in kernel mode (Linux), or
|
|
1134
|
+
# time spent (in 100's of nanoseconds) by all container processes in kernel mode
|
|
1135
|
+
# (Windows).
|
|
1136
|
+
#
|
|
1137
|
+
# Not populated for Windows containers using Hyper-V isolation.
|
|
1138
|
+
sig { returns(T.nilable(Integer)) }
|
|
1139
|
+
attr_reader :usage_in_kernelmode
|
|
1140
|
+
|
|
1141
|
+
sig { params(usage_in_kernelmode: Integer).void }
|
|
1142
|
+
attr_writer :usage_in_kernelmode
|
|
1143
|
+
|
|
1144
|
+
# Time (in nanoseconds) spent by tasks of the cgroup in user mode (Linux), or time
|
|
1145
|
+
# spent (in 100's of nanoseconds) by all container processes in kernel mode
|
|
1146
|
+
# (Windows).
|
|
1147
|
+
#
|
|
1148
|
+
# Not populated for Windows containers using Hyper-V isolation.
|
|
1149
|
+
sig { returns(T.nilable(Integer)) }
|
|
1150
|
+
attr_reader :usage_in_usermode
|
|
1151
|
+
|
|
1152
|
+
sig { params(usage_in_usermode: Integer).void }
|
|
1153
|
+
attr_writer :usage_in_usermode
|
|
1154
|
+
|
|
1155
|
+
# All CPU stats aggregated since container inception.
|
|
1156
|
+
sig do
|
|
1157
|
+
params(
|
|
1158
|
+
percpu_usage: T.nilable(T::Array[Integer]),
|
|
1159
|
+
total_usage: Integer,
|
|
1160
|
+
usage_in_kernelmode: Integer,
|
|
1161
|
+
usage_in_usermode: Integer
|
|
1162
|
+
).returns(T.attached_class)
|
|
1163
|
+
end
|
|
1164
|
+
def self.new(
|
|
1165
|
+
# Total CPU time (in nanoseconds) consumed per core (Linux).
|
|
1166
|
+
#
|
|
1167
|
+
# This field is Linux-specific when using cgroups v1. It is omitted when using
|
|
1168
|
+
# cgroups v2 and Windows containers.
|
|
1169
|
+
percpu_usage: nil,
|
|
1170
|
+
# Total CPU time consumed in nanoseconds (Linux) or 100's of nanoseconds
|
|
1171
|
+
# (Windows).
|
|
1172
|
+
total_usage: nil,
|
|
1173
|
+
# Time (in nanoseconds) spent by tasks of the cgroup in kernel mode (Linux), or
|
|
1174
|
+
# time spent (in 100's of nanoseconds) by all container processes in kernel mode
|
|
1175
|
+
# (Windows).
|
|
1176
|
+
#
|
|
1177
|
+
# Not populated for Windows containers using Hyper-V isolation.
|
|
1178
|
+
usage_in_kernelmode: nil,
|
|
1179
|
+
# Time (in nanoseconds) spent by tasks of the cgroup in user mode (Linux), or time
|
|
1180
|
+
# spent (in 100's of nanoseconds) by all container processes in kernel mode
|
|
1181
|
+
# (Windows).
|
|
1182
|
+
#
|
|
1183
|
+
# Not populated for Windows containers using Hyper-V isolation.
|
|
1184
|
+
usage_in_usermode: nil
|
|
1185
|
+
)
|
|
1186
|
+
end
|
|
1187
|
+
|
|
1188
|
+
sig do
|
|
1189
|
+
override.returns(
|
|
1190
|
+
{
|
|
1191
|
+
percpu_usage: T.nilable(T::Array[Integer]),
|
|
1192
|
+
total_usage: Integer,
|
|
1193
|
+
usage_in_kernelmode: Integer,
|
|
1194
|
+
usage_in_usermode: Integer
|
|
1195
|
+
}
|
|
1196
|
+
)
|
|
1197
|
+
end
|
|
1198
|
+
def to_hash
|
|
1199
|
+
end
|
|
1200
|
+
end
|
|
1201
|
+
|
|
1202
|
+
class ThrottlingData < DockerEngineAPI::Internal::Type::BaseModel
|
|
1203
|
+
OrHash =
|
|
1204
|
+
T.type_alias do
|
|
1205
|
+
T.any(
|
|
1206
|
+
DockerEngineAPI::StatsResponse::CPUStats::ThrottlingData,
|
|
1207
|
+
DockerEngineAPI::Internal::AnyHash
|
|
1208
|
+
)
|
|
1209
|
+
end
|
|
1210
|
+
|
|
1211
|
+
# Number of periods with throttling active.
|
|
1212
|
+
sig { returns(T.nilable(Integer)) }
|
|
1213
|
+
attr_reader :periods
|
|
1214
|
+
|
|
1215
|
+
sig { params(periods: Integer).void }
|
|
1216
|
+
attr_writer :periods
|
|
1217
|
+
|
|
1218
|
+
# Number of periods when the container hit its throttling limit.
|
|
1219
|
+
sig { returns(T.nilable(Integer)) }
|
|
1220
|
+
attr_reader :throttled_periods
|
|
1221
|
+
|
|
1222
|
+
sig { params(throttled_periods: Integer).void }
|
|
1223
|
+
attr_writer :throttled_periods
|
|
1224
|
+
|
|
1225
|
+
# Aggregated time (in nanoseconds) the container was throttled for.
|
|
1226
|
+
sig { returns(T.nilable(Integer)) }
|
|
1227
|
+
attr_reader :throttled_time
|
|
1228
|
+
|
|
1229
|
+
sig { params(throttled_time: Integer).void }
|
|
1230
|
+
attr_writer :throttled_time
|
|
1231
|
+
|
|
1232
|
+
# CPU throttling stats of the container.
|
|
1233
|
+
#
|
|
1234
|
+
# This type is Linux-specific and omitted for Windows containers.
|
|
1235
|
+
sig do
|
|
1236
|
+
params(
|
|
1237
|
+
periods: Integer,
|
|
1238
|
+
throttled_periods: Integer,
|
|
1239
|
+
throttled_time: Integer
|
|
1240
|
+
).returns(T.attached_class)
|
|
1241
|
+
end
|
|
1242
|
+
def self.new(
|
|
1243
|
+
# Number of periods with throttling active.
|
|
1244
|
+
periods: nil,
|
|
1245
|
+
# Number of periods when the container hit its throttling limit.
|
|
1246
|
+
throttled_periods: nil,
|
|
1247
|
+
# Aggregated time (in nanoseconds) the container was throttled for.
|
|
1248
|
+
throttled_time: nil
|
|
1249
|
+
)
|
|
1250
|
+
end
|
|
1251
|
+
|
|
1252
|
+
sig do
|
|
1253
|
+
override.returns(
|
|
1254
|
+
{
|
|
1255
|
+
periods: Integer,
|
|
1256
|
+
throttled_periods: Integer,
|
|
1257
|
+
throttled_time: Integer
|
|
1258
|
+
}
|
|
1259
|
+
)
|
|
1260
|
+
end
|
|
1261
|
+
def to_hash
|
|
1262
|
+
end
|
|
1263
|
+
end
|
|
1264
|
+
end
|
|
1265
|
+
|
|
1266
|
+
class MemoryStats < DockerEngineAPI::Internal::Type::BaseModel
|
|
1267
|
+
OrHash =
|
|
1268
|
+
T.type_alias do
|
|
1269
|
+
T.any(
|
|
1270
|
+
DockerEngineAPI::StatsResponse::MemoryStats,
|
|
1271
|
+
DockerEngineAPI::Internal::AnyHash
|
|
1272
|
+
)
|
|
1273
|
+
end
|
|
1274
|
+
|
|
1275
|
+
# Committed bytes.
|
|
1276
|
+
#
|
|
1277
|
+
# This field is Windows-specific and omitted for Linux containers.
|
|
1278
|
+
sig { returns(T.nilable(Integer)) }
|
|
1279
|
+
attr_accessor :commitbytes
|
|
1280
|
+
|
|
1281
|
+
# Peak committed bytes.
|
|
1282
|
+
#
|
|
1283
|
+
# This field is Windows-specific and omitted for Linux containers.
|
|
1284
|
+
sig { returns(T.nilable(Integer)) }
|
|
1285
|
+
attr_accessor :commitpeakbytes
|
|
1286
|
+
|
|
1287
|
+
# Number of times memory usage hits limits.
|
|
1288
|
+
#
|
|
1289
|
+
# This field is Linux-specific and only supported on cgroups v1. It is omitted
|
|
1290
|
+
# when using cgroups v2 and for Windows containers.
|
|
1291
|
+
sig { returns(T.nilable(Integer)) }
|
|
1292
|
+
attr_accessor :failcnt
|
|
1293
|
+
|
|
1294
|
+
# This field is Linux-specific and omitted for Windows containers.
|
|
1295
|
+
sig { returns(T.nilable(Integer)) }
|
|
1296
|
+
attr_accessor :limit
|
|
1297
|
+
|
|
1298
|
+
# Maximum usage ever recorded.
|
|
1299
|
+
#
|
|
1300
|
+
# This field is Linux-specific and only supported on cgroups v1. It is omitted
|
|
1301
|
+
# when using cgroups v2 and for Windows containers.
|
|
1302
|
+
sig { returns(T.nilable(Integer)) }
|
|
1303
|
+
attr_accessor :max_usage
|
|
1304
|
+
|
|
1305
|
+
# Private working set.
|
|
1306
|
+
#
|
|
1307
|
+
# This field is Windows-specific and omitted for Linux containers.
|
|
1308
|
+
sig { returns(T.nilable(Integer)) }
|
|
1309
|
+
attr_accessor :privateworkingset
|
|
1310
|
+
|
|
1311
|
+
# All the stats exported via memory.stat.
|
|
1312
|
+
#
|
|
1313
|
+
# The fields in this object differ between cgroups v1 and v2. On cgroups v1,
|
|
1314
|
+
# fields such as `cache`, `rss`, `mapped_file` are available. On cgroups v2,
|
|
1315
|
+
# fields such as `file`, `anon`, `inactive_file` are available.
|
|
1316
|
+
#
|
|
1317
|
+
# This field is Linux-specific and omitted for Windows containers.
|
|
1318
|
+
sig { returns(T.nilable(T::Hash[Symbol, Integer])) }
|
|
1319
|
+
attr_reader :stats
|
|
1320
|
+
|
|
1321
|
+
sig { params(stats: T::Hash[Symbol, Integer]).void }
|
|
1322
|
+
attr_writer :stats
|
|
1323
|
+
|
|
1324
|
+
# Current `res_counter` usage for memory.
|
|
1325
|
+
#
|
|
1326
|
+
# This field is Linux-specific and omitted for Windows containers.
|
|
1327
|
+
sig { returns(T.nilable(Integer)) }
|
|
1328
|
+
attr_accessor :usage
|
|
1329
|
+
|
|
1330
|
+
# Aggregates all memory stats since container inception on Linux. Windows returns
|
|
1331
|
+
# stats for commit and private working set only.
|
|
1332
|
+
sig do
|
|
1333
|
+
params(
|
|
1334
|
+
commitbytes: T.nilable(Integer),
|
|
1335
|
+
commitpeakbytes: T.nilable(Integer),
|
|
1336
|
+
failcnt: T.nilable(Integer),
|
|
1337
|
+
limit: T.nilable(Integer),
|
|
1338
|
+
max_usage: T.nilable(Integer),
|
|
1339
|
+
privateworkingset: T.nilable(Integer),
|
|
1340
|
+
stats: T::Hash[Symbol, Integer],
|
|
1341
|
+
usage: T.nilable(Integer)
|
|
1342
|
+
).returns(T.attached_class)
|
|
1343
|
+
end
|
|
1344
|
+
def self.new(
|
|
1345
|
+
# Committed bytes.
|
|
1346
|
+
#
|
|
1347
|
+
# This field is Windows-specific and omitted for Linux containers.
|
|
1348
|
+
commitbytes: nil,
|
|
1349
|
+
# Peak committed bytes.
|
|
1350
|
+
#
|
|
1351
|
+
# This field is Windows-specific and omitted for Linux containers.
|
|
1352
|
+
commitpeakbytes: nil,
|
|
1353
|
+
# Number of times memory usage hits limits.
|
|
1354
|
+
#
|
|
1355
|
+
# This field is Linux-specific and only supported on cgroups v1. It is omitted
|
|
1356
|
+
# when using cgroups v2 and for Windows containers.
|
|
1357
|
+
failcnt: nil,
|
|
1358
|
+
# This field is Linux-specific and omitted for Windows containers.
|
|
1359
|
+
limit: nil,
|
|
1360
|
+
# Maximum usage ever recorded.
|
|
1361
|
+
#
|
|
1362
|
+
# This field is Linux-specific and only supported on cgroups v1. It is omitted
|
|
1363
|
+
# when using cgroups v2 and for Windows containers.
|
|
1364
|
+
max_usage: nil,
|
|
1365
|
+
# Private working set.
|
|
1366
|
+
#
|
|
1367
|
+
# This field is Windows-specific and omitted for Linux containers.
|
|
1368
|
+
privateworkingset: nil,
|
|
1369
|
+
# All the stats exported via memory.stat.
|
|
1370
|
+
#
|
|
1371
|
+
# The fields in this object differ between cgroups v1 and v2. On cgroups v1,
|
|
1372
|
+
# fields such as `cache`, `rss`, `mapped_file` are available. On cgroups v2,
|
|
1373
|
+
# fields such as `file`, `anon`, `inactive_file` are available.
|
|
1374
|
+
#
|
|
1375
|
+
# This field is Linux-specific and omitted for Windows containers.
|
|
1376
|
+
stats: nil,
|
|
1377
|
+
# Current `res_counter` usage for memory.
|
|
1378
|
+
#
|
|
1379
|
+
# This field is Linux-specific and omitted for Windows containers.
|
|
1380
|
+
usage: nil
|
|
1381
|
+
)
|
|
1382
|
+
end
|
|
1383
|
+
|
|
1384
|
+
sig do
|
|
1385
|
+
override.returns(
|
|
1386
|
+
{
|
|
1387
|
+
commitbytes: T.nilable(Integer),
|
|
1388
|
+
commitpeakbytes: T.nilable(Integer),
|
|
1389
|
+
failcnt: T.nilable(Integer),
|
|
1390
|
+
limit: T.nilable(Integer),
|
|
1391
|
+
max_usage: T.nilable(Integer),
|
|
1392
|
+
privateworkingset: T.nilable(Integer),
|
|
1393
|
+
stats: T::Hash[Symbol, Integer],
|
|
1394
|
+
usage: T.nilable(Integer)
|
|
1395
|
+
}
|
|
1396
|
+
)
|
|
1397
|
+
end
|
|
1398
|
+
def to_hash
|
|
1399
|
+
end
|
|
1400
|
+
end
|
|
1401
|
+
|
|
1402
|
+
class PidsStats < DockerEngineAPI::Internal::Type::BaseModel
|
|
1403
|
+
OrHash =
|
|
1404
|
+
T.type_alias do
|
|
1405
|
+
T.any(
|
|
1406
|
+
DockerEngineAPI::StatsResponse::PidsStats,
|
|
1407
|
+
DockerEngineAPI::Internal::AnyHash
|
|
1408
|
+
)
|
|
1409
|
+
end
|
|
1410
|
+
|
|
1411
|
+
# Current is the number of PIDs in the cgroup.
|
|
1412
|
+
sig { returns(T.nilable(Integer)) }
|
|
1413
|
+
attr_accessor :current
|
|
1414
|
+
|
|
1415
|
+
# Limit is the hard limit on the number of pids in the cgroup. A "Limit" of 0
|
|
1416
|
+
# means that there is no limit.
|
|
1417
|
+
sig { returns(T.nilable(Integer)) }
|
|
1418
|
+
attr_accessor :limit
|
|
1419
|
+
|
|
1420
|
+
# PidsStats contains Linux-specific stats of a container's process-IDs (PIDs).
|
|
1421
|
+
#
|
|
1422
|
+
# This type is Linux-specific and omitted for Windows containers.
|
|
1423
|
+
sig do
|
|
1424
|
+
params(
|
|
1425
|
+
current: T.nilable(Integer),
|
|
1426
|
+
limit: T.nilable(Integer)
|
|
1427
|
+
).returns(T.attached_class)
|
|
1428
|
+
end
|
|
1429
|
+
def self.new(
|
|
1430
|
+
# Current is the number of PIDs in the cgroup.
|
|
1431
|
+
current: nil,
|
|
1432
|
+
# Limit is the hard limit on the number of pids in the cgroup. A "Limit" of 0
|
|
1433
|
+
# means that there is no limit.
|
|
1434
|
+
limit: nil
|
|
1435
|
+
)
|
|
1436
|
+
end
|
|
1437
|
+
|
|
1438
|
+
sig do
|
|
1439
|
+
override.returns(
|
|
1440
|
+
{ current: T.nilable(Integer), limit: T.nilable(Integer) }
|
|
1441
|
+
)
|
|
1442
|
+
end
|
|
1443
|
+
def to_hash
|
|
1444
|
+
end
|
|
1445
|
+
end
|
|
1446
|
+
|
|
1447
|
+
class PrecpuStats < DockerEngineAPI::Internal::Type::BaseModel
|
|
1448
|
+
OrHash =
|
|
1449
|
+
T.type_alias do
|
|
1450
|
+
T.any(
|
|
1451
|
+
DockerEngineAPI::StatsResponse::PrecpuStats,
|
|
1452
|
+
DockerEngineAPI::Internal::AnyHash
|
|
1453
|
+
)
|
|
1454
|
+
end
|
|
1455
|
+
|
|
1456
|
+
# All CPU stats aggregated since container inception.
|
|
1457
|
+
sig do
|
|
1458
|
+
returns(
|
|
1459
|
+
T.nilable(DockerEngineAPI::StatsResponse::PrecpuStats::CPUUsage)
|
|
1460
|
+
)
|
|
1461
|
+
end
|
|
1462
|
+
attr_reader :cpu_usage
|
|
1463
|
+
|
|
1464
|
+
sig do
|
|
1465
|
+
params(
|
|
1466
|
+
cpu_usage:
|
|
1467
|
+
T.nilable(
|
|
1468
|
+
DockerEngineAPI::StatsResponse::PrecpuStats::CPUUsage::OrHash
|
|
1469
|
+
)
|
|
1470
|
+
).void
|
|
1471
|
+
end
|
|
1472
|
+
attr_writer :cpu_usage
|
|
1473
|
+
|
|
1474
|
+
# Number of online CPUs.
|
|
1475
|
+
#
|
|
1476
|
+
# This field is Linux-specific and omitted for Windows containers.
|
|
1477
|
+
sig { returns(T.nilable(Integer)) }
|
|
1478
|
+
attr_accessor :online_cpus
|
|
1479
|
+
|
|
1480
|
+
# System Usage.
|
|
1481
|
+
#
|
|
1482
|
+
# This field is Linux-specific and omitted for Windows containers.
|
|
1483
|
+
sig { returns(T.nilable(Integer)) }
|
|
1484
|
+
attr_accessor :system_cpu_usage
|
|
1485
|
+
|
|
1486
|
+
# CPU throttling stats of the container.
|
|
1487
|
+
#
|
|
1488
|
+
# This type is Linux-specific and omitted for Windows containers.
|
|
1489
|
+
sig do
|
|
1490
|
+
returns(
|
|
1491
|
+
T.nilable(
|
|
1492
|
+
DockerEngineAPI::StatsResponse::PrecpuStats::ThrottlingData
|
|
1493
|
+
)
|
|
1494
|
+
)
|
|
1495
|
+
end
|
|
1496
|
+
attr_reader :throttling_data
|
|
1497
|
+
|
|
1498
|
+
sig do
|
|
1499
|
+
params(
|
|
1500
|
+
throttling_data:
|
|
1501
|
+
T.nilable(
|
|
1502
|
+
DockerEngineAPI::StatsResponse::PrecpuStats::ThrottlingData::OrHash
|
|
1503
|
+
)
|
|
1504
|
+
).void
|
|
1505
|
+
end
|
|
1506
|
+
attr_writer :throttling_data
|
|
1507
|
+
|
|
1508
|
+
# CPU related info of the container
|
|
1509
|
+
sig do
|
|
1510
|
+
params(
|
|
1511
|
+
cpu_usage:
|
|
1512
|
+
T.nilable(
|
|
1513
|
+
DockerEngineAPI::StatsResponse::PrecpuStats::CPUUsage::OrHash
|
|
1514
|
+
),
|
|
1515
|
+
online_cpus: T.nilable(Integer),
|
|
1516
|
+
system_cpu_usage: T.nilable(Integer),
|
|
1517
|
+
throttling_data:
|
|
1518
|
+
T.nilable(
|
|
1519
|
+
DockerEngineAPI::StatsResponse::PrecpuStats::ThrottlingData::OrHash
|
|
1520
|
+
)
|
|
1521
|
+
).returns(T.attached_class)
|
|
1522
|
+
end
|
|
1523
|
+
def self.new(
|
|
1524
|
+
# All CPU stats aggregated since container inception.
|
|
1525
|
+
cpu_usage: nil,
|
|
1526
|
+
# Number of online CPUs.
|
|
1527
|
+
#
|
|
1528
|
+
# This field is Linux-specific and omitted for Windows containers.
|
|
1529
|
+
online_cpus: nil,
|
|
1530
|
+
# System Usage.
|
|
1531
|
+
#
|
|
1532
|
+
# This field is Linux-specific and omitted for Windows containers.
|
|
1533
|
+
system_cpu_usage: nil,
|
|
1534
|
+
# CPU throttling stats of the container.
|
|
1535
|
+
#
|
|
1536
|
+
# This type is Linux-specific and omitted for Windows containers.
|
|
1537
|
+
throttling_data: nil
|
|
1538
|
+
)
|
|
1539
|
+
end
|
|
1540
|
+
|
|
1541
|
+
sig do
|
|
1542
|
+
override.returns(
|
|
1543
|
+
{
|
|
1544
|
+
cpu_usage:
|
|
1545
|
+
T.nilable(
|
|
1546
|
+
DockerEngineAPI::StatsResponse::PrecpuStats::CPUUsage
|
|
1547
|
+
),
|
|
1548
|
+
online_cpus: T.nilable(Integer),
|
|
1549
|
+
system_cpu_usage: T.nilable(Integer),
|
|
1550
|
+
throttling_data:
|
|
1551
|
+
T.nilable(
|
|
1552
|
+
DockerEngineAPI::StatsResponse::PrecpuStats::ThrottlingData
|
|
1553
|
+
)
|
|
1554
|
+
}
|
|
1555
|
+
)
|
|
1556
|
+
end
|
|
1557
|
+
def to_hash
|
|
1558
|
+
end
|
|
1559
|
+
|
|
1560
|
+
class CPUUsage < DockerEngineAPI::Internal::Type::BaseModel
|
|
1561
|
+
OrHash =
|
|
1562
|
+
T.type_alias do
|
|
1563
|
+
T.any(
|
|
1564
|
+
DockerEngineAPI::StatsResponse::PrecpuStats::CPUUsage,
|
|
1565
|
+
DockerEngineAPI::Internal::AnyHash
|
|
1566
|
+
)
|
|
1567
|
+
end
|
|
1568
|
+
|
|
1569
|
+
# Total CPU time (in nanoseconds) consumed per core (Linux).
|
|
1570
|
+
#
|
|
1571
|
+
# This field is Linux-specific when using cgroups v1. It is omitted when using
|
|
1572
|
+
# cgroups v2 and Windows containers.
|
|
1573
|
+
sig { returns(T.nilable(T::Array[Integer])) }
|
|
1574
|
+
attr_accessor :percpu_usage
|
|
1575
|
+
|
|
1576
|
+
# Total CPU time consumed in nanoseconds (Linux) or 100's of nanoseconds
|
|
1577
|
+
# (Windows).
|
|
1578
|
+
sig { returns(T.nilable(Integer)) }
|
|
1579
|
+
attr_reader :total_usage
|
|
1580
|
+
|
|
1581
|
+
sig { params(total_usage: Integer).void }
|
|
1582
|
+
attr_writer :total_usage
|
|
1583
|
+
|
|
1584
|
+
# Time (in nanoseconds) spent by tasks of the cgroup in kernel mode (Linux), or
|
|
1585
|
+
# time spent (in 100's of nanoseconds) by all container processes in kernel mode
|
|
1586
|
+
# (Windows).
|
|
1587
|
+
#
|
|
1588
|
+
# Not populated for Windows containers using Hyper-V isolation.
|
|
1589
|
+
sig { returns(T.nilable(Integer)) }
|
|
1590
|
+
attr_reader :usage_in_kernelmode
|
|
1591
|
+
|
|
1592
|
+
sig { params(usage_in_kernelmode: Integer).void }
|
|
1593
|
+
attr_writer :usage_in_kernelmode
|
|
1594
|
+
|
|
1595
|
+
# Time (in nanoseconds) spent by tasks of the cgroup in user mode (Linux), or time
|
|
1596
|
+
# spent (in 100's of nanoseconds) by all container processes in kernel mode
|
|
1597
|
+
# (Windows).
|
|
1598
|
+
#
|
|
1599
|
+
# Not populated for Windows containers using Hyper-V isolation.
|
|
1600
|
+
sig { returns(T.nilable(Integer)) }
|
|
1601
|
+
attr_reader :usage_in_usermode
|
|
1602
|
+
|
|
1603
|
+
sig { params(usage_in_usermode: Integer).void }
|
|
1604
|
+
attr_writer :usage_in_usermode
|
|
1605
|
+
|
|
1606
|
+
# All CPU stats aggregated since container inception.
|
|
1607
|
+
sig do
|
|
1608
|
+
params(
|
|
1609
|
+
percpu_usage: T.nilable(T::Array[Integer]),
|
|
1610
|
+
total_usage: Integer,
|
|
1611
|
+
usage_in_kernelmode: Integer,
|
|
1612
|
+
usage_in_usermode: Integer
|
|
1613
|
+
).returns(T.attached_class)
|
|
1614
|
+
end
|
|
1615
|
+
def self.new(
|
|
1616
|
+
# Total CPU time (in nanoseconds) consumed per core (Linux).
|
|
1617
|
+
#
|
|
1618
|
+
# This field is Linux-specific when using cgroups v1. It is omitted when using
|
|
1619
|
+
# cgroups v2 and Windows containers.
|
|
1620
|
+
percpu_usage: nil,
|
|
1621
|
+
# Total CPU time consumed in nanoseconds (Linux) or 100's of nanoseconds
|
|
1622
|
+
# (Windows).
|
|
1623
|
+
total_usage: nil,
|
|
1624
|
+
# Time (in nanoseconds) spent by tasks of the cgroup in kernel mode (Linux), or
|
|
1625
|
+
# time spent (in 100's of nanoseconds) by all container processes in kernel mode
|
|
1626
|
+
# (Windows).
|
|
1627
|
+
#
|
|
1628
|
+
# Not populated for Windows containers using Hyper-V isolation.
|
|
1629
|
+
usage_in_kernelmode: nil,
|
|
1630
|
+
# Time (in nanoseconds) spent by tasks of the cgroup in user mode (Linux), or time
|
|
1631
|
+
# spent (in 100's of nanoseconds) by all container processes in kernel mode
|
|
1632
|
+
# (Windows).
|
|
1633
|
+
#
|
|
1634
|
+
# Not populated for Windows containers using Hyper-V isolation.
|
|
1635
|
+
usage_in_usermode: nil
|
|
1636
|
+
)
|
|
1637
|
+
end
|
|
1638
|
+
|
|
1639
|
+
sig do
|
|
1640
|
+
override.returns(
|
|
1641
|
+
{
|
|
1642
|
+
percpu_usage: T.nilable(T::Array[Integer]),
|
|
1643
|
+
total_usage: Integer,
|
|
1644
|
+
usage_in_kernelmode: Integer,
|
|
1645
|
+
usage_in_usermode: Integer
|
|
1646
|
+
}
|
|
1647
|
+
)
|
|
1648
|
+
end
|
|
1649
|
+
def to_hash
|
|
1650
|
+
end
|
|
1651
|
+
end
|
|
1652
|
+
|
|
1653
|
+
class ThrottlingData < DockerEngineAPI::Internal::Type::BaseModel
|
|
1654
|
+
OrHash =
|
|
1655
|
+
T.type_alias do
|
|
1656
|
+
T.any(
|
|
1657
|
+
DockerEngineAPI::StatsResponse::PrecpuStats::ThrottlingData,
|
|
1658
|
+
DockerEngineAPI::Internal::AnyHash
|
|
1659
|
+
)
|
|
1660
|
+
end
|
|
1661
|
+
|
|
1662
|
+
# Number of periods with throttling active.
|
|
1663
|
+
sig { returns(T.nilable(Integer)) }
|
|
1664
|
+
attr_reader :periods
|
|
1665
|
+
|
|
1666
|
+
sig { params(periods: Integer).void }
|
|
1667
|
+
attr_writer :periods
|
|
1668
|
+
|
|
1669
|
+
# Number of periods when the container hit its throttling limit.
|
|
1670
|
+
sig { returns(T.nilable(Integer)) }
|
|
1671
|
+
attr_reader :throttled_periods
|
|
1672
|
+
|
|
1673
|
+
sig { params(throttled_periods: Integer).void }
|
|
1674
|
+
attr_writer :throttled_periods
|
|
1675
|
+
|
|
1676
|
+
# Aggregated time (in nanoseconds) the container was throttled for.
|
|
1677
|
+
sig { returns(T.nilable(Integer)) }
|
|
1678
|
+
attr_reader :throttled_time
|
|
1679
|
+
|
|
1680
|
+
sig { params(throttled_time: Integer).void }
|
|
1681
|
+
attr_writer :throttled_time
|
|
1682
|
+
|
|
1683
|
+
# CPU throttling stats of the container.
|
|
1684
|
+
#
|
|
1685
|
+
# This type is Linux-specific and omitted for Windows containers.
|
|
1686
|
+
sig do
|
|
1687
|
+
params(
|
|
1688
|
+
periods: Integer,
|
|
1689
|
+
throttled_periods: Integer,
|
|
1690
|
+
throttled_time: Integer
|
|
1691
|
+
).returns(T.attached_class)
|
|
1692
|
+
end
|
|
1693
|
+
def self.new(
|
|
1694
|
+
# Number of periods with throttling active.
|
|
1695
|
+
periods: nil,
|
|
1696
|
+
# Number of periods when the container hit its throttling limit.
|
|
1697
|
+
throttled_periods: nil,
|
|
1698
|
+
# Aggregated time (in nanoseconds) the container was throttled for.
|
|
1699
|
+
throttled_time: nil
|
|
1700
|
+
)
|
|
1701
|
+
end
|
|
1702
|
+
|
|
1703
|
+
sig do
|
|
1704
|
+
override.returns(
|
|
1705
|
+
{
|
|
1706
|
+
periods: Integer,
|
|
1707
|
+
throttled_periods: Integer,
|
|
1708
|
+
throttled_time: Integer
|
|
1709
|
+
}
|
|
1710
|
+
)
|
|
1711
|
+
end
|
|
1712
|
+
def to_hash
|
|
1713
|
+
end
|
|
1714
|
+
end
|
|
1715
|
+
end
|
|
1716
|
+
|
|
1717
|
+
class StorageStats < DockerEngineAPI::Internal::Type::BaseModel
|
|
1718
|
+
OrHash =
|
|
1719
|
+
T.type_alias do
|
|
1720
|
+
T.any(
|
|
1721
|
+
DockerEngineAPI::StatsResponse::StorageStats,
|
|
1722
|
+
DockerEngineAPI::Internal::AnyHash
|
|
1723
|
+
)
|
|
1724
|
+
end
|
|
1725
|
+
|
|
1726
|
+
sig { returns(T.nilable(Integer)) }
|
|
1727
|
+
attr_accessor :read_count_normalized
|
|
1728
|
+
|
|
1729
|
+
sig { returns(T.nilable(Integer)) }
|
|
1730
|
+
attr_accessor :read_size_bytes
|
|
1731
|
+
|
|
1732
|
+
sig { returns(T.nilable(Integer)) }
|
|
1733
|
+
attr_accessor :write_count_normalized
|
|
1734
|
+
|
|
1735
|
+
sig { returns(T.nilable(Integer)) }
|
|
1736
|
+
attr_accessor :write_size_bytes
|
|
1737
|
+
|
|
1738
|
+
# StorageStats is the disk I/O stats for read/write on Windows.
|
|
1739
|
+
#
|
|
1740
|
+
# This type is Windows-specific and omitted for Linux containers.
|
|
1741
|
+
sig do
|
|
1742
|
+
params(
|
|
1743
|
+
read_count_normalized: T.nilable(Integer),
|
|
1744
|
+
read_size_bytes: T.nilable(Integer),
|
|
1745
|
+
write_count_normalized: T.nilable(Integer),
|
|
1746
|
+
write_size_bytes: T.nilable(Integer)
|
|
1747
|
+
).returns(T.attached_class)
|
|
1748
|
+
end
|
|
1749
|
+
def self.new(
|
|
1750
|
+
read_count_normalized: nil,
|
|
1751
|
+
read_size_bytes: nil,
|
|
1752
|
+
write_count_normalized: nil,
|
|
1753
|
+
write_size_bytes: nil
|
|
1754
|
+
)
|
|
1755
|
+
end
|
|
1756
|
+
|
|
1757
|
+
sig do
|
|
1758
|
+
override.returns(
|
|
1759
|
+
{
|
|
1760
|
+
read_count_normalized: T.nilable(Integer),
|
|
1761
|
+
read_size_bytes: T.nilable(Integer),
|
|
1762
|
+
write_count_normalized: T.nilable(Integer),
|
|
1763
|
+
write_size_bytes: T.nilable(Integer)
|
|
1764
|
+
}
|
|
1765
|
+
)
|
|
1766
|
+
end
|
|
1767
|
+
def to_hash
|
|
1768
|
+
end
|
|
1769
|
+
end
|
|
1770
|
+
end
|
|
1771
|
+
end
|
|
1772
|
+
end
|