NodeOptions🔗
Definition🔗
class NodeOptions implements \JsonSerializable
{
/**
* Unit for the main stat to override what ever is set in the data frame.
*/
public ?string $mainStatUnit;
/**
* Unit for the secondary stat to override what ever is set in the data frame.
*/
public ?string $secondaryStatUnit;
/**
* Define which fields are shown as part of the node arc (colored circle around the node).
* @var array<\Grafana\Foundation\Nodegraph\ArcOption>|null
*/
public ?array $arcs;
}
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()
.