Class: OpenObserve::Api::Models::CreateAlertRequestBody
- Inherits:
-
Object
- Object
- OpenObserve::Api::Models::CreateAlertRequestBody
- Includes:
- Serializable, Validations
- Defined in:
- lib/openobserve-api/models/create_alert_request_body.rb
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ CreateAlertRequestBody
constructor
A new instance of CreateAlertRequestBody.
Methods included from Validations
included, #list_invalid_properties, #valid?
Methods included from Serializable
#==, #hash, serialize, #to_body, #to_hash, #to_json, #to_s
Constructor Details
#initialize(**attrs) ⇒ CreateAlertRequestBody
Returns a new instance of CreateAlertRequestBody.
145 146 147 148 149 150 151 152 |
# File 'lib/openobserve-api/models/create_alert_request_body.rb', line 145 def initialize(**attrs) attrs.each do |k, v| raise ArgumentError, "unknown attribute: #{k}" unless respond_to?("#{k}=") public_send("#{k}=", v) end raise ArgumentError, list_invalid_properties.join(', ') unless valid? end |