lib/fastly/models/realtime_measurements.rb in fastly-5.3.1 vs lib/fastly/models/realtime_measurements.rb in fastly-6.0.0
- old
+ new
@@ -912,11 +912,11 @@
:'pass' => :'Integer',
:'synth' => :'Integer',
:'errors' => :'Integer',
:'hits_time' => :'Float',
:'miss_time' => :'Float',
- :'miss_histogram' => :'Object',
+ :'miss_histogram' => :'Hash<String, Object>',
:'compute_requests' => :'Integer',
:'compute_execution_time_ms' => :'Float',
:'compute_ram_used' => :'Integer',
:'compute_request_time_ms' => :'Float',
:'compute_request_time_billed_ms' => :'Float',
@@ -1197,10 +1197,12 @@
if attributes.key?(:'miss_time')
self.miss_time = attributes[:'miss_time']
end
if attributes.key?(:'miss_histogram')
- self.miss_histogram = attributes[:'miss_histogram']
+ if (value = attributes[:'miss_histogram']).is_a?(Hash)
+ self.miss_histogram = value
+ end
end
if attributes.key?(:'compute_requests')
self.compute_requests = attributes[:'compute_requests']
end