Method: TrieveRubyClient::DatasetAnalytics#list_invalid_properties

Defined in:
lib/trieve_ruby_client/models/dataset_analytics.rb

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# File 'lib/trieve_ruby_client/models/dataset_analytics.rb', line 119

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  invalid_properties = Array.new
  if @avg_latency.nil?
    invalid_properties.push('invalid value for "avg_latency", avg_latency cannot be nil.')
  end

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

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

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

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

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

  invalid_properties
end