The intersect function finds the values that are in both set A and set B

Description

Finds the intersection of two sets

Example

Find tasks from the ‘sla_higs_tasks’ list that are installed on instances tagged with sla=low

intersect(
      instance[sla='low']/task/name, 
      list[name='sla_high_tasks']/content/name
)

Syntax

intersect(expression, expression)

Parameters

Type Description
Expresssion Expression that gives a set of values
Expresssion Expression that gives a set of values