SYSTEM$CREATE_BILLING_EVENTS

functionnot supportedNative apps, listings & sharing

docs.snowflake.com ↗

System functions

Creates multiple billable events that track consumer usage of installed monetized applications. Use this system function when you need to exceed the one event per minute frequency limitation of SYSTEM$CREATE_BILLING_EVENT. This system function can only be called from an application installed in a consumer account.

Syntax

SYSTEM$CREATE_BILLING_EVENTS('<json_array_of_events>')

Parameters

NameRequiredDescription
'json_array_of_events'requiredA STRING containing a JSON array of objects. Each object specifies a billing event. Each JSON object contains the following key-value pairs:Copy code { "class": "my_class", "subclass": "my_subclass", "start_timestamp": 1730825611, "timestamp": 1730826611, "base_charge": 1.00, "objects": "[\"my_schema.my_udf\"]", "additional_info": "my_additional_info" } The following table describes these key-value pairs: Key-value pair Type Description "class" STRING Identifier for the custom event class. "subclass" STRING Identifier for the custom event subclass. This field is only used by the provider. "start_timestamp" INTEGER The start time (UTC) of the event as a Unix timestamp in milliseconds. "timestamp" INTEGER The timestamp (UTC) when the event was created as a Unix timestamp in milliseconds. "base_charge" DOUBLE The amount in US dollars to charge for the billable event. The value must be greater than zero, less than 99,999.99, and must not exceed two decimal places of precision. For example, 1.00 or 0.07. "objects" STRING A JSON string array containing fully qualified object names that apply to the event. "additional_info" STRING A JSON string of key-value pairs the provider can use to send additional info.ExpandShow lessSee more

Returns

This function returns the following status messages:

Usage notes