github.com/hernad/nomad@v1.6.112/ui/app/models/reschedule-event.js (about)

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  import Fragment from 'ember-data-model-fragments/fragment';
     7  import { attr } from '@ember-data/model';
     8  import { fragmentOwner } from 'ember-data-model-fragments/attributes';
     9  import shortUUIDProperty from '../utils/properties/short-uuid';
    10  
    11  export default class RescheduleEvent extends Fragment {
    12    @fragmentOwner() allocation;
    13  
    14    @attr('string') previousAllocationId;
    15    @attr('string') previousNodeId;
    16    @attr('date') time;
    17    @attr('string') delay;
    18  
    19    @shortUUIDProperty('previousAllocationId') previousAllocationShortId;
    20    @shortUUIDProperty('previousNodeShortId') previousNodeShortId;
    21  }