services:
  - type: 'org.apache.brooklyn.entity.stock.BasicApplication'
    name: ServiceNow Discovery
    brooklyn.policies:
      - type: 'cmdb-discovery-policy'
        brooklyn.config:
          period: 10s
          command: amp-cmdb snow --export --profile amp-snow --output $SNOW_FILE --all > /dev/null 2>&1 && cat $SNOW_FILE
          env:
            SNOW_FILE: /tmp/snow.discovered.json
