ScheduledQueryRun.php
38 lines
| 1 | <?php |
| 2 | |
| 3 | // File generated from our OpenAPI spec |
| 4 | |
| 5 | namespace Stripe\Sigma; |
| 6 | |
| 7 | /** |
| 8 | * If you have <a href="https://stripe.com/docs/sigma/scheduled-queries">scheduled |
| 9 | * a Sigma query</a>, you'll receive a |
| 10 | * <code>sigma.scheduled_query_run.created</code> webhook each time the query runs. |
| 11 | * The webhook contains a <code>ScheduledQueryRun</code> object, which you can use |
| 12 | * to retrieve the query results. |
| 13 | * |
| 14 | * @property string $id Unique identifier for the object. |
| 15 | * @property string $object String representing the object's type. Objects of the same type share the same value. |
| 16 | * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. |
| 17 | * @property int $data_load_time When the query was run, Sigma contained a snapshot of your Stripe data at this time. |
| 18 | * @property \Stripe\StripeObject $error |
| 19 | * @property null|\Stripe\File $file The file object representing the results of the query. |
| 20 | * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode. |
| 21 | * @property int $result_available_until Time at which the result expires and is no longer available for download. |
| 22 | * @property string $sql SQL for the query. |
| 23 | * @property string $status The query's execution status, which will be <code>completed</code> for successful runs, and <code>canceled</code>, <code>failed</code>, or <code>timed_out</code> otherwise. |
| 24 | * @property string $title Title of the query. |
| 25 | */ |
| 26 | class ScheduledQueryRun extends \Stripe\ApiResource |
| 27 | { |
| 28 | const OBJECT_NAME = 'scheduled_query_run'; |
| 29 | |
| 30 | use \Stripe\ApiOperations\All; |
| 31 | use \Stripe\ApiOperations\Retrieve; |
| 32 | |
| 33 | public static function classUrl() |
| 34 | { |
| 35 | return '/v1/sigma/scheduled_query_runs'; |
| 36 | } |
| 37 | } |
| 38 |