-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathUnlockLLMObsDatasetDraftState.java
More file actions
25 lines (22 loc) · 1.01 KB
/
Copy pathUnlockLLMObsDatasetDraftState.java
File metadata and controls
25 lines (22 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Unlock LLM Observability dataset draft state returns "OK" response
import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.LlmObservabilityApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.unlockLLMObsDatasetDraftState", true);
LlmObservabilityApi apiInstance = new LlmObservabilityApi(defaultClient);
try {
apiInstance.unlockLLMObsDatasetDraftState(
"a33671aa-24fd-4dcd-9b33-a8ec7dde7751", "9f64e5c7-dc5a-45c8-a17c-1b85f0bec97d");
} catch (ApiException e) {
System.err.println(
"Exception when calling LlmObservabilityApi#unlockLLMObsDatasetDraftState");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}