DB IDO Cleanup - possible units

Hi guys,

I’m playing arround with the DB IDO cleanup function. But I’m missing the possible units in the docs (https://icinga.com/docs/icinga2/latest/doc/09-object-types/#idomysqlconnection and https://icinga.com/docs/icinga2/latest/doc/14-features/#db-ido-cleanup). Does this somebody know? in the examples we can only find h for hours and d for days.

Thank you

Hi,

i think you search this one here numeric literals.

`

Supported suffixes include ms (milliseconds), s (seconds), m (minutes), h (hours) and d (days).

Regards,
Carsten

2 Likes

Hi Carsten, thank you! Yes for this I was looking for :slightly_smiling_face:
But I would never have thought of looking there when I configured the IDO. @twidhalm maybe this would be an optimization for the docs like links?

thanks
Stefan

I think that’s an enhancement of documentation many could benefit from. Would you file a patch or pull request or would like one of us to do this?

ok, I’ll try it :wink:
It will be the first

3 Likes

Way to go! The more people contribute, the merry. If you need help, just ask. There are some tutorials (I think within the Icinga documentation) which will help you with contributing. If you need anything, just let us know.

Thanks in advance.

2 Likes

Pull request is done: https://github.com/Icinga/icinga2/pull/7953
Be merciful if something doesn’t fit :smile:

3 Likes

Thank you very much! It’s great to have another contributor joining in.

3 Likes