Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --bi / --batchtriggerinterval command line to define interval in milliseconds. #1893

Merged
merged 6 commits into from
Nov 9, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/modules/publisher-commandline.md
Original file line number Diff line number Diff line change
@@ -156,10 +156,11 @@ The `Alternative` field, where present, refers to the CLI argument applicable in
BatchTriggerInterval=VALUE
The batching trigger interval.
When BatchSize is 1 or TriggerInterval is set to 0 batching is disabled.
Alternative: --si, --iothubsendinterval
Alternative: --bi, --batchtriggerinterval <integer in milliseconds>
--si, --iothubsendinterval <integer in seconds>
Mode: Standalone and Orchestrated
Environment variable type: time span string {[d.]hh:mm:ss[.fffffff]}
Alternative argument type: integer in seconds
Alternative argument type: integer in milliseconds (--bi) or seconds (--si)
Default: {00:00:10}

IoTHubMaxMessageSize=VALUE
Original file line number Diff line number Diff line change
@@ -192,7 +192,9 @@ public StandaloneCliOptions(string[] args) {
{ "it|issuercertstoretype=", "Legacy - do not use.", b => {legacyOptions.Add("it|issuercertstoretype"); } },
{ $"bs|batchsize=|{StandaloneCliConfigKeys.BatchSize}=", "The size of message batching buffer.",
(int i) => this[StandaloneCliConfigKeys.BatchSize] = i.ToString() },
{ $"si|iothubsendinterval=|{StandaloneCliConfigKeys.BatchTriggerInterval}=", "The trigger batching interval in seconds.",
{ $"bi|batchtriggerinterval=|{StandaloneCliConfigKeys.BatchTriggerInterval}=", "The trigger batching interval in milliseconds.",
(int k) => this[StandaloneCliConfigKeys.BatchTriggerInterval] = TimeSpan.FromMilliseconds(k).ToString() },
{ $"si|iothubsendinterval=", "The trigger batching interval in seconds.",
(int k) => this[StandaloneCliConfigKeys.BatchTriggerInterval] = TimeSpan.FromSeconds(k).ToString() },
{ $"ms|iothubmessagesize=|{StandaloneCliConfigKeys.IoTHubMaxMessageSize}=", "The maximum size of the (IoT D2C) message.",
(int i) => this[StandaloneCliConfigKeys.IoTHubMaxMessageSize] = i.ToString() },