Test Failed
Push — master ( cc9054...a8608f )
by Nicolas
03:40
created

glances.plugins.vms.engines   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A VmsExtension.update() 0 2 1
A VmsExtension.stop() 0 2 1
1
#
2
# This file is part of Glances.
3
#
4
# SPDX-FileCopyrightText: 2024 Nicolas Hennion <[email protected]>
5
#
6
# SPDX-License-Identifier: LGPL-3.0-only
7
#
8
9
from typing import Any, Dict, List, Protocol, Tuple
10
11
12
class VmsExtension(Protocol):
13
    def stop(self) -> None:
14
        raise NotImplementedError
15
16
    def update(self, all_tag) -> Tuple[Dict, List[Dict[str, Any]]]:
17
        raise NotImplementedError
18