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 ClassesModifier and TypeClassDescriptionstatic classFor more details about Errors, please refer to the API Reference.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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanTime 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 valuetrueif the object exists in live mode or the valuefalseif 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 becompletedfor successful runs, andcanceled,failed, ortimed_outotherwise.getTitle()Title of the query.inthashCode()static ScheduledQueryRunCollectionlist(ScheduledQueryRunListParams params) Returns a list of scheduled query runs.static ScheduledQueryRunCollectionlist(ScheduledQueryRunListParams params, RequestOptions options) Returns a list of scheduled query runs.static ScheduledQueryRunCollectionReturns a list of scheduled query runs.static ScheduledQueryRunCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of scheduled query runs.static ScheduledQueryRunRetrieves the details of an scheduled query run.static ScheduledQueryRunretrieve(String scheduledQueryRun, RequestOptions options) Retrieves the details of an scheduled query run.static ScheduledQueryRunretrieve(String scheduledQueryRun, ScheduledQueryRunRetrieveParams params, RequestOptions options) Retrieves the details of an scheduled query run.static ScheduledQueryRunRetrieves the details of an scheduled query run.voidsetCreated(Long created) Time at which the object was created.voidsetDataLoadTime(Long dataLoadTime) When the query was run, Sigma contained a snapshot of your Stripe data at this time.voidsetError(ScheduledQueryRun.Errors error) voidThe file object representing the results of the query.voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidString representing the object's type.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidsetResultAvailableUntil(Long resultAvailableUntil) Time at which the result expires and is no longer available for download.voidSQL for the query.voidThe query's execution status, which will becompletedfor successful runs, andcanceled,failed, ortimed_outotherwise.voidTitle of the query.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance 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 valuetrueif the object exists in live mode or the valuefalseif 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 becompletedfor successful runs, andcanceled,failed, ortimed_outotherwise. -
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 valuetrueif the object exists in live mode or the valuefalseif 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 becompletedfor successful runs, andcanceled,failed, ortimed_outotherwise. -
setTitle
Title of the query. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-