open-nomad/ui/app/serializers/scale-event.js
2020-07-29 19:07:24 -07:00

11 lines
298 B
JavaScript

import ApplicationSerializer from './application';
export default class ScaleEventSerializer extends ApplicationSerializer {
normalize(typeHash, hash) {
hash.TimeNanos = hash.Time % 1000000;
hash.Time = Math.floor(hash.Time / 1000000);
return super.normalize(typeHash, hash);
}
}