Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.32 KB

CustomResourceMonitorSpec.md

File metadata and controls

31 lines (22 loc) · 1.32 KB

CustomResourceMonitorSpec

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.

Example

from flightctl.models.custom_resource_monitor_spec import CustomResourceMonitorSpec

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

# convert the object into a dict
custom_resource_monitor_spec_dict = custom_resource_monitor_spec_instance.to_dict()
# create an instance of CustomResourceMonitorSpec from a dict
custom_resource_monitor_spec_from_dict = CustomResourceMonitorSpec.from_dict(custom_resource_monitor_spec_dict)

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