AnnotationTarget🔗
TODO: this should be a regular DataQuery that depends on the selected dashboard
these match the properties of the "grafana" datasouce that is default in most dashboards
Definition🔗
class AnnotationTarget implements \JsonSerializable
{
/**
* Only required/valid for the grafana datasource...
* but code+tests is already depending on it so hard to change
*/
public int $limit;
/**
* Only required/valid for the grafana datasource...
* but code+tests is already depending on it so hard to change
*/
public bool $matchAny;
/**
* Only required/valid for the grafana datasource...
* but code+tests is already depending on it so hard to change
* @var array<string>
*/
public array $tags;
/**
* Only required/valid for the grafana datasource...
* but code+tests is already depending on it so hard to change
*/
public string $type;
}
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()
.