Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.32 KB

File metadata and controls

32 lines (23 loc) · 1.32 KB

ResourceAlertRule

Properties

Name Type Description Notes
severity ResourceAlertSeverityType
duration str Duration is the time over which the average usage is observed before alerting. Format: positive integer followed by 's' for seconds, 'm' for minutes, 'h' for hours.
percentage float The percentage of usage that triggers the alert.
description str A human-readable description of the alert.

Example

from flightctl.models.resource_alert_rule import ResourceAlertRule

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

# convert the object into a dict
resource_alert_rule_dict = resource_alert_rule_instance.to_dict()
# create an instance of ResourceAlertRule from a dict
resource_alert_rule_from_dict = ResourceAlertRule.from_dict(resource_alert_rule_dict)

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