This repository has been archived on 2023-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
gitops-tbrnt/monitoring/vendor/github.com/grafana/grafonnet-lib/grafonnet/pluginlist.libsonnet

22 lines
581 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.
*
* @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,
},
}