| Total Complexity | 1 |
| Total Lines | 9 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 26 | class ConstReader(plumd.plugins.Reader): |
||
| 27 | pid = os.getpid() |
||
| 28 | |||
| 29 | """Generates a constant metric. For testing.""" |
||
| 30 | def poll(self): |
||
| 31 | """Return a const metric""" |
||
| 32 | robj = plumd.Result("constant", plumd.Int("pid", self.pid)) |
||
| 33 | rset = plumd.ResultSet(robj) |
||
| 34 | return rset |
||
| 35 |