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

[dev.icinga.com #12449] Add information about function 'range' #4492

Closed
icinga-migration opened this issue Aug 16, 2016 · 4 comments
Closed
Labels
area/documentation End-user or developer help enhancement New feature or request
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/12449

Created by ronator on 2016-08-16 09:28:48 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2016-11-25 14:33:53 +00:00)
Target Version: 2.6.0
Last Update: 2016-11-25 14:33:53 +00:00 (in Redmine)

Backport?: Not yet backported
Include in Changelog: 1

Hi, I hope this is the right place (icinga1 had a single tracker for docs).

We discussed in IRC that it might be helpful to add some information on the 'range' function to the icinga2 docs. This is a very cool function because you can save writing while looping over 'a range of numbers', e.g. doing things like:

for (port in range(1, 48)) {
    vars.iftraffic64_interface["Port " + port ] = {
      iftraffic64_interface = port
      iftraffic64_units = "g"
      iftraffic64_bandwidth = 1
    }
}

So you come up with one single rule for 48 different ports ... very useful.

If you type 'range' in docs.icinga.org you basically find 'ranges' of timeperiods only. The one place I could find at least some info on 'range' was hidden in a very fresh and advanced article by dnsmichi found here: https://www.icinga.org/category/technical/icinga-2/

Changesets

2016-11-25 14:31:10 +00:00 by mfriedrich 6c975da

Docs: Update API and Library Reference chapters

New sub chapters for global functions linked everywhere.
New API examples and clarifications.

fixes #13327
fixes #12449

Relations:

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2016-08-17 14:59:03 +00:00

  • Category set to Documentation

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2016-11-25 12:39:26 +00:00

  • Subject changed from Adding information about function 'range' to icinga2 docs to Add information about function 'range'
  • Status changed from New to Assigned
  • Assigned to set to mfriedrich
  • Target Version set to 2.6.0

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2016-11-25 12:40:17 +00:00

  • Relates set to 13327

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2016-11-25 14:33:53 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset 6c975da.

@icinga-migration icinga-migration added enhancement New feature or request area/documentation End-user or developer help labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.6.0 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation End-user or developer help enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant