Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.35 KB

File metadata and controls

31 lines (22 loc) · 1.35 KB

MemoryResourceMonitorSpec

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.

Example

from flightctl.models.memory_resource_monitor_spec import MemoryResourceMonitorSpec

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

# convert the object into a dict
memory_resource_monitor_spec_dict = memory_resource_monitor_spec_instance.to_dict()
# create an instance of MemoryResourceMonitorSpec from a dict
memory_resource_monitor_spec_from_dict = MemoryResourceMonitorSpec.from_dict(memory_resource_monitor_spec_dict)

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