1classdef SampledMetric < Copyable
2 % Observed data
for a metric
4 % Copyright (c) 2012-2026, Imperial College London
14 format; %
'timeseries' (
default) or
'trace' (per-request)
19 function self = SampledMetric(type, ts, data, node,
jobclass)
26 self.format =
'timeseries';
27 if exist(
'jobclass',
'var')
32 function setConditional(self, event)
33 if exist('event','var')
38 function setTrace(self)
39 self.format = 'trace';
42 function
bool = isAggregate(self)
43 bool = isempty(self.class);
46 function
bool = isConditional(self)
47 bool = ~isempty(self.cond);
50 function
bool = isTrace(self)
51 bool = strcmp(self.format, 'trace');