Passer au contenu principal

Trigger Conditions

Mis à jour aujourd’hui

Introduction

Every scheduled and event-based trigger supports conditions. Conditions filter which devices are pulled into an automation run when the trigger fires — so instead of running against every assigned device, you can target a specific subset of devices based on platform, group, tag, status, or other device attributes.

The manual trigger doesn't support conditions. All other trigger types share the same condition builder described here.


How Conditions Work

Conditions are configured per trigger, not per automation. If an automation has multiple triggers, each trigger can have its own independent condition set.

When a trigger fires, Level evaluates its conditions against your devices at that moment. Devices that match all conditions are pulled into the automation run. Devices that don't match are skipped — they're not tracked or queued, and they'll be evaluated fresh the next time the trigger fires.

Multiple conditions use AND logic: every condition must be satisfied for a device to be included. There's no OR option within a single trigger. If you need OR-style behavior, add a second trigger with different conditions.

ℹ️ REMARQUE: Triggers evaluate against all devices in your organization. The Groupe condition is how you scope a trigger to a subset — without one, any device in the org that matches the other conditions will be pulled in.


Configuration des conditions

Conditions are set inside the trigger configuration panel when adding or editing a trigger.

ℹ️ REMARQUE: Triggers and actions are only editable in edit mode. From the pipeline view, click Modifier in the top-right corner to enter edit mode. If you click a trigger or action outside of edit mode, a read-only detail panel opens showing run status and history — you won't see configuration options there.

  1. Open the trigger configuration panel by clicking an existing trigger or adding a new one.

  2. Click the Condition dropdown and select a condition type.

  3. Set the operator and value for the condition.

  4. To add another condition, click + Add new condition.

  5. To remove a condition, click Supprimer next to it.

  6. Click Enregistrer to apply.

Condition Configuration

Référence des conditions

ℹ️ REMARQUE: Several condition types — including Plateforme, Système d'exploitation, Étiquette, and Groupe — are populated dynamically from your actual device inventory. If your environment only has Windows devices, you'll only see Windows in the Plateforme dropdown. Système d'exploitation shows the specific versions present across your enrolled devices. Empty dropdowns mean Level hasn't detected any devices with that attribute yet.

All devices

No filtering applied. Every device in your organization is included when the trigger fires.

Selecting All devices requires no further configuration. Use it when you want the trigger to run against your entire device inventory with no restrictions.


Plateforme

Filtrer par la famille du système d'exploitation de l'appareil.

Opérateur

Description

Égal à

Le système d'exploitation du l'appareil correspond à l'une des plates-formes sélectionnées

Non égal à

Le système d'exploitation du l'appareil ne correspond à aucune des plates-formes sélectionnées

Valeurs: Windows, macSystème d'exploitation, Linux. Multiple values can be selected.


Étiquette

Filtrer par les étiquettes appliquées à l'appareil.

Opérateur

Description

Égal à

L'appareil a toutes les étiquettes sélectionnées

Non égal à

L'appareil n'a aucune des étiquettes sélectionnées

Sélectionnez une ou plusieurs étiquettes dans la liste des étiquettes de votre organisation.

💡 CONSEIL: Étiquette conditions are useful for targeting devices by function or client without relying on group structure — for example, running a trigger only on devices tagged SERVER or PRODUCTION.


Groupe

Filtrer par le groupe d'appareils auquel l'appareil appartient.

Opérateur

Description

Égal à

L'appareil est membre de l'un des groupes sélectionnés

Non égal à

L'appareil n'est pas membre d'un des groupes sélectionnés

Sélectionnez un ou plusieurs groupes dans votre hiérarchie de groupes. Child groups can be expanded inline.


Statut

Filter by whether the device is currently online or offline at the moment the trigger fires.

Opérateur

Description

Égal à

Le statut de l'appareil correspond à la valeur sélectionnée

Non égal à

Le statut de l'appareil ne correspond pas à la valeur sélectionnée

