mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 21:39:40 +02:00
Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
11 lines
239 B
JavaScript
11 lines
239 B
JavaScript
import _ from 'lodash-es';
|
|||
|
|||
class KubernetesEventHelper {
|
|||
static warningCount(events) {
|
|||
const warnings = _.filter(events, (event) => event.Type === 'Warning');
|
|||
return warnings.length;
|
|||
}
|
|||
}
|
|||
|
|||
export default KubernetesEventHelper;
|