Skip to content

Commit

Permalink
⭐️ Add tags to objectref (#5083)
Browse files Browse the repository at this point in the history
* ⭐️ Add tags to objectref

We can use the tags to provide additional metadata for variants like
what icon to use and what title to show

An example:
```
queries:
  - uid: mondoo-edr-policy-ensure-edr-agent-is-installed
    title: Ensure EDR Agent is installed
    variants:
        - uid: mondoo-edr-policy-ensure-edr-agent-is-installed-macos
          tags:
            mondoo.com/filter-title: macos
        - uid: mondoo-edr-policy-ensure-edr-agent-is-installed-linux
          tags:
            mondoo.com/filter-title: linux
        - uid: mondoo-edr-policy-ensure-edr-agent-is-installed-windows
          tags:
            mondoo.com/filter-title: windows
```

* update example
  • Loading branch information
jaym authored Jan 10, 2025
1 parent 4f6ab52 commit d19b449
Show file tree
Hide file tree
Showing 4 changed files with 614 additions and 586 deletions.
4 changes: 4 additions & 0 deletions examples/complex.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ queries:
title: Collect uname info
variants:
- uid: unix-uname
tags:
mondoo.com/filter-title: unix
- uid: windows-uname
tags:
mondoo.com/filter-title: windows
- uid: unix-uname
mql: command("uname -a").stdout
filters: asset.family.contains("unix")
Expand Down
Loading

0 comments on commit d19b449

Please sign in to comment.