Tobias Brunner
301e297d45
All checks were successful
continuous-integration/drone/push Build is passing
24 lines
612 B
Plaintext
24 lines
612 B
Plaintext
{
|
|
/**
|
|
* Returns a new pluginlist panel that can be added in a row.
|
|
* It requires the pluginlist panel plugin in grafana, which is built-in.
|
|
*
|
|
* @name pluginlist.new
|
|
*
|
|
* @param title The title of the pluginlist panel.
|
|
* @param description Description of the panel
|
|
* @param limit Set maximum items in a list
|
|
* @return A json that represents a pluginlist panel
|
|
*/
|
|
new(
|
|
title,
|
|
description=null,
|
|
limit=null,
|
|
):: {
|
|
type: 'pluginlist',
|
|
title: title,
|
|
[if limit != null then 'limit']: limit,
|
|
[if description != null then 'description']: description,
|
|
},
|
|
}
|