summaryrefslogtreecommitdiffstats
path: root/common/onap-tosca-datatype/src/test/resources/mock/trigger/operationAction.yaml
blob: 64e2b7ab5da551b078b26b0a1dd12de3f90a6847 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
tosca_definitions_version: tosca_simple_yaml_1_0_0

topology_template:
  description: topology template descroption

  policies:
    policyA:
      type: tosca.policies.threshold
      description: my description
      targets: [ nodeA ]
      triggers:
        triggerA:
          description: triggering event based on CPU
          event_type: eventTypeA
          schedule:
            start_time: 2016-04-08T21:59:43.10-06:00
            end_time: 2002-12-14
          target_filter:
            node: nodeA
            capability: capA
          condition:
            constraint:
                attName: { greater_than: 80 }
            period: 1200 s
            evaluations: 6
            method: avg
          action:
            operationAction:
              description: my operation
              implementation:
                primary: a/s/d.xml
              inputs:
                inputA: 3
                inputB: {get_property: [ nodeA, propertyA ]}