open-nomad/ui/app/models/evaluation-stub.js
2023-04-10 15:36:59 +00:00

29 lines
776 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Model, { attr } from '@ember-data/model';
import shortUUIDProperty from '../utils/properties/short-uuid';
export default class EvaluationStub extends Model {
@shortUUIDProperty('id') shortId;
@attr('number') priority;
@attr('string') type;
@attr('string') triggeredBy;
@attr('string') namespace;
@attr('string') jobId;
@attr('string') nodeId;
@attr('string') deploymentId;
@attr('string') status;
@attr('string') statusDescription;
@attr('date') waitUntil;
@attr('string') previousEval;
@attr('string') nextEval;
@attr('string') blockedEval;
@attr('number') modifyIndex;
@attr('date') modifyTime;
@attr('number') createIndex;
@attr('date') createTime;
}