azure-blob
Send data to a Microsoft Azure Storage Blob (Block Storage)
Available from Hotrod: 3.1
Field Name | Description | Type | Default |
---|---|---|---|
interval | How often to run the command | duration | - |
cron | How often to run the command | cron | - |
immediate | Run as soon as invoked, instead of waiting for the specified cron interval | bool | false |
random-offset | Sets a random offset to the schedule, then sticks to it | duration | 0s |
window | For resources that need a time window to be specified | Window | - |
block | Block further input schedules from triggering if the pipe output is retrying | bool | false |
container-name | The storage service container for created blobs | string | - |
blob-names | The name for the blob | array of strings | - |
blob-name-field | The field that a blob name from an operation should be stored in | field | - |
creation-time-field | The field that the blob creation time should be stored in | field | - |
last-modified-field | The field that the blob last modified time should be stored in | field | - |
content-length-field | The field that the blob content length information should be stored in | field | - |
content-type-field | The field that the blob content type information should be stored in | field | - |
content-md5-field | The field that the blob content md5 should be stored in | field | - |
data-field | A field that the blob data should be nested in | field | - |
storage-account | The Storage Account Name to be used (credential) | string | - |
storage-master-key | The Storage Master Key to be used (credential) | string | - |
timestamp-mode | Derive a timestamp for this blob for filtering purposes based on the selected strategy. | AzureBlobTimestampMode | - |
maximum-age | Remove any blobs older than this many seconds from the candidate list | integer | - |
mode | The operating mode for this input | AzureBlobInputMode | - |
interval
How often to run the command
By default, interval: 0s
which means: once.
Note that scheduled inputs set document markers.
See full discussion
Type: duration
Example
action:
exec:
command: echo 'once a day'
interval: 1d
cron
How often to run the command
Type: cron
Example: Once a day
action:
exec:
command: echo 'once a day'
cron: '0 0 0 * * *'
Example: Once a day, using a convenient shortcut
action:
exec:
command: echo 'once a day'
cron: '@daily'
immediate
Run as soon as invoked, instead of waiting for the specified cron interval
Type: bool
Example: Run immediately on invocation, and thereafter at 10h every morning
action:
exec:
command: echo 'hello'
immediate: true
cron: '0 0 10 * * *'
random-offset
Sets a random offset to the schedule, then sticks to it
This can help avoid the thundering herd problem, where you do not, for example, want to overload some service at 00:00:00
Type: duration
Example: Would fire up to a minute after every hour
action:
exec:
command: echo 'hello'
random-offset: 1m
cron: '0 0 * * * *'
window
For resources that need a time window to be specified
Type: Window
Field Name | Description | Type | Default |
---|---|---|---|
size | Window size | duration | - |
offset | Window offset | duration | 0s |
start-time | Allows the windowing to start at a specified time | time | - |
highwatermark-file | Specify file where timestamp would be stored in order to resume, for when Pipe has been restarted | path | - |
size
Window size
Type: duration
Example
action:
exec:
command: echo 'one two'
window:
size: 1m
offset
Window offset
Type: duration
Example
action:
exec:
command: echo 'one two'
window:
size: 1m
offset: 10s
start-time
Allows the windowing to start at a specified time
It should in the following format: 2019-07-10 18:45:00.000 +0200
Type: time
Example
action:
exec:
command: echo 'one two'
window:
size: 1m
start-time: 10s
highwatermark-file
Specify file where timestamp would be stored in order to resume, for when Pipe has been restarted
Type: path
Example
action:
exec:
command: echo 'one two'
window:
size: 1m
highwatermark-file:: /tmp/mark.txt
block
Block further input schedules from triggering if the pipe output is retrying
Type: bool
container-name
The storage service container for created blobs
Type: string
blob-names
The name for the blob
Type: array of strings
blob-name-field
The field that a blob name from an operation should be stored in
Type: field
creation-time-field
The field that the blob creation time should be stored in
Type: field
last-modified-field
The field that the blob last modified time should be stored in
Type: field
content-length-field
The field that the blob content length information should be stored in
Type: field
content-type-field
The field that the blob content type information should be stored in
Type: field
content-md5-field
The field that the blob content md5 should be stored in
Type: field
data-field
A field that the blob data should be nested in
Type: field
storage-account
The Storage Account Name to be used (credential)
Type: string
storage-master-key
The Storage Master Key to be used (credential)
Type: string
timestamp-mode
Derive a timestamp for this blob for filtering purposes based on the selected strategy.
Type: AzureBlobTimestampMode
Field Name | Description | Type | Default |
---|---|---|---|
none | The default mode, do not filter blobs based on timestamps | - | - |
creation-time | Filter blobs on the creation-time timestamp reported by the service | - | - |
last-modified | Filter blobs on the last-modified timestamp reported by the service | - | - |
blob-name-pattern | Filter blobs on the timestamp derived from the blob name | string | - |
none
The default mode, do not filter blobs based on timestamps
creation-time
Filter blobs on the creation-time timestamp reported by the service
last-modified
Filter blobs on the last-modified timestamp reported by the service
blob-name-pattern
Filter blobs on the timestamp derived from the blob name
Type: string
maximum-age
Remove any blobs older than this many seconds from the candidate list
Type: integer
mode
The operating mode for this input
Type: AzureBlobInputMode
Field Name | Description | Type | Default |
---|---|---|---|
list-blobs | List Blobs | - | - |
download-blob | Download Given Blobs | - | - |
list-and-download-blobs | List Blobs and Download | - | - |
list-blobs
List Blobs
download-blob
Download Given Blobs
list-and-download-blobs
List Blobs and Download