lib/fastly/models/realtime_entry.rb in fastly-5.3.1 vs lib/fastly/models/realtime_entry.rb in fastly-6.0.0

- old
+ new

@@ -12,14 +12,12 @@ require 'time' module Fastly # A list of records, each representing one second of time. The `Data` property provides access to [measurement data](#measurements-data-model) for that time period, grouped in various ways. class RealtimeEntry - # The Unix timestamp at which this record's data was generated. attr_accessor :recorded - # Aggregates [measurements](#measurements-data-model) across all Fastly POPs. attr_accessor :aggregated # Groups [measurements](#measurements-data-model) by POP. See the [POPs API](/reference/api/utils/pops/) for details of POP identifiers. attr_accessor :datacenter @@ -38,12 +36,12 @@ end # Attribute type mapping. def self.fastly_types { - :'recorded' => :'Integer', - :'aggregated' => :'RealtimeMeasurements', + :'recorded' => :'RealtimeEntryRecorded', + :'aggregated' => :'RealtimeEntryAggregated', :'datacenter' => :'Hash<String, RealtimeMeasurements>' } end # List of attributes with nullable: true @@ -70,12 +68,9 @@ if attributes.key?(:'recorded') self.recorded = attributes[:'recorded'] end if attributes.key?(:'aggregated') - if (value = attributes[:'aggregated']).is_a?(Hash) - self.aggregated = value - end self.aggregated = attributes[:'aggregated'] end if attributes.key?(:'datacenter') if (value = attributes[:'datacenter']).is_a?(Hash)