Package com.stripe.model.sigma
Class ScheduledQueryRun
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.sigma.ScheduledQueryRun
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
If you have scheduled a Sigma
query, you'll receive a
sigma.scheduled_query_run.created
webhook each time the query
runs. The webhook contains a ScheduledQueryRun
object, which you can use to retrieve the
query results.-
Nested Class Summary
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Time at which the object was created.When the query was run, Sigma contained a snapshot of your Stripe data at this time.getError()
getFile()
The file object representing the results of the query.getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.Time at which the result expires and is no longer available for download.getSql()
SQL for the query.The query's execution status, which will becompleted
for successful runs, andcanceled
,failed
, ortimed_out
otherwise.getTitle()
Title of the query.int
hashCode()
static ScheduledQueryRunCollection
list
(ScheduledQueryRunListParams params) Returns a list of scheduled query runs.static ScheduledQueryRunCollection
list
(ScheduledQueryRunListParams params, RequestOptions options) Returns a list of scheduled query runs.static ScheduledQueryRunCollection
Returns a list of scheduled query runs.static ScheduledQueryRunCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of scheduled query runs.static ScheduledQueryRun
Retrieves the details of an scheduled query run.static ScheduledQueryRun
retrieve
(String scheduledQueryRun, RequestOptions options) Retrieves the details of an scheduled query run.static ScheduledQueryRun
retrieve
(String scheduledQueryRun, ScheduledQueryRunRetrieveParams params, RequestOptions options) Retrieves the details of an scheduled query run.static ScheduledQueryRun
Retrieves the details of an scheduled query run.void
setCreated
(Long created) Time at which the object was created.void
setDataLoadTime
(Long dataLoadTime) When the query was run, Sigma contained a snapshot of your Stripe data at this time.void
setError
(ScheduledQueryRun.Errors error) void
The file object representing the results of the query.void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
String representing the object's type.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
setResultAvailableUntil
(Long resultAvailableUntil) Time at which the result expires and is no longer available for download.void
SQL for the query.void
The query's execution status, which will becompleted
for successful runs, andcanceled
,failed
, ortimed_out
otherwise.void
Title of the query.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
ScheduledQueryRun
public ScheduledQueryRun()
-
-
Method Details
-
list
Returns a list of scheduled query runs.- Throws:
StripeException
-
list
public static ScheduledQueryRunCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of scheduled query runs.- Throws:
StripeException
-
list
public static ScheduledQueryRunCollection list(ScheduledQueryRunListParams params) throws StripeException Returns a list of scheduled query runs.- Throws:
StripeException
-
list
public static ScheduledQueryRunCollection list(ScheduledQueryRunListParams params, RequestOptions options) throws StripeException Returns a list of scheduled query runs.- Throws:
StripeException
-
retrieve
Retrieves the details of an scheduled query run.- Throws:
StripeException
-
retrieve
public static ScheduledQueryRun retrieve(String scheduledQueryRun, RequestOptions options) throws StripeException Retrieves the details of an scheduled query run.- Throws:
StripeException
-
retrieve
public static ScheduledQueryRun retrieve(String scheduledQueryRun, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of an scheduled query run.- Throws:
StripeException
-
retrieve
public static ScheduledQueryRun retrieve(String scheduledQueryRun, ScheduledQueryRunRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an scheduled query run.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getDataLoadTime
When the query was run, Sigma contained a snapshot of your Stripe data at this time. -
getError
-
getFile
The file object representing the results of the query. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
scheduled_query_run
. -
getResultAvailableUntil
Time at which the result expires and is no longer available for download. -
getSql
SQL for the query. -
getStatus
The query's execution status, which will becompleted
for successful runs, andcanceled
,failed
, ortimed_out
otherwise. -
getTitle
Title of the query. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setDataLoadTime
When the query was run, Sigma contained a snapshot of your Stripe data at this time. -
setError
-
setFile
The file object representing the results of the query. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
scheduled_query_run
. -
setResultAvailableUntil
Time at which the result expires and is no longer available for download. -
setSql
SQL for the query. -
setStatus
The query's execution status, which will becompleted
for successful runs, andcanceled
,failed
, ortimed_out
otherwise. -
setTitle
Title of the query. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-