diff --git a/example-manifests/green-hosting.yaml b/example-manifests/green-hosting.yaml new file mode 100644 index 0000000..9f78fe9 --- /dev/null +++ b/example-manifests/green-hosting.yaml @@ -0,0 +1,19 @@ +name: green-hosting-demo +description: example manifest invoking green-hosting plugin +tags: +initialize: + outputs: + - yaml + plugins: + 'green-hosting': + method: GreenHosting + path: '@tngtech/if-webpage-plugins' +tree: + children: + child: + pipeline: + compute: + - green-hosting + inputs: + - url: www.thegreenwebfoundation.org + - url: www.tngtech.com diff --git a/example-manifests/shell.yaml b/example-manifests/shell.yaml new file mode 100644 index 0000000..ef9ed4b --- /dev/null +++ b/example-manifests/shell.yaml @@ -0,0 +1,19 @@ +name: exec-shell-command-demo +description: example manifest invoking exec-shell-command +tags: +initialize: + outputs: + - yaml + plugins: + exec-command: + method: ShellExecCommand + path: '@tngtech/if-webpage-plugins' + config: + command: 'echo "Hello, World!"' +tree: + children: + child: + pipeline: + compute: + - exec-command + inputs: diff --git a/example-manifests/timer.yaml b/example-manifests/timer.yaml new file mode 100644 index 0000000..e169d89 --- /dev/null +++ b/example-manifests/timer.yaml @@ -0,0 +1,30 @@ +name: timer-demo +description: example manifest invoking timer plugins +tags: +initialize: + outputs: + - yaml + plugins: + timer-start: + method: TimerStart + path: '@tngtech/if-webpage-plugins' + timer-stop: + method: TimerStop + path: '@tngtech/if-webpage-plugins' + exec-command: + method: ShellExecCommand + path: '@tngtech/if-webpage-plugins' + config: + command: 'sleep 10' +tree: + children: + child: + pipeline: + compute: + - timer-start + - exec-command + - timer-stop + inputs: + - timestamp: 2024-02-25T00:00 # some placeholder timestamp that will be substituted by timer-start + duration: 1 # if reset = true this will be overwritten, otherwise it will be added to + resets: [true] diff --git a/example-manifests/measure-webpage.yml b/example-manifests/webpage-impact.yaml similarity index 100% rename from example-manifests/measure-webpage.yml rename to example-manifests/webpage-impact.yaml