insights/parsr/query/__init__.py
def where(self, name, value=None):
        """
        Selects current nodes based on name and value queries of child nodes.
        If any immediate children match the queries, the parent is included in
        the results. The :py:func:``make_child_query`` function can be used to
        construct queries that act on the children as a whole instead of one
        at a time.

        Example:
        >>> from insights.parsr.query import make_child_query as q
        >>> from insights.parsr.query import from_dict
        >>> r = from_dict(load_config())
        >>> r = conf.status.conditions.where(q("status", "False") | q("type", "Progressing"))
        >>> r.message
        >>> r = conf.status.conditions.where(q("status", "False") | q("type", "Progressing"))
        >>> r.message
        >>> r.lastTransitionTime.values
        ['2019-08-04T23:17:08Z', '2019-08-04T23:32:14Z']
        """
        query = make_child_query(name, value) if not isinstance(name, DictQueryBase) else name
        return Result(children=list(set(c for c in self.children if query.test(c))))

        Selects current nodes based on name and value queries of child nodes.
        If any immediate children match the queries, the parent is included in
        the results. The :py:func:``make_child_query`` function can be used to
        construct queries that act on the children as a whole instead of one
        at a time.

        Example:
        >>> from insights.parsr.query import make_child_query as q
        >>> from insights.parsr.query import from_dict
        >>> r = from_dict(load_config())
        >>> r = conf.status.conditions.where(q("status", "False") | q("type", "Progressing"))
        >>> r.message
        >>> r = conf.status.conditions.where(q("status", "False") | q("type", "Progressing"))
        >>> r.message
        >>> r.lastTransitionTime.values
        ['2019-08-04T23:17:08Z', '2019-08-04T23:32:14Z']
        
Selects current nodes based on name and value queries of child nodes.
If any immediate children match the queries, the parent is included in
the results. The :py:func:``make_child_query`` function can be used to
construct queries that act on the children as a whole instead of one
at a time.
Selects current nodes based on name and value queries of child nodes . If any immediate children match the queries the parent is included in the results . The : py : func : ` ` make_child_query ` ` function can be used to construct queries that act on the children as a whole instead of one at a time .
def where(self, name, value=None):
        query = make_child_query(name, value) if not isinstance(name, DictQueryBase) else name
        return Result(children=list(set(c for c in self.children if query.test(c))))
def where ( self , name , value = None ) : query = make_child_query ( name , value ) if not isinstance ( name , DictQueryBase ) else name return Result ( children = list ( set ( c for c in self . children if query . test ( c ) ) ) )
Selects current nodes based on name and value queries of child nodes.
Selects current nodes based on name and value queries of child nodes .
"""
        Selects current nodes based on name and value queries of child nodes.
        If any immediate children match the queries, the parent is included in
        the results. The :py:func:``make_child_query`` function can be used to
        construct queries that act on the children as a whole instead of one
        at a time.

        Example:
        >>> from insights.parsr.query import make_child_query as q
        >>> from insights.parsr.query import from_dict
        >>> r = from_dict(load_config())
        >>> r = conf.status.conditions.where(q("status", "False") | q("type", "Progressing"))
        >>> r.message
        >>> r = conf.status.conditions.where(q("status", "False") | q("type", "Progressing"))
        >>> r.message
        >>> r.lastTransitionTime.values
        ['2019-08-04T23:17:08Z', '2019-08-04T23:32:14Z']
        """
self
name
value
examples
None