MatcherConfigπ
Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.
It comes with in id ( to resolve implementation from registry) and a configuration thatβs specific to a particular matcher type.
Definitionπ
class MatcherConfig:
"""
Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.
It comes with in id ( to resolve implementation from registry) and a configuration thatβs specific to a particular matcher type.
"""
# The matcher id. This is used to find the matcher implementation from registry.
id_val: str
# If set, limits this matcher to fields of that type. If not set, "series" mode is used.
scope: typing.Optional[dashboardv2beta1.MatcherScope]
# The matcher options. This is specific to the matcher implementation.
options: typing.Optional[object]
Methodsπ
to_jsonπ
Converts this object into a representation that can easily be encoded to JSON.
from_jsonπ
Builds this object from a JSON-decoded dict.