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/helpers/eventHelper.js

11 lines
239 B

import _ from 'lodash-es';
class KubernetesEventHelper {
static warningCount(events) {
const warnings = _.filter(events, (event) => event.Type === 'Warning');
return warnings.length;
}
}
export default KubernetesEventHelper;