Skip to content

InfinityOptions🔗

Definition🔗

class InfinityOptions implements \JsonSerializable
{
    public \Grafana\Foundation\Dashboardv2beta1\HttpRequestMethod $method;

    public string $url;

    public ?string $body;

    /**
     * These are 2D arrays of strings, each representing a key-value pair
     * We are defining them this way because we can't generate a go struct that
     * that would have exactly two strings in each sub-array
     * @var array<array<string>>|null
     */
    public ?array $queryParams;

    public string $datasourceUid;

    /**
     * @var array<array<string>>|null
     */
    public ?array $headers;

}

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🔗