Skip to content

SearchResults🔗

SearchResults is the response envelope, mirroring🔗

search.grafana.app SearchResults.

Definition🔗

class SearchResults implements \JsonSerializable
{
    public \Grafana\Foundation\Alertingv0alpha1\SearchResultsMetadata $metadata;

    /**
     * @var array<\Grafana\Foundation\Alertingv0alpha1\SearchResultHit>
     */
    public array $items;

    /**
     * @var array<string, array<\Grafana\Foundation\Alertingv0alpha1\FacetValue>>|null
     */
    public ?array $facets;

}

Methods🔗

fromArray🔗

Builds this object from an array.

This function is meant to be used with the return value of json_decode($json, true).

static fromArray(array $inputData)

jsonSerialize🔗

Returns the data representing this object, preparing it for JSON serialization with json_encode().

jsonSerialize()

See also🔗