Valeurs: Online, Offline.

ℹ️ REMARQUE: The Statut condition is the key lever for controlling offline device behavior. Without a Statut condition, offline devices that otherwise match will be pulled into the run and queued — they'll resume at whatever action they were on once they come back online. Adding a Statut = Online condition excludes offline devices entirely, so they won't be queued at all.


Nom d'hôte

Filtrer par le nom d'hôte de l'appareil.

Opérateur

Description

Égal à

Nom d'hôte exactly matches the entered value

Non égal à

Nom d'hôte does not match the entered value

Contient

Nom d'hôte includes the entered string

Ne contient pas

Nom d'hôte does not include the entered string

Entrez la valeur du nom d'hôte manuellement. La correspondance ne tient pas compte de la casse.

💡 CONSEIL: Use Contient to target naming conventions — for example, filtering to all devices whose hostname contains SRV or a client prefix.


Vu pour la dernière fois (en jours)

Filtrer par le nombre de jours écoulés depuis que l'appareil s'est enregistré pour la dernière fois auprès de Level.

Opérateur

Description

Plus grand que

L'appareil a été vu pour la dernière fois il y a plus de N jours

Plus grand que or equal to

L'appareil a été vu pour la dernière fois il y a N jours ou plus

Moins que

L'appareil a été vu pour la dernière fois il y a moins de N jours

Moins que or equal to

L'appareil a été vu pour la dernière fois il y a N jours ou moins

Entrez un nombre entier de jours comme valeur en texte libre.

💡 CONSEIL: Use this condition to limit automation runs to recently active devices — for example, skipping devices that haven't been seen in more than 30 days, which may be decommissioned or in storage.


Architecture

Filtrer par l'architecture du processeur de l'appareil.

Opérateur

Description

Égal à

L'architecture de l'appareil correspond à la valeur sélectionnée

Non égal à

L'architecture de l'appareil ne correspond pas à la valeur sélectionnée

Valeurs: amd64, arm64.


Système d'exploitation

Filter by the device's specific Système d'exploitation version.

Opérateur

Description

Égal à

Système d'exploitation version matches the selected value

Non égal à

Système d'exploitation version does not match the selected value

Valeurs are populated from the Système d'exploitation versions present in your device inventory. Examples include Windows 11, Windows 10, Windows Server 2022, Windows Server 2019, Windows Server 2016, macSystème d'exploitation Sonoma, Debian. Your list will reflect what's actually enrolled.

ℹ️ REMARQUE: Système d'exploitation values are specific version names, not Système d'exploitation families. To filter broadly by operating system type (Windows, macSystème d'exploitation, Linux), use the Plateforme condition instead.


Type

Filtrer par type d'appareil.

Opérateur

Description

Égal à

Le type d'appareil correspond à la valeur sélectionnée

Non égal à

Le type d'appareil ne correspond pas à la valeur sélectionnée

Valeurs: Workstation, Server.


FAQ

  • Do conditions apply every time the trigger fires, or just the first time? Every time. Conditions are evaluated fresh on each trigger fire. A device that matched last week might be excluded this week if its group membership, tags, or status has changed.

  • Can I use OR logic between conditions? Not within a single trigger. Multiple conditions always use AND logic. To achieve OR-style behavior, add a second trigger to the automation with different conditions — both triggers will be evaluated independently.

  • Will a device be skipped permanently if it doesn't match the conditions? No. Conditions are evaluated fresh each time the trigger fires. If a device's attributes change — its group, tags, status, or Système d'exploitation — and it matches on the next fire, it'll be included in that run.

  • What if I want to run a trigger on all devices except those in one group? Use a Groupe condition with the Non égal à operator and select the group to exclude.

  • Can I use conditions to filter devices on the manual trigger? No. The manual trigger doesn't support conditions — you select devices directly when adding them. See Manual Trigger for how that works.

Avez-vous trouvé la réponse à votre question ?