CustomVariableSpec🔗
Custom variable specification
Definition🔗
class CustomVariableSpec implements \JsonSerializable
{
public string $name;
public string $query;
public \Grafana\Foundation\Dashboardv2beta1\VariableOption $current;
/**
* @var array<\Grafana\Foundation\Dashboardv2beta1\VariableOption>
*/
public array $options;
public bool $multi;
public bool $includeAll;
public ?string $allValue;
public ?string $label;
public \Grafana\Foundation\Dashboardv2beta1\VariableHide $hide;
public bool $skipUrlSync;
public ?string $description;
public bool $allowCustomValue;
public ?\Grafana\Foundation\Dashboardv2beta1\CustomVariableSpecValuesFormat $valuesFormat;
}
Methods🔗
fromArray🔗
Builds this object from an array.
This function is meant to be used with the return value of json_decode($json, true).
jsonSerialize🔗
Returns the data representing this object, preparing it for JSON serialization with json_encode().