Method: OpsgenieSdk::PrometheusIntegration#list_invalid_properties

Defined in:
lib/opsgenie_sdk/models/prometheus_integration.rb

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



123
124
125
126
127
128
129
130
131
132
133
134
# File 'lib/opsgenie_sdk/models/prometheus_integration.rb', line 123

def list_invalid_properties
  invalid_properties = Array.new
  if @type.nil?
    invalid_properties.push('invalid value for "type", type cannot be nil.')
  end

  if @name.nil?
    invalid_properties.push('invalid value for "name", name cannot be nil.')
  end

  invalid_properties
end