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

← union function / difference function →

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment