mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-05 23:45:30 +00:00
Some checks failed
Python CI / build (push) Has been cancelled
Co-authored-by: API Team <api-team@thousandeyes.com>
1.3 KiB
1.3 KiB
ProcessMetrics
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| name | str | The name of the process. | [optional] |
| pid | int | The process ID. | [optional] |
| cpu | float | The CPU usage by the process as a percentage (e.g., 0.5 for 50% CPU usage). | [optional] |
| memory_percentage | float | The memory usage by the process as a percentage (e.g., 0.22 for 22%). | [optional] |
| memory_bytes | int | The memory usage by the process in bytes. | [optional] |
Example
from thousandeyes_sdk.endpoint_test_results.models.process_metrics import ProcessMetrics
# TODO update the JSON string below
json = "{}"
# create an instance of ProcessMetrics from a JSON string
process_metrics_instance = ProcessMetrics.from_json(json)
# print the JSON string representation of the object
print(ProcessMetrics.to_json())
# convert the object into a dict
process_metrics_dict = process_metrics_instance.to_dict()
# create an instance of ProcessMetrics from a dict
process_metrics_from_dict = ProcessMetrics.from_dict(process_metrics_dict)