(experimentsWarehouseNative)
- loadPulse - Load Pulse (Warehouse Native)
- pulseLoadHistory - Pulse Load History (Warehouse Native)
- createEntityPropertySource - Create Entity Property Source
- listEntityPropertySources - List Entity Property Sources
- updateEntityPropertySource - Patch Entity Property Source
- updateEntityPropertySourceQuery - Post Entity Property Source
- removeEntityPropertySource - Delete Entity Property Source
- createAssignmentSource - Create Assignment Source
- listAssignmentSources - List Assignment Sources
- updateAssignmentSource - Patch Assignment Source
Load Pulse (Warehouse Native)
import { Statsig } from "statsig";
const statsig = new Statsig({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await statsig.experimentsWarehouseNative.loadPulse({
id: "<id>",
echidnaLoadPulseQueryDto: {},
});
// Handle the result
console.log(result)
}
run();
The standalone function version of this method:
import { StatsigCore } from "statsig/core.js";
import { experimentsWarehouseNativeLoadPulse } from "statsig/funcs/experimentsWarehouseNativeLoadPulse.js";
// Use `StatsigCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const statsig = new StatsigCore({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const res = await experimentsWarehouseNativeLoadPulse(statsig, {
id: "<id>",
echidnaLoadPulseQueryDto: {},
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result)
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.ConsoleV1ExperimentsControllerGenLoadPulseRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.ConsoleV1ExperimentsControllerGenLoadPulseResponseBody>
Error Object | Status Code | Content Type |
---|---|---|
errors.ConsoleV1ExperimentsControllerGenLoadPulseResponseBody | 400 | application/json |
errors.ConsoleV1ExperimentsControllerGenLoadPulseExperimentsWarehouseNativeResponseBody | 401 | application/json |
errors.SDKError | 4xx-5xx | / |
Pulse Load History (Warehouse Native)
import { Statsig } from "statsig";
const statsig = new Statsig({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await statsig.experimentsWarehouseNative.pulseLoadHistory({
id: "<id>",
limit: 10,
page: 1,
});
// Handle the result
console.log(result)
}
run();
The standalone function version of this method:
import { StatsigCore } from "statsig/core.js";
import { experimentsWarehouseNativePulseLoadHistory } from "statsig/funcs/experimentsWarehouseNativePulseLoadHistory.js";
// Use `StatsigCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const statsig = new StatsigCore({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const res = await experimentsWarehouseNativePulseLoadHistory(statsig, {
id: "<id>",
limit: 10,
page: 1,
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result)
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.ConsoleV1ExperimentsControllerGenPulseLoadHistoryRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.ConsoleV1ExperimentsControllerGenPulseLoadHistoryResponseBody>
Error Object | Status Code | Content Type |
---|---|---|
errors.ConsoleV1ExperimentsControllerGenPulseLoadHistoryResponseBody | 400 | application/json |
errors.ConsoleV1ExperimentsControllerGenPulseLoadHistoryExperimentsWarehouseNativeResponseBody | 401 | application/json |
errors.SDKError | 4xx-5xx | / |
Create Entity Property Source
import { Statsig } from "statsig";
const statsig = new Statsig({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await statsig.experimentsWarehouseNative.createEntityPropertySource({
entityPropertySourceCreationDto: {
name: "<value>",
sql: "<value>",
idTypeMapping: [
{
statsigUnitID: "<value>",
column: "<value>",
},
],
},
});
// Handle the result
console.log(result)
}
run();
The standalone function version of this method:
import { StatsigCore } from "statsig/core.js";
import { experimentsWarehouseNativeCreateEntityPropertySource } from "statsig/funcs/experimentsWarehouseNativeCreateEntityPropertySource.js";
// Use `StatsigCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const statsig = new StatsigCore({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const res = await experimentsWarehouseNativeCreateEntityPropertySource(statsig, {
entityPropertySourceCreationDto: {
name: "<value>",
sql: "<value>",
idTypeMapping: [
{
statsigUnitID: "<value>",
column: "<value>",
},
],
},
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result)
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.ConsoleV1ExperimentsControllerGenCreateEntityPropertySourceRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.ConsoleV1ExperimentsControllerGenCreateEntityPropertySourceResponseBody>
Error Object | Status Code | Content Type |
---|---|---|
errors.ConsoleV1ExperimentsControllerGenCreateEntityPropertySourceResponseBody | 400 | application/json |
errors.ConsoleV1ExperimentsControllerGenCreateEntityPropertySourceExperimentsWarehouseNativeResponseBody | 401 | application/json |
errors.ConsoleV1ExperimentsControllerGenCreateEntityPropertySourceExperimentsWarehouseNativeResponseResponseBody | 404 | application/json |
errors.SDKError | 4xx-5xx | / |
List Entity Property Sources
import { Statsig } from "statsig";
const statsig = new Statsig({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await statsig.experimentsWarehouseNative.listEntityPropertySources({
limit: 10,
page: 1,
});
// Handle the result
console.log(result)
}
run();
The standalone function version of this method:
import { StatsigCore } from "statsig/core.js";
import { experimentsWarehouseNativeListEntityPropertySources } from "statsig/funcs/experimentsWarehouseNativeListEntityPropertySources.js";
// Use `StatsigCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const statsig = new StatsigCore({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const res = await experimentsWarehouseNativeListEntityPropertySources(statsig, {
limit: 10,
page: 1,
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result)
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.ConsoleV1ExperimentsControllerGenListEntityPropertySourcesRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.ConsoleV1ExperimentsControllerGenListEntityPropertySourcesResponseBody>
Error Object | Status Code | Content Type |
---|---|---|
errors.ConsoleV1ExperimentsControllerGenListEntityPropertySourcesResponseBody | 400 | application/json |
errors.ConsoleV1ExperimentsControllerGenListEntityPropertySourcesExperimentsWarehouseNativeResponseBody | 401 | application/json |
errors.SDKError | 4xx-5xx | / |
Patch Entity Property Source
import { Statsig } from "statsig";
const statsig = new Statsig({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await statsig.experimentsWarehouseNative.updateEntityPropertySource({
name: "<value>",
entityPropertySourcePartialUpdateDto: {},
});
// Handle the result
console.log(result)
}
run();
The standalone function version of this method:
import { StatsigCore } from "statsig/core.js";
import { experimentsWarehouseNativeUpdateEntityPropertySource } from "statsig/funcs/experimentsWarehouseNativeUpdateEntityPropertySource.js";
// Use `StatsigCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const statsig = new StatsigCore({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const res = await experimentsWarehouseNativeUpdateEntityPropertySource(statsig, {
name: "<value>",
entityPropertySourcePartialUpdateDto: {},
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result)
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceResponseBody>
Error Object | Status Code | Content Type |
---|---|---|
errors.ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceResponseBody | 400 | application/json |
errors.ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceExperimentsWarehouseNativeResponseBody | 401 | application/json |
errors.ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceExperimentsWarehouseNativeResponseResponseBody | 404 | application/json |
errors.SDKError | 4xx-5xx | / |
Post Entity Property Source
import { Statsig } from "statsig";
const statsig = new Statsig({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await statsig.experimentsWarehouseNative.updateEntityPropertySourceQuery({
name: "<value>",
entityPropertySourceQueryUpdateDto: {
sql: "<value>",
idTypeMapping: [
{
statsigUnitID: "<value>",
column: "<value>",
},
],
},
});
// Handle the result
console.log(result)
}
run();
The standalone function version of this method:
import { StatsigCore } from "statsig/core.js";
import { experimentsWarehouseNativeUpdateEntityPropertySourceQuery } from "statsig/funcs/experimentsWarehouseNativeUpdateEntityPropertySourceQuery.js";
// Use `StatsigCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const statsig = new StatsigCore({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const res = await experimentsWarehouseNativeUpdateEntityPropertySourceQuery(statsig, {
name: "<value>",
entityPropertySourceQueryUpdateDto: {
sql: "<value>",
idTypeMapping: [
{
statsigUnitID: "<value>",
column: "<value>",
},
],
},
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result)
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceQueryRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceQueryResponseBody>
Error Object | Status Code | Content Type |
---|---|---|
errors.ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceQueryResponseBody | 400 | application/json |
errors.ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceQueryExperimentsWarehouseNativeResponseBody | 401 | application/json |
errors.ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceQueryExperimentsWarehouseNativeResponseResponseBody | 404 | application/json |
errors.SDKError | 4xx-5xx | / |
Delete Entity Property Source
import { Statsig } from "statsig";
const statsig = new Statsig({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await statsig.experimentsWarehouseNative.removeEntityPropertySource({
name: "<value>",
});
// Handle the result
console.log(result)
}
run();
The standalone function version of this method:
import { StatsigCore } from "statsig/core.js";
import { experimentsWarehouseNativeRemoveEntityPropertySource } from "statsig/funcs/experimentsWarehouseNativeRemoveEntityPropertySource.js";
// Use `StatsigCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const statsig = new StatsigCore({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const res = await experimentsWarehouseNativeRemoveEntityPropertySource(statsig, {
name: "<value>",
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result)
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.ConsoleV1ExperimentsControllerGenRemoveEntityPropertySourceRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.ConsoleV1ExperimentsControllerGenRemoveEntityPropertySourceResponseBody>
Error Object | Status Code | Content Type |
---|---|---|
errors.ConsoleV1ExperimentsControllerGenRemoveEntityPropertySourceResponseBody | 400 | application/json |
errors.ConsoleV1ExperimentsControllerGenRemoveEntityPropertySourceExperimentsWarehouseNativeResponseBody | 401 | application/json |
errors.ConsoleV1ExperimentsControllerGenRemoveEntityPropertySourceExperimentsWarehouseNativeResponseResponseBody | 404 | application/json |
errors.SDKError | 4xx-5xx | / |
Create Assignment Source
import { Statsig } from "statsig";
const statsig = new Statsig({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await statsig.experimentsWarehouseNative.createAssignmentSource({
assignmentSourceCreationDto: {
name: "<value>",
sql: "<value>",
timestampColumn: "<value>",
experimentIDColumn: "<value>",
groupIDColumn: "<value>",
idTypeMapping: [
{
statsigUnitID: "<value>",
column: "<value>",
},
],
},
});
// Handle the result
console.log(result)
}
run();
The standalone function version of this method:
import { StatsigCore } from "statsig/core.js";
import { experimentsWarehouseNativeCreateAssignmentSource } from "statsig/funcs/experimentsWarehouseNativeCreateAssignmentSource.js";
// Use `StatsigCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const statsig = new StatsigCore({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const res = await experimentsWarehouseNativeCreateAssignmentSource(statsig, {
assignmentSourceCreationDto: {
name: "<value>",
sql: "<value>",
timestampColumn: "<value>",
experimentIDColumn: "<value>",
groupIDColumn: "<value>",
idTypeMapping: [
{
statsigUnitID: "<value>",
column: "<value>",
},
],
},
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result)
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.ConsoleV1ExperimentsControllerGenCreateAssignmentSourceRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.ConsoleV1ExperimentsControllerGenCreateAssignmentSourceResponseBody>
Error Object | Status Code | Content Type |
---|---|---|
errors.ConsoleV1ExperimentsControllerGenCreateAssignmentSourceResponseBody | 400 | application/json |
errors.ConsoleV1ExperimentsControllerGenCreateAssignmentSourceExperimentsWarehouseNativeResponseBody | 401 | application/json |
errors.SDKError | 4xx-5xx | / |
List Assignment Sources
import { Statsig } from "statsig";
const statsig = new Statsig({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await statsig.experimentsWarehouseNative.listAssignmentSources({
limit: 10,
page: 1,
});
// Handle the result
console.log(result)
}
run();
The standalone function version of this method:
import { StatsigCore } from "statsig/core.js";
import { experimentsWarehouseNativeListAssignmentSources } from "statsig/funcs/experimentsWarehouseNativeListAssignmentSources.js";
// Use `StatsigCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const statsig = new StatsigCore({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const res = await experimentsWarehouseNativeListAssignmentSources(statsig, {
limit: 10,
page: 1,
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result)
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.ConsoleV1ExperimentsControllerGenListAssignmentSourcesRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.ConsoleV1ExperimentsControllerGenListAssignmentSourcesResponseBody>
Error Object | Status Code | Content Type |
---|---|---|
errors.ConsoleV1ExperimentsControllerGenListAssignmentSourcesResponseBody | 400 | application/json |
errors.ConsoleV1ExperimentsControllerGenListAssignmentSourcesExperimentsWarehouseNativeResponseBody | 401 | application/json |
errors.SDKError | 4xx-5xx | / |
Patch Assignment Source
import { Statsig } from "statsig";
const statsig = new Statsig({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await statsig.experimentsWarehouseNative.updateAssignmentSource({
name: "<value>",
assignmentSourcePartialUpdateDto: {},
});
// Handle the result
console.log(result)
}
run();
The standalone function version of this method:
import { StatsigCore } from "statsig/core.js";
import { experimentsWarehouseNativeUpdateAssignmentSource } from "statsig/funcs/experimentsWarehouseNativeUpdateAssignmentSource.js";
// Use `StatsigCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const statsig = new StatsigCore({
statsigApiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const res = await experimentsWarehouseNativeUpdateAssignmentSource(statsig, {
name: "<value>",
assignmentSourcePartialUpdateDto: {},
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result)
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.ConsoleV1ExperimentsControllerGenUpdateAssignmentSourceRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.ConsoleV1ExperimentsControllerGenUpdateAssignmentSourceResponseBody>
Error Object | Status Code | Content Type |
---|---|---|
errors.ConsoleV1ExperimentsControllerGenUpdateAssignmentSourceResponseBody | 400 | application/json |
errors.ConsoleV1ExperimentsControllerGenUpdateAssignmentSourceExperimentsWarehouseNativeResponseBody | 401 | application/json |
errors.ConsoleV1ExperimentsControllerGenUpdateAssignmentSourceExperimentsWarehouseNativeResponseResponseBody | 404 | application/json |
errors.SDKError | 4xx-5xx | / |