Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.4 KB

File metadata and controls

32 lines (23 loc) · 1.4 KB

DiskResourceMonitorSpec

Properties

Name Type Description Notes
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.
monitor_type str The type of resource to monitor.
path str The directory path to monitor for disk usage.

Example

from flightctl.models.disk_resource_monitor_spec import DiskResourceMonitorSpec

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

# convert the object into a dict
disk_resource_monitor_spec_dict = disk_resource_monitor_spec_instance.to_dict()
# create an instance of DiskResourceMonitorSpec from a dict
disk_resource_monitor_spec_from_dict = DiskResourceMonitorSpec.from_dict(disk_resource_monitor_spec_dict)

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