Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions examples/v2/app-builder/ListAppVersions.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@ public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
AppBuilderApi apiInstance = new AppBuilderApi(defaultClient);

// there is a valid "app" in the system
UUID APP_DATA_ID = null;
try {
ListAppVersionsResponse result =
apiInstance.listAppVersions(UUID.fromString("65bb1f25-52e1-4510-9f8d-22d1516ed693"));
APP_DATA_ID = UUID.fromString(System.getenv("APP_DATA_ID"));
} catch (IllegalArgumentException e) {
System.err.println("Error parsing UUID: " + e.getMessage());
}

try {
ListAppVersionsResponse result = apiInstance.listAppVersions(APP_DATA_ID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AppBuilderApi#listAppVersions");
Expand Down
10 changes: 9 additions & 1 deletion examples/v2/app-builder/UpdateAppFavorite.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
AppBuilderApi apiInstance = new AppBuilderApi(defaultClient);

// there is a valid "app" in the system
UUID APP_DATA_ID = null;
try {
APP_DATA_ID = UUID.fromString(System.getenv("APP_DATA_ID"));
} catch (IllegalArgumentException e) {
System.err.println("Error parsing UUID: " + e.getMessage());
}

UpdateAppFavoriteRequest body =
new UpdateAppFavoriteRequest()
.data(
Expand All @@ -22,7 +30,7 @@ public static void main(String[] args) {
.type(AppFavoriteType.FAVORITES));

try {
apiInstance.updateAppFavorite(UUID.fromString("65bb1f25-52e1-4510-9f8d-22d1516ed693"), body);
apiInstance.updateAppFavorite(APP_DATA_ID, body);
} catch (ApiException e) {
System.err.println("Exception when calling AppBuilderApi#updateAppFavorite");
System.err.println("Status code: " + e.getCode());
Expand Down
11 changes: 9 additions & 2 deletions examples/v2/app-builder/UpdateAppSelfService.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
AppBuilderApi apiInstance = new AppBuilderApi(defaultClient);

// there is a valid "app" in the system
UUID APP_DATA_ID = null;
try {
APP_DATA_ID = UUID.fromString(System.getenv("APP_DATA_ID"));
} catch (IllegalArgumentException e) {
System.err.println("Error parsing UUID: " + e.getMessage());
}

UpdateAppSelfServiceRequest body =
new UpdateAppSelfServiceRequest()
.data(
Expand All @@ -22,8 +30,7 @@ public static void main(String[] args) {
.type(AppSelfServiceType.SELFSERVICE));

try {
apiInstance.updateAppSelfService(
UUID.fromString("65bb1f25-52e1-4510-9f8d-22d1516ed693"), body);
apiInstance.updateAppSelfService(APP_DATA_ID, body);
} catch (ApiException e) {
System.err.println("Exception when calling AppBuilderApi#updateAppSelfService");
System.err.println("Status code: " + e.getCode());
Expand Down
10 changes: 9 additions & 1 deletion examples/v2/app-builder/UpdateAppTags.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
AppBuilderApi apiInstance = new AppBuilderApi(defaultClient);

// there is a valid "app" in the system
UUID APP_DATA_ID = null;
try {
APP_DATA_ID = UUID.fromString(System.getenv("APP_DATA_ID"));
} catch (IllegalArgumentException e) {
System.err.println("Error parsing UUID: " + e.getMessage());
}

UpdateAppTagsRequest body =
new UpdateAppTagsRequest()
.data(
Expand All @@ -25,7 +33,7 @@ public static void main(String[] args) {
.type(AppTagsType.TAGS));

try {
apiInstance.updateAppTags(UUID.fromString("65bb1f25-52e1-4510-9f8d-22d1516ed693"), body);
apiInstance.updateAppTags(APP_DATA_ID, body);
} catch (ApiException e) {
System.err.println("Exception when calling AppBuilderApi#updateAppTags");
System.err.println("Status code: " + e.getCode());
Expand Down
11 changes: 9 additions & 2 deletions examples/v2/app-builder/UpdateAppVersionName.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
AppBuilderApi apiInstance = new AppBuilderApi(defaultClient);

// there is a valid "app" in the system
UUID APP_DATA_ID = null;
try {
APP_DATA_ID = UUID.fromString(System.getenv("APP_DATA_ID"));
} catch (IllegalArgumentException e) {
System.err.println("Error parsing UUID: " + e.getMessage());
}

UpdateAppVersionNameRequest body =
new UpdateAppVersionNameRequest()
.data(
Expand All @@ -24,8 +32,7 @@ public static void main(String[] args) {
.type(AppVersionNameType.VERSIONNAMES));

try {
apiInstance.updateAppVersionName(
UUID.fromString("65bb1f25-52e1-4510-9f8d-22d1516ed693"), "3", body);
apiInstance.updateAppVersionName(APP_DATA_ID, "latest", body);
} catch (ApiException e) {
System.err.println("Exception when calling AppBuilderApi#updateAppVersionName");
System.err.println("Status code: " + e.getCode());
Expand Down
12 changes: 9 additions & 3 deletions examples/v2/app-builder/UpdateProtectionLevel.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
AppBuilderApi apiInstance = new AppBuilderApi(defaultClient);

// there is a valid "app" in the system
UUID APP_DATA_ID = null;
try {
APP_DATA_ID = UUID.fromString(System.getenv("APP_DATA_ID"));
} catch (IllegalArgumentException e) {
System.err.println("Error parsing UUID: " + e.getMessage());
}

UpdateAppProtectionLevelRequest body =
new UpdateAppProtectionLevelRequest()
.data(
Expand All @@ -26,9 +34,7 @@ public static void main(String[] args) {
.type(AppProtectionLevelType.PROTECTIONLEVEL));

try {
UpdateAppResponse result =
apiInstance.updateProtectionLevel(
UUID.fromString("65bb1f25-52e1-4510-9f8d-22d1516ed693"), body);
UpdateAppResponse result = apiInstance.updateProtectionLevel(APP_DATA_ID, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AppBuilderApi#updateProtectionLevel");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "c782b1f3-1b03-d50f-8fcd-12e51226c511"
"id": "c782b1f3-1b03-d50f-8fcd-12e51226c514"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-05-18T19:51:47.462Z
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[
{
"httpRequest": {
"body": {
"type": "JSON",
"json": "{\"data\":{\"attributes\":{\"description\":\"Adds new dashboard widgets and a few bug fixes.\",\"title\":\"Release v1.2 to production\"},\"type\":\"publishRequest\"}}"
},
"headers": {},
"method": "POST",
"path": "/api/v2/app-builder/apps/7addb29b-f935-472c-ae79-d1963979a23e/publish-request",
"keepAlive": false,
"secure": true
},
"httpResponse": {
"body": "{\"errors\":[{\"status\":\"404\",\"id\":\"c9247d40-2291-4860-90ac-9c2441ff23db\",\"title\":\"app not found\",\"detail\":\"app with id 7addb29b-f935-472c-ae79-d1963979a23e not found\"}]}",
"headers": {
"Content-Type": [
"application/vnd.api+json"
]
},
"statusCode": 404,
"reasonPhrase": "Not Found"
},
"times": {
"remainingTimes": 1
},
"timeToLive": {
"unlimited": true
},
"id": "508a80cf-3313-3708-bdc3-428c09046235"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "c782b1f3-1b03-d50f-8fcd-12e51226c50e"
"id": "c782b1f3-1b03-d50f-8fcd-12e51226c510"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "c782b1f3-1b03-d50f-8fcd-12e51226c50f"
"id": "c782b1f3-1b03-d50f-8fcd-12e51226c511"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "c782b1f3-1b03-d50f-8fcd-12e51226c512"
"id": "c782b1f3-1b03-d50f-8fcd-12e51226c517"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-05-18T19:51:53.216Z
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[
{
"httpRequest": {
"headers": {},
"method": "GET",
"path": "/api/v2/app-builder/apps/7addb29b-f935-472c-ae79-d1963979a23e/versions",
"keepAlive": false,
"secure": true
},
"httpResponse": {
"body": "{\"errors\":[{\"status\":\"404\",\"id\":\"4dfd53b4-6987-4868-b330-af0535219c61\",\"title\":\"app not found\",\"detail\":\"app with id 7addb29b-f935-472c-ae79-d1963979a23e not found\"}]}",
"headers": {
"Content-Type": [
"application/vnd.api+json"
]
},
"statusCode": 404,
"reasonPhrase": "Not Found"
},
"times": {
"remainingTimes": 1
},
"timeToLive": {
"unlimited": true
},
"id": "2b056b9b-18c3-a44a-7c7d-240a4c5bc6fe"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-05-18T19:51:53.386Z
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
[
{
"httpRequest": {
"body": {
"type": "JSON",
"json": "{\"data\":{\"attributes\":{\"components\":[{\"events\":[],\"name\":\"grid0\",\"properties\":{\"backgroundColor\":\"default\",\"children\":[{\"events\":[],\"name\":\"gridCell0\",\"properties\":{\"children\":[{\"events\":[],\"name\":\"text0\",\"properties\":{\"content\":\"# Cat Facts\",\"contentType\":\"markdown\",\"isVisible\":true,\"textAlign\":\"left\",\"verticalAlign\":\"top\"},\"type\":\"text\"}],\"isVisible\":\"true\",\"layout\":{\"default\":{\"height\":5,\"width\":4,\"x\":0,\"y\":0}}},\"type\":\"gridCell\"},{\"events\":[],\"name\":\"gridCell2\",\"properties\":{\"children\":[{\"events\":[],\"name\":\"table0\",\"properties\":{\"columns\":[{\"dataPath\":\"fact\",\"header\":\"fact\",\"id\":\"0ae2ae9e-0280-4389-83c6-1c5949f7e674\",\"isHidden\":false},{\"dataPath\":\"length\",\"header\":\"length\",\"id\":\"c9048611-0196-4a00-9366-1ef9e3ec0408\",\"isHidden\":true},{\"dataPath\":\"Due Date\",\"disableSortBy\":false,\"formatter\":{\"format\":\"LARGE_WITHOUT_TIME\",\"type\":\"formatted_time\"},\"header\":\"Unused Old Column\",\"id\":\"8fa9284b-7a58-4f13-9959-57b7d8a7fe8f\",\"isDeleted\":true}],\"data\":\"${fetchFacts?.outputs?.body?.data}\",\"globalFilter\":false,\"isLoading\":\"${fetchFacts?.isLoading}\",\"isScrollable\":\"vertical\",\"isSubRowsEnabled\":false,\"isVisible\":true,\"isWrappable\":false,\"pageSize\":\"${pageSize?.value}\",\"paginationType\":\"server_side\",\"rowButtons\":[],\"summary\":true,\"totalCount\":\"${fetchFacts?.outputs?.body?.total}\"},\"type\":\"table\"}],\"isVisible\":\"true\",\"layout\":{\"default\":{\"height\":96,\"width\":12,\"x\":0,\"y\":5}}},\"type\":\"gridCell\"},{\"events\":[],\"name\":\"gridCell1\",\"properties\":{\"children\":[{\"events\":[],\"name\":\"text1\",\"properties\":{\"content\":\"## Random Fact\\n\\n${randomFact?.outputs?.fact}\",\"contentType\":\"markdown\",\"isVisible\":true,\"textAlign\":\"left\",\"verticalAlign\":\"top\"},\"type\":\"text\"}],\"isVisible\":\"true\",\"layout\":{\"default\":{\"height\":16,\"width\":12,\"x\":0,\"y\":101}}},\"type\":\"gridCell\"},{\"events\":[],\"name\":\"gridCell3\",\"properties\":{\"children\":[{\"events\":[{\"name\":\"click\",\"type\":\"setStateVariableValue\",\"value\":\"${pageSize?.value + 1}\",\"variableName\":\"pageSize\"}],\"name\":\"button0\",\"properties\":{\"iconLeft\":\"angleUp\",\"iconRight\":\"\",\"isBorderless\":false,\"isDisabled\":false,\"isLoading\":false,\"isPrimary\":true,\"isVisible\":true,\"label\":\"Increase Page Size\",\"level\":\"default\"},\"type\":\"button\"}],\"isVisible\":\"true\",\"layout\":{\"default\":{\"height\":4,\"width\":2,\"x\":10,\"y\":134}}},\"type\":\"gridCell\"},{\"events\":[],\"name\":\"gridCell4\",\"properties\":{\"children\":[{\"events\":[{\"name\":\"click\",\"type\":\"setStateVariableValue\",\"value\":\"${pageSize?.value - 1}\",\"variableName\":\"pageSize\"}],\"name\":\"button1\",\"properties\":{\"iconLeft\":\"angleDown\",\"iconRight\":\"\",\"isBorderless\":false,\"isDisabled\":false,\"isLoading\":false,\"isPrimary\":true,\"isVisible\":true,\"label\":\"Decrease Page Size\",\"level\":\"default\"},\"type\":\"button\"}],\"isVisible\":\"true\",\"layout\":{\"default\":{\"height\":4,\"width\":2,\"x\":10,\"y\":138}}},\"type\":\"gridCell\"}]},\"type\":\"grid\"}],\"description\":\"This is a slightly complicated example app that fetches and displays cat facts\",\"name\":\"Example Cat Facts Viewer\",\"queries\":[{\"events\":[],\"id\":\"92ff0bb8-553b-4f31-87c7-ef5bd16d47d5\",\"name\":\"fetchFacts\",\"properties\":{\"spec\":{\"connectionId\":\"5e63f4a8-4ce6-47de-ba11-f6617c1d54f3\",\"fqn\":\"com.datadoghq.http.request\",\"inputs\":{\"url\":\"https://catfact.ninja/facts\",\"urlParams\":[{\"key\":\"limit\",\"value\":\"${pageSize.value.toString()}\"},{\"key\":\"page\",\"value\":\"${(table0.pageIndex + 1).toString()}\"}],\"verb\":\"GET\"}}},\"type\":\"action\"},{\"id\":\"afd03c81-4075-4432-8618-ba09d52d2f2d\",\"name\":\"pageSize\",\"properties\":{\"defaultValue\":\"${20}\"},\"type\":\"stateVariable\"},{\"id\":\"0fb22859-47dc-4137-9e41-7b67d04c525c\",\"name\":\"randomFact\",\"properties\":{\"outputs\":\"${(() => {const facts = fetchFacts.outputs.body.data\\nreturn facts[Math.floor(Math.random()*facts.length)]\\n})()}\"},\"type\":\"dataTransform\"}],\"rootInstanceName\":\"grid0\"},\"type\":\"appDefinitions\"}}"
},
"headers": {},
"method": "POST",
"path": "/api/v2/app-builder/apps",
"keepAlive": false,
"secure": true
},
"httpResponse": {
"body": "{\"data\":{\"id\":\"d928ecbc-acfe-4126-96f6-092fa0a01416\",\"type\":\"appDefinitions\"}}",
"headers": {
"Content-Type": [
"application/vnd.api+json"
]
},
"statusCode": 201,
"reasonPhrase": "Created"
},
"times": {
"remainingTimes": 1
},
"timeToLive": {
"unlimited": true
},
"id": "c782b1f3-1b03-d50f-8fcd-12e51226c50e"
},
{
"httpRequest": {
"headers": {},
"method": "GET",
"path": "/api/v2/app-builder/apps/d928ecbc-acfe-4126-96f6-092fa0a01416/versions",
"keepAlive": false,
"secure": true
},
"httpResponse": {
"body": "{\"data\": [{\"id\": \"98cd3a5a-644d-41fd-8ffa-e58e21e8e21b\", \"type\": \"appVersions\", \"attributes\": {\"app_id\": \"d928ecbc-acfe-4126-96f6-092fa0a01416\", \"created_at\": \"2026-05-18T19:51:53.59976Z\", \"has_ever_been_published\": false, \"updated_at\": \"2026-05-18T19:51:53.59976Z\", \"user_id\": 1445416, \"user_name\": \"\", \"user_uuid\": \"3ad549bf-eba0-11e9-a77a-0705486660d0\", \"version\": 1}}], \"meta\": {\"page\": {\"totalCount\": 1, \"totalFilteredCount\": 0}}}",
"headers": {
"Content-Type": [
"application/vnd.api+json"
]
},
"statusCode": 200,
"reasonPhrase": "OK"
},
"times": {
"remainingTimes": 1
},
"timeToLive": {
"unlimited": true
},
"id": "037664ce-f887-1541-613d-f301c9aa6b84"
},
{
"httpRequest": {
"headers": {},
"method": "DELETE",
"path": "/api/v2/app-builder/apps/d928ecbc-acfe-4126-96f6-092fa0a01416",
"keepAlive": false,
"secure": true
},
"httpResponse": {
"body": "{\"data\": {\"id\": \"d928ecbc-acfe-4126-96f6-092fa0a01416\", \"type\": \"appDefinitions\"}}",
"headers": {
"Content-Type": [
"application/vnd.api+json"
]
},
"statusCode": 200,
"reasonPhrase": "OK"
},
"times": {
"remainingTimes": 1
},
"timeToLive": {
"unlimited": true
},
"id": "ba0f2bab-9a3e-92e4-04b8-1e373c8e015a"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-05-18T19:51:55.262Z
Loading
Loading