influxdb-client-csharp icon indicating copy to clipboard operation
influxdb-client-csharp copied to clipboard

Add ability to pass in offset time when creating alerts via API

Open cklenk opened this issue 1 year ago • 3 comments

Proposal: Add offset to CreateThresholdCheckAsync and CreateDeadmanCheckAsync for alerting

Current behavior: Unable to set offset time when using CreateThresholdCheckAsync and CreateDeadmanCheckAsync methods

Desired behavior: Pass in optional offset time with functions

Alternatives considered: Manually create alerts

Use case: Ease of development and cleaner solution

cklenk avatar Sep 22 '23 14:09 cklenk

Hi,

When you say offset time, what is your use-case for this offset? Is it a delay in notification?

Thanks

powersj avatar Sep 26 '23 14:09 powersj

Yes, that is correct. To account for late data that might come in.

Thanks, Cameron

cklenk avatar Oct 09 '23 19:10 cklenk

Based on the API docs, it does look like the threshold type check has a offset parameter that is not exposed in this client library.

We can investigate this further, but would also be happy to see a PR with a fix to include this parameter.

Thanks!

powersj avatar Oct 17 '23 14:10 powersj