You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/kubernetes/converters/event.js

16 lines
414 B

import { KubernetesEvent } from 'Kubernetes/models/event/models';
class KubernetesEventConverter {
static apiToEvent(data) {
const res = new KubernetesEvent();
res.Id = data.metadata.uid;
res.Date = data.lastTimestamp || data.eventTime;
res.Type = data.type;
res.Message = data.message;
res.Involved = data.involvedObject;
return res;
}
}
export default KubernetesEventConverter;