Skip to content

Allow for dynamic groups #30

Description

@DII-dsward
SUMMARY

logicmonitor.integration.lm_device_group should allow for dynamic groups using applies_to

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

logicmonitor.integration.lm_device_group

ADDITIONAL INFORMATION

An 'applies_to' parameter could add a dynamic filter rule for auto-grouping devices

# Example of adding a device group
- name: Add Device Group
  hosts: localhost
  tasks:
    - name: Create a Dynamic LogicMonitor Group for US-East Region
      logicmonitor.integration.lm_device_group:
        action: add
        company: "{{ logicmonitor_company }}"
        access_id: "{{ logicmonitor_access_id }}"
        access_key: "{{ logicmonitor_access_key }}"
        full_path: "DynamicGroups/US-East Devices"
        description: "Automatically groups all devices in the east region"
        applies_to: {
           auto.location =~ 'east'
        }
        disable_alerting: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions