Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.25 KB

ResourceMonitor.md

File metadata and controls

32 lines (23 loc) · 1.25 KB

ResourceMonitor

Properties

Name Type Description Notes
monitor_type str
alert_rules List[ResourceAlertRule] Array of alert rules. Only one alert per severity is allowed.
sampling_interval str Duration between monitor samples. Format: positive integer followed by 's' for seconds, 'm' for minutes, 'h' for hours.
path str The directory path to monitor for disk usage.

Example

from flightctl.models.resource_monitor import ResourceMonitor

# TODO update the JSON string below
json = "{}"
# create an instance of ResourceMonitor from a JSON string
resource_monitor_instance = ResourceMonitor.from_json(json)
# print the JSON string representation of the object
print(ResourceMonitor.to_json())

# convert the object into a dict
resource_monitor_dict = resource_monitor_instance.to_dict()
# create an instance of ResourceMonitor from a dict
resource_monitor_from_dict = ResourceMonitor.from_dict(resource_monitor_dict)

[Back to Model list] [Back to API list] [Back to README]