datadog_api_client 2.50.0 → 2.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.generator/schemas/v1/openapi.yaml +347 -59
- data/.generator/schemas/v2/openapi.yaml +8140 -1112
- data/.github/workflows/docs.yml +2 -0
- data/CHANGELOG.md +35 -0
- data/examples/v1/dashboards/CreateDashboard_1024858348.rb +0 -1
- data/examples/v1/dashboards/CreateDashboard_1307120899.rb +0 -1
- data/examples/v1/dashboards/CreateDashboard_2064651578.rb +0 -1
- data/examples/v1/dashboards/CreateDashboard_2490110261.rb +0 -1
- data/examples/v1/dashboards/CreateDashboard_2800096921.rb +0 -1
- data/examples/v1/dashboards/CreateDashboard_3066042014.rb +0 -1
- data/examples/v1/dashboards/CreateDashboard_3451918078.rb +0 -1
- data/examples/v1/dashboards/CreateDashboard_3669695268.rb +0 -1
- data/examples/v1/dashboards/CreateDashboard_3882428227.rb +0 -1
- data/examples/v1/dashboards/CreateDashboard_4018282928.rb +47 -0
- data/examples/v1/dashboards/CreateDashboard_4262729673.rb +0 -1
- data/examples/v1/dashboards/CreateDashboard_578885732.rb +0 -1
- data/examples/v1/dashboards/CreateDashboard_607525069.rb +0 -1
- data/examples/v1/dashboards/CreateDashboard_732700533.rb +46 -0
- data/examples/v1/dashboards/CreateDashboard_9836563.rb +0 -1
- data/examples/v1/dashboards/CreateDashboard_985012506.rb +0 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1241981394.rb +1 -0
- data/examples/v1/synthetics/GetMobileTest.rb +2 -5
- data/examples/v1/synthetics/GetMobileTest_212471226.rb +8 -0
- data/examples/v1/synthetics/UpdateMobileTest.rb +84 -16
- data/examples/v1/synthetics/UpdateMobileTest_477498912.rb +30 -0
- data/examples/v2/change-management/CreateChangeRequest.rb +29 -0
- data/examples/v2/change-management/CreateChangeRequestBranch.rb +18 -0
- data/examples/v2/change-management/DeleteChangeRequestDecision.rb +8 -0
- data/examples/v2/change-management/GetChangeRequest.rb +8 -0
- data/examples/v2/change-management/UpdateChangeRequest.rb +50 -0
- data/examples/v2/change-management/UpdateChangeRequestDecision.rb +45 -0
- data/examples/v2/cloud-authentication/CreateAWSCloudAuthPersonaMapping.rb +18 -0
- data/examples/v2/cloud-authentication/DeleteAWSCloudAuthPersonaMapping.rb +8 -0
- data/examples/v2/cloud-authentication/GetAWSCloudAuthPersonaMapping.rb +8 -0
- data/examples/v2/cloud-authentication/ListAWSCloudAuthPersonaMappings.rb +8 -0
- data/examples/v2/dora-metrics/CreateDORAFailure.rb +1 -1
- data/examples/v2/dora-metrics/CreateDORAIncident.rb +1 -1
- data/examples/v2/dora-metrics/DeleteDORAFailure.rb +2 -2
- data/examples/v2/dora-metrics/DeleteDORAFailure_3462074974.rb +5 -0
- data/examples/v2/dora-metrics/GetDORAFailure.rb +1 -1
- data/examples/v2/dora-metrics/ListDORAFailures.rb +6 -4
- data/examples/v2/dora-metrics/ListDORAFailures_3269988848.rb +16 -0
- data/examples/v2/google-chat-integration/CreateOrganizationHandle.rb +15 -0
- data/examples/v2/google-chat-integration/DeleteOrganizationHandle.rb +8 -0
- data/examples/v2/google-chat-integration/GetOrganizationHandle.rb +8 -0
- data/examples/v2/google-chat-integration/GetSpaceByDisplayName.rb +5 -0
- data/examples/v2/google-chat-integration/ListOrganizationHandles.rb +5 -0
- data/examples/v2/google-chat-integration/UpdateOrganizationHandle.rb +18 -0
- data/examples/v2/incidents/ImportIncident.rb +18 -0
- data/examples/v2/integrations/ListIntegrations.rb +5 -0
- data/examples/v2/llm-observability/CreateLLMObsDataset.rb +17 -0
- data/examples/v2/llm-observability/CreateLLMObsDatasetRecords.rb +22 -0
- data/examples/v2/llm-observability/CreateLLMObsExperiment.rb +19 -0
- data/examples/v2/llm-observability/CreateLLMObsExperimentEvents.rb +49 -0
- data/examples/v2/llm-observability/CreateLLMObsProject.rb +17 -0
- data/examples/v2/llm-observability/DeleteLLMObsDatasetRecords.rb +19 -0
- data/examples/v2/llm-observability/DeleteLLMObsDatasets.rb +19 -0
- data/examples/v2/llm-observability/DeleteLLMObsExperiments.rb +19 -0
- data/examples/v2/llm-observability/DeleteLLMObsProjects.rb +19 -0
- data/examples/v2/llm-observability/ListLLMObsDatasetRecords.rb +8 -0
- data/examples/v2/llm-observability/ListLLMObsDatasets.rb +8 -0
- data/examples/v2/llm-observability/ListLLMObsExperiments.rb +8 -0
- data/examples/v2/llm-observability/ListLLMObsProjects.rb +8 -0
- data/examples/v2/llm-observability/UpdateLLMObsDataset.rb +15 -0
- data/examples/v2/llm-observability/UpdateLLMObsDatasetRecords.rb +23 -0
- data/examples/v2/llm-observability/UpdateLLMObsExperiment.rb +15 -0
- data/examples/v2/llm-observability/UpdateLLMObsProject.rb +15 -0
- data/examples/v2/network-device-monitoring/ListInterfaceUserTags.rb +5 -0
- data/examples/v2/network-device-monitoring/UpdateInterfaceUserTags.rb +18 -0
- data/examples/v2/observability-pipelines/ValidatePipeline_1330454428.rb +50 -0
- data/examples/v2/observability-pipelines/ValidatePipeline_2899320203.rb +54 -0
- data/examples/v2/observability-pipelines/ValidatePipeline_3024756866.rb +89 -0
- data/examples/v2/observability-pipelines/ValidatePipeline_3565101276.rb +55 -0
- data/examples/v2/product-analytics/QueryProductAnalyticsScalar.rb +26 -0
- data/examples/v2/product-analytics/QueryProductAnalyticsTimeseries.rb +26 -0
- data/examples/v2/roles/CreateRole.rb +1 -0
- data/examples/v2/seats/AssignSeatsUser.rb +20 -0
- data/examples/v2/seats/GetSeatsUsers.rb +8 -0
- data/examples/v2/seats/UnassignSeatsUser.rb +20 -0
- data/examples/v2/status-pages/CreateMaintenance.rb +25 -0
- data/examples/v2/status-pages/CreateMaintenance_2202276054.rb +29 -0
- data/examples/v2/status-pages/GetMaintenance.rb +11 -0
- data/examples/v2/status-pages/ListMaintenances.rb +5 -0
- data/examples/v2/status-pages/UpdateMaintenance.rb +22 -0
- data/examples/v2/synthetics/CreateSyntheticsNetworkTest.rb +46 -0
- data/examples/v2/synthetics/CreateSyntheticsSuite.rb +1 -1
- data/examples/v2/synthetics/DeleteSyntheticsSuites.rb +1 -1
- data/examples/v2/synthetics/DeleteSyntheticsTests.rb +16 -0
- data/examples/v2/synthetics/EditSyntheticsSuite.rb +1 -1
- data/examples/v2/synthetics/GetSyntheticsNetworkTest.rb +5 -0
- data/examples/v2/synthetics/GetSyntheticsSuite.rb +1 -1
- data/examples/v2/synthetics/SearchSuites.rb +1 -1
- data/examples/v2/synthetics/SearchSuites_2539131170.rb +5 -0
- data/examples/v2/synthetics/UpdateSyntheticsNetworkTest.rb +67 -0
- data/examples/v2/usage-metering/GetUsageAttributionTypes.rb +5 -0
- data/lib/datadog_api_client/configuration.rb +28 -0
- data/lib/datadog_api_client/inflector.rb +293 -4
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +6 -6
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +4 -6
- data/lib/datadog_api_client/v1/models/bar_chart_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/change_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/distribution_widget_request.rb +2 -2
- data/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb +3 -5
- data/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_config.rb +63 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_fields.rb +145 -0
- data/lib/datadog_api_client/v1/models/geomap_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb +1 -1
- data/lib/datadog_api_client/v1/models/heat_map_widget_request.rb +2 -2
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb +2 -2
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +4 -2
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb +0 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -2
- data/lib/datadog_api_client/v1/models/query_value_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_assertion_type.rb +2 -0
- data/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_details.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_details_type.rb +2 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_details_without_steps.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb +11 -1
- data/lib/datadog_api_client/v1/models/table_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +1 -1
- data/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/toplist_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/tree_map_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb +1 -1
- data/lib/datadog_api_client/v1/models/widget_event.rb +3 -0
- data/lib/datadog_api_client/v1/models/widget_histogram_request_type.rb +1 -1
- data/lib/datadog_api_client/v1/models/widget_new_fixed_span.rb +2 -2
- data/lib/datadog_api_client/v2/api/change_management_api.rb +485 -0
- data/lib/datadog_api_client/v2/api/cloud_authentication_api.rb +307 -0
- data/lib/datadog_api_client/v2/api/code_coverage_api.rb +0 -4
- data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +22 -26
- data/lib/datadog_api_client/v2/api/google_chat_integration_api.rb +450 -0
- data/lib/datadog_api_client/v2/api/incidents_api.rb +77 -0
- data/lib/datadog_api_client/v2/api/integrations_api.rb +83 -0
- data/lib/datadog_api_client/v2/api/llm_observability_api.rb +1351 -0
- data/lib/datadog_api_client/v2/api/metrics_api.rb +11 -3
- data/lib/datadog_api_client/v2/api/network_device_monitoring_api.rb +137 -0
- data/lib/datadog_api_client/v2/api/product_analytics_api.rb +137 -0
- data/lib/datadog_api_client/v2/api/seats_api.rb +230 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +7 -1
- data/lib/datadog_api_client/v2/api/status_pages_api.rb +303 -0
- data/lib/datadog_api_client/v2/api/synthetics_api.rb +270 -11
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +60 -0
- data/lib/datadog_api_client/v2/models/alert_event_custom_attributes_links_items_category.rb +1 -0
- data/lib/datadog_api_client/v2/models/assign_seats_user_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/assign_seats_user_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/assign_seats_user_request_data_attributes.rb +146 -0
- data/lib/datadog_api_client/v2/models/assign_seats_user_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/assign_seats_user_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/assign_seats_user_response_data_attributes.rb +117 -0
- data/lib/datadog_api_client/v2/models/aws_cloud_auth_persona_mapping_attributes_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/aws_cloud_auth_persona_mapping_create_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/aws_cloud_auth_persona_mapping_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/aws_cloud_auth_persona_mapping_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/aws_cloud_auth_persona_mapping_data_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/aws_cloud_auth_persona_mapping_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/aws_cloud_auth_persona_mapping_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_cloud_auth_persona_mappings_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/azure_storage_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/change_event_custom_attributes_changed_resource.rb +7 -1
- data/lib/datadog_api_client/v2/models/change_request_branch_create_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/change_request_branch_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/change_request_branch_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/change_request_branch_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/change_request_change_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/change_request_create_attributes.rb +225 -0
- data/lib/datadog_api_client/v2/models/change_request_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/change_request_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/change_request_decision_create_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/change_request_decision_create_item.rb +164 -0
- data/lib/datadog_api_client/v2/models/change_request_decision_create_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/change_request_decision_relationship_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/change_request_decision_relationships.rb +165 -0
- data/lib/datadog_api_client/v2/models/change_request_decision_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/change_request_decision_response_attributes.rb +228 -0
- data/lib/datadog_api_client/v2/models/change_request_decision_status_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/change_request_decision_update_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/change_request_decision_update_data_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/change_request_decision_update_data_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/change_request_decision_update_request.rb +135 -0
- data/lib/datadog_api_client/v2/models/change_request_decisions_relationship.rb +125 -0
- data/lib/datadog_api_client/v2/models/change_request_included_decision.rb +175 -0
- data/lib/datadog_api_client/v2/models/change_request_included_item.rb +63 -0
- data/lib/datadog_api_client/v2/models/change_request_included_user.rb +165 -0
- data/lib/datadog_api_client/v2/models/change_request_included_user_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/change_request_relationships.rb +165 -0
- data/lib/datadog_api_client/v2/models/change_request_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/change_request_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/change_request_response_attributes.rb +508 -0
- data/lib/datadog_api_client/v2/models/change_request_response_data.rb +175 -0
- data/lib/datadog_api_client/v2/models/change_request_risk_level.rb +29 -0
- data/lib/datadog_api_client/v2/models/change_request_update_attributes.rb +155 -0
- data/lib/datadog_api_client/v2/models/change_request_update_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/change_request_update_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/change_request_update_request.rb +135 -0
- data/lib/datadog_api_client/v2/models/change_request_user_relationship.rb +113 -0
- data/lib/datadog_api_client/v2/models/change_request_user_relationship_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_maintenance_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_maintenance_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_maintenance_request_data_attributes.rb +196 -0
- data/lib/datadog_api_client/v2/models/create_maintenance_request_data_attributes_components_affected_items.rb +154 -0
- data/lib/datadog_api_client/v2/models/degradation.rb +1 -1
- data/lib/datadog_api_client/v2/models/degradation_array.rb +2 -2
- data/lib/datadog_api_client/v2/models/degradation_data_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/degradation_data_attributes_source.rb +165 -0
- data/lib/datadog_api_client/v2/models/degradation_data_attributes_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/degradation_data_attributes_updates_items.rb +11 -1
- data/lib/datadog_api_client/v2/models/{degradation_array_included.rb → degradation_included.rb} +1 -1
- data/lib/datadog_api_client/v2/models/deleted_test_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/deleted_test_response_data_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/deleted_tests_request_delete.rb +143 -0
- data/lib/datadog_api_client/v2/models/deleted_tests_request_delete_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/deleted_tests_request_delete_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/deleted_tests_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/deleted_tests_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/deleted_tests_response_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_remediation.rb +5 -34
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_remediation_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_failure_fetch_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_failure_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_failure_request_attributes.rb +8 -8
- data/lib/datadog_api_client/v2/models/dora_failure_request_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_failure_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/dora_failure_response_data.rb +3 -3
- data/lib/datadog_api_client/v2/models/dora_failure_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_failures_list_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_incident_object.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_list_failures_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_list_failures_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_list_failures_request_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/form_trigger.rb +105 -0
- data/lib/datadog_api_client/v2/models/form_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/google_chat_app_named_space_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/google_chat_app_named_space_response_attributes.rb +186 -0
- data/lib/datadog_api_client/v2/models/google_chat_app_named_space_response_data.rb +147 -0
- data/lib/datadog_api_client/v2/models/google_chat_app_named_space_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/google_chat_create_organization_handle_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/google_chat_create_organization_handle_request_attributes.rb +152 -0
- data/lib/datadog_api_client/v2/models/google_chat_create_organization_handle_request_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/google_chat_organization_handle_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/google_chat_organization_handle_response_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/google_chat_organization_handle_response_data.rb +147 -0
- data/lib/datadog_api_client/v2/models/google_chat_organization_handle_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/google_chat_organization_handles_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/google_chat_update_organization_handle_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/google_chat_update_organization_handle_request_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/google_chat_update_organization_handle_request_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_import_field_attributes.rb +63 -0
- data/lib/datadog_api_client/v2/models/incident_import_field_attributes_multiple_value.rb +90 -0
- data/lib/datadog_api_client/v2/models/incident_import_field_attributes_single_value.rb +88 -0
- data/lib/datadog_api_client/v2/models/incident_import_related_object.rb +30 -0
- data/lib/datadog_api_client/v2/models/incident_import_relationships.rb +124 -0
- data/lib/datadog_api_client/v2/models/incident_import_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_import_request_attributes.rb +187 -0
- data/lib/datadog_api_client/v2/models/incident_import_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/incident_import_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_import_response_attributes.rb +378 -0
- data/lib/datadog_api_client/v2/models/incident_import_response_data.rb +164 -0
- data/lib/datadog_api_client/v2/models/incident_import_response_included_item.rb +63 -0
- data/lib/datadog_api_client/v2/models/incident_import_response_relationships.rb +203 -0
- data/lib/datadog_api_client/v2/models/incident_import_visibility.rb +27 -0
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb +3 -3
- data/lib/datadog_api_client/v2/models/integration.rb +175 -0
- data/lib/datadog_api_client/v2/models/integration_attributes.rb +188 -0
- data/lib/datadog_api_client/v2/models/integration_links.rb +105 -0
- data/lib/datadog_api_client/v2/models/integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/list_integrations_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/list_interface_tags_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/list_interface_tags_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/llm_obs_cursor_meta.rb +113 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_data_attributes_request.rb +143 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_data_attributes_response.rb +215 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_data_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_record_data_response.rb +226 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_record_item.rb +134 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_record_update_item.rb +162 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_records_data_attributes_request.rb +135 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_records_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_records_list_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_records_mutation_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_records_mutation_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_records_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_records_update_data_attributes_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_records_update_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_records_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_update_data_attributes_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_update_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_dataset_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_datasets_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/llm_obs_delete_dataset_records_data_attributes_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/llm_obs_delete_dataset_records_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_delete_dataset_records_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_delete_datasets_data_attributes_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/llm_obs_delete_datasets_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_delete_datasets_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_delete_experiments_data_attributes_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/llm_obs_delete_experiments_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_delete_experiments_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_delete_projects_data_attributes_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/llm_obs_delete_projects_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_delete_projects_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_event_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiment_data_attributes_request.rb +215 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiment_data_attributes_response.rb +247 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiment_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiment_data_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiment_events_data_attributes_request.rb +119 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiment_events_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiment_events_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiment_metric.rb +278 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiment_metric_error.rb +105 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiment_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiment_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiment_span.rb +292 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiment_span_error.rb +125 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiment_span_meta.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiment_span_status.rb +27 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiment_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiment_update_data_attributes_request.rb +115 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiment_update_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiment_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_experiments_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/llm_obs_metric_assessment.rb +27 -0
- data/lib/datadog_api_client/v2/models/llm_obs_metric_score_type.rb +29 -0
- data/lib/datadog_api_client/v2/models/llm_obs_project_data_attributes_request.rb +133 -0
- data/lib/datadog_api_client/v2/models/llm_obs_project_data_attributes_response.rb +183 -0
- data/lib/datadog_api_client/v2/models/llm_obs_project_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_project_data_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/llm_obs_project_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_project_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_project_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/llm_obs_project_update_data_attributes_request.rb +115 -0
- data/lib/datadog_api_client/v2/models/llm_obs_project_update_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_project_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_projects_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/llm_obs_record_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/maintenance.rb +117 -0
- data/lib/datadog_api_client/v2/models/maintenance_array.rb +147 -0
- data/lib/datadog_api_client/v2/models/maintenance_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/maintenance_data_attributes.rb +209 -0
- data/lib/datadog_api_client/v2/models/maintenance_data_attributes_components_affected_items.rb +154 -0
- data/lib/datadog_api_client/v2/models/maintenance_data_attributes_status.rb +28 -0
- data/lib/datadog_api_client/v2/models/maintenance_data_attributes_updates_items.rb +177 -0
- data/lib/datadog_api_client/v2/models/maintenance_data_attributes_updates_items_components_affected_items.rb +154 -0
- data/lib/datadog_api_client/v2/models/maintenance_data_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/maintenance_data_relationships_created_by_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/maintenance_data_relationships_created_by_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/maintenance_data_relationships_last_modified_by_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/maintenance_data_relationships_last_modified_by_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/maintenance_data_relationships_status_page.rb +123 -0
- data/lib/datadog_api_client/v2/models/maintenance_data_relationships_status_page_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/microsoft_sentinel_destination.rb +21 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_data_firehose_source.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_source.rb +13 -3
- data/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination.rb +21 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination.rb +22 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination_auth.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_reference_table.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_fluent_bit_source.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_fluentd_source.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_gcp_auth.rb +2 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +12 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +2 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination.rb +13 -3
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +2 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination.rb +53 -3
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source.rb +53 -3
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_server_source.rb +43 -3
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_sasl.rb +23 -3
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_logstash_source.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_new_relic_destination.rb +21 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor_mapping_mapping.rb +2 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapping_custom.rb +167 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapping_custom_field_mapping.rb +173 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapping_custom_lookup.rb +117 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapping_custom_lookup_table_entry.rb +155 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapping_custom_metadata.rb +156 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_open_search_destination.rb +22 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_source.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sentinel_one_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_destination.rb +21 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_source.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_tcp_source.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_source.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_source.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_tls.rb +13 -3
- data/lib/datadog_api_client/v2/models/{status_pages_response_meta.rb → pagination_meta.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{status_pages_pagination.rb → pagination_meta_page.rb} +4 -4
- data/lib/datadog_api_client/v2/models/{status_pages_pagination_type.rb → pagination_meta_page_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/patch_maintenance_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_maintenance_request_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/patch_maintenance_request_data_attributes.rb +177 -0
- data/lib/datadog_api_client/v2/models/patch_maintenance_request_data_attributes_components_affected_items.rb +154 -0
- data/lib/datadog_api_client/v2/models/patch_maintenance_request_data_attributes_components_affected_items_status.rb +27 -0
- data/lib/datadog_api_client/v2/models/patch_maintenance_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/product_analytics_analytics_query.rb +191 -0
- data/lib/datadog_api_client/v2/models/product_analytics_analytics_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/product_analytics_analytics_request_attributes.rb +185 -0
- data/lib/datadog_api_client/v2/models/product_analytics_analytics_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/product_analytics_analytics_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/product_analytics_audience_account_subquery.rb +133 -0
- data/lib/datadog_api_client/v2/models/product_analytics_audience_filters.rb +141 -0
- data/lib/datadog_api_client/v2/models/product_analytics_audience_segment_subquery.rb +144 -0
- data/lib/datadog_api_client/v2/models/product_analytics_audience_user_subquery.rb +133 -0
- data/lib/datadog_api_client/v2/models/product_analytics_base_query.rb +65 -0
- data/lib/datadog_api_client/v2/models/product_analytics_compute.rb +143 -0
- data/lib/datadog_api_client/v2/models/product_analytics_event_query.rb +144 -0
- data/lib/datadog_api_client/v2/models/product_analytics_event_query_data_source.rb +26 -0
- data/lib/datadog_api_client/v2/models/product_analytics_event_search.rb +105 -0
- data/lib/datadog_api_client/v2/models/product_analytics_execution_type.rb +29 -0
- data/lib/datadog_api_client/v2/models/product_analytics_group_by.rb +163 -0
- data/lib/datadog_api_client/v2/models/product_analytics_group_by_sort.rb +125 -0
- data/lib/datadog_api_client/v2/models/product_analytics_interval.rb +137 -0
- data/lib/datadog_api_client/v2/models/product_analytics_occurrence_filter.rb +154 -0
- data/lib/datadog_api_client/v2/models/product_analytics_occurrence_query.rb +144 -0
- data/lib/datadog_api_client/v2/models/product_analytics_occurrence_query_data_source.rb +26 -0
- data/lib/datadog_api_client/v2/models/product_analytics_occurrence_search.rb +115 -0
- data/lib/datadog_api_client/v2/models/product_analytics_response_meta.rb +115 -0
- data/lib/datadog_api_client/v2/models/product_analytics_response_meta_status.rb +28 -0
- data/lib/datadog_api_client/v2/models/product_analytics_scalar_column.rb +137 -0
- data/lib/datadog_api_client/v2/models/product_analytics_scalar_column_meta.rb +115 -0
- data/lib/datadog_api_client/v2/models/product_analytics_scalar_column_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/product_analytics_scalar_response.rb +115 -0
- data/lib/datadog_api_client/v2/models/product_analytics_scalar_response_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/product_analytics_scalar_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/product_analytics_scalar_response_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/product_analytics_serie.rb +129 -0
- data/lib/datadog_api_client/v2/models/product_analytics_timeseries_response.rb +115 -0
- data/lib/datadog_api_client/v2/models/product_analytics_timeseries_response_attributes.rb +143 -0
- data/lib/datadog_api_client/v2/models/product_analytics_timeseries_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/product_analytics_timeseries_response_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/product_analytics_unit.rb +155 -0
- data/lib/datadog_api_client/v2/models/role_attributes.rb +15 -1
- data/lib/datadog_api_client/v2/models/role_clone_attributes.rb +17 -3
- data/lib/datadog_api_client/v2/models/role_create_attributes.rb +17 -3
- data/lib/datadog_api_client/v2/models/role_update_attributes.rb +15 -1
- data/lib/datadog_api_client/v2/models/seat_assignments_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/seat_user_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/seat_user_data_array.rb +117 -0
- data/lib/datadog_api_client/v2/models/seat_user_data_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/seat_user_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/seat_user_meta.rb +125 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_sort.rb +39 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_sort.rb +1 -0
- data/lib/datadog_api_client/v2/models/status_page_array.rb +1 -1
- data/lib/datadog_api_client/v2/models/status_pages_component_data_attributes_status.rb +1 -0
- data/lib/datadog_api_client/v2/models/status_pages_component_group_attributes_components_items_status.rb +1 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_assertion.rb +65 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_assertion_jitter.rb +165 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_assertion_jitter_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_assertion_latency.rb +186 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_assertion_latency_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_assertion_multi_network_hop.rb +186 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_assertion_multi_network_hop_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_assertion_operator.rb +31 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_assertion_packet_loss_percentage.rb +173 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_assertion_packet_loss_percentage_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_assertion_property.rb +28 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_test.rb +284 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_test_config.rb +117 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_test_edit.rb +144 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_test_edit_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_test_request.rb +237 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_test_request_tcp_method.rb +28 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_test_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_test_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_test_response_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_test_sub_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/synthetics_network_test_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/synthetics_test_options.rb +226 -0
- data/lib/datadog_api_client/v2/models/synthetics_test_options_monitor_options.rb +155 -0
- data/lib/datadog_api_client/v2/models/synthetics_test_options_monitor_options_notification_preset_name.rb +32 -0
- data/lib/datadog_api_client/v2/models/synthetics_test_options_retry.rb +117 -0
- data/lib/datadog_api_client/v2/models/synthetics_test_options_scheduling.rb +146 -0
- data/lib/datadog_api_client/v2/models/synthetics_test_options_scheduling_timeframe.rb +173 -0
- data/lib/datadog_api_client/v2/models/synthetics_test_pause_status.rb +28 -0
- data/lib/datadog_api_client/v2/models/trigger.rb +1 -0
- data/lib/datadog_api_client/v2/models/unassign_seats_user_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/unassign_seats_user_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/unassign_seats_user_request_data_attributes.rb +146 -0
- data/lib/datadog_api_client/v2/models/usage_attribution_types_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/usage_attribution_types_body.rb +125 -0
- data/lib/datadog_api_client/v2/models/usage_attribution_types_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/usage_attribution_types_type.rb +26 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +357 -5
|
@@ -0,0 +1,1351 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'cgi'
|
|
17
|
+
|
|
18
|
+
module DatadogAPIClient::V2
|
|
19
|
+
class LLMObservabilityAPI
|
|
20
|
+
attr_accessor :api_client
|
|
21
|
+
|
|
22
|
+
def initialize(api_client = DatadogAPIClient::APIClient.default)
|
|
23
|
+
@api_client = api_client
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Create an LLM Observability dataset.
|
|
27
|
+
#
|
|
28
|
+
# @see #create_llm_obs_dataset_with_http_info
|
|
29
|
+
def create_llm_obs_dataset(project_id, body, opts = {})
|
|
30
|
+
data, _status_code, _headers = create_llm_obs_dataset_with_http_info(project_id, body, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Create an LLM Observability dataset.
|
|
35
|
+
#
|
|
36
|
+
# Create a new LLM Observability dataset within the specified project.
|
|
37
|
+
#
|
|
38
|
+
# @param project_id [String] The ID of the LLM Observability project.
|
|
39
|
+
# @param body [LLMObsDatasetRequest] Create dataset payload.
|
|
40
|
+
# @param opts [Hash] the optional parameters
|
|
41
|
+
# @return [Array<(LLMObsDatasetResponse, Integer, Hash)>] LLMObsDatasetResponse data, response status code and response headers
|
|
42
|
+
def create_llm_obs_dataset_with_http_info(project_id, body, opts = {})
|
|
43
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_llm_obs_dataset".to_sym]
|
|
44
|
+
if unstable_enabled
|
|
45
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_llm_obs_dataset")
|
|
46
|
+
else
|
|
47
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_llm_obs_dataset"))
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
if @api_client.config.debugging
|
|
51
|
+
@api_client.config.logger.debug 'Calling API: LLMObservabilityAPI.create_llm_obs_dataset ...'
|
|
52
|
+
end
|
|
53
|
+
# verify the required parameter 'project_id' is set
|
|
54
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
55
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling LLMObservabilityAPI.create_llm_obs_dataset"
|
|
56
|
+
end
|
|
57
|
+
# verify the required parameter 'body' is set
|
|
58
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
59
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling LLMObservabilityAPI.create_llm_obs_dataset"
|
|
60
|
+
end
|
|
61
|
+
# resource path
|
|
62
|
+
local_var_path = '/api/v2/llm-obs/v1/{project_id}/datasets'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/'))
|
|
63
|
+
|
|
64
|
+
# query parameters
|
|
65
|
+
query_params = opts[:query_params] || {}
|
|
66
|
+
|
|
67
|
+
# header parameters
|
|
68
|
+
header_params = opts[:header_params] || {}
|
|
69
|
+
# HTTP header 'Accept' (if needed)
|
|
70
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
71
|
+
# HTTP header 'Content-Type'
|
|
72
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
73
|
+
|
|
74
|
+
# form parameters
|
|
75
|
+
form_params = opts[:form_params] || {}
|
|
76
|
+
|
|
77
|
+
# http body (model)
|
|
78
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
79
|
+
|
|
80
|
+
# return_type
|
|
81
|
+
return_type = opts[:debug_return_type] || 'LLMObsDatasetResponse'
|
|
82
|
+
|
|
83
|
+
# auth_names
|
|
84
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
85
|
+
|
|
86
|
+
new_options = opts.merge(
|
|
87
|
+
:operation => :create_llm_obs_dataset,
|
|
88
|
+
:header_params => header_params,
|
|
89
|
+
:query_params => query_params,
|
|
90
|
+
:form_params => form_params,
|
|
91
|
+
:body => post_body,
|
|
92
|
+
:auth_names => auth_names,
|
|
93
|
+
:return_type => return_type,
|
|
94
|
+
:api_version => "V2"
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
98
|
+
if @api_client.config.debugging
|
|
99
|
+
@api_client.config.logger.debug "API called: LLMObservabilityAPI#create_llm_obs_dataset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
100
|
+
end
|
|
101
|
+
return data, status_code, headers
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Append records to an LLM Observability dataset.
|
|
105
|
+
#
|
|
106
|
+
# @see #create_llm_obs_dataset_records_with_http_info
|
|
107
|
+
def create_llm_obs_dataset_records(project_id, dataset_id, body, opts = {})
|
|
108
|
+
data, _status_code, _headers = create_llm_obs_dataset_records_with_http_info(project_id, dataset_id, body, opts)
|
|
109
|
+
data
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Append records to an LLM Observability dataset.
|
|
113
|
+
#
|
|
114
|
+
# Append one or more records to an LLM Observability dataset.
|
|
115
|
+
#
|
|
116
|
+
# @param project_id [String] The ID of the LLM Observability project.
|
|
117
|
+
# @param dataset_id [String] The ID of the LLM Observability dataset.
|
|
118
|
+
# @param body [LLMObsDatasetRecordsRequest] Append records payload.
|
|
119
|
+
# @param opts [Hash] the optional parameters
|
|
120
|
+
# @return [Array<(LLMObsDatasetRecordsMutationResponse, Integer, Hash)>] LLMObsDatasetRecordsMutationResponse data, response status code and response headers
|
|
121
|
+
def create_llm_obs_dataset_records_with_http_info(project_id, dataset_id, body, opts = {})
|
|
122
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_llm_obs_dataset_records".to_sym]
|
|
123
|
+
if unstable_enabled
|
|
124
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_llm_obs_dataset_records")
|
|
125
|
+
else
|
|
126
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_llm_obs_dataset_records"))
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if @api_client.config.debugging
|
|
130
|
+
@api_client.config.logger.debug 'Calling API: LLMObservabilityAPI.create_llm_obs_dataset_records ...'
|
|
131
|
+
end
|
|
132
|
+
# verify the required parameter 'project_id' is set
|
|
133
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
134
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling LLMObservabilityAPI.create_llm_obs_dataset_records"
|
|
135
|
+
end
|
|
136
|
+
# verify the required parameter 'dataset_id' is set
|
|
137
|
+
if @api_client.config.client_side_validation && dataset_id.nil?
|
|
138
|
+
fail ArgumentError, "Missing the required parameter 'dataset_id' when calling LLMObservabilityAPI.create_llm_obs_dataset_records"
|
|
139
|
+
end
|
|
140
|
+
# verify the required parameter 'body' is set
|
|
141
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
142
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling LLMObservabilityAPI.create_llm_obs_dataset_records"
|
|
143
|
+
end
|
|
144
|
+
# resource path
|
|
145
|
+
local_var_path = '/api/v2/llm-obs/v1/{project_id}/datasets/{dataset_id}/records'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/')).sub('{dataset_id}', CGI.escape(dataset_id.to_s).gsub('%2F', '/'))
|
|
146
|
+
|
|
147
|
+
# query parameters
|
|
148
|
+
query_params = opts[:query_params] || {}
|
|
149
|
+
|
|
150
|
+
# header parameters
|
|
151
|
+
header_params = opts[:header_params] || {}
|
|
152
|
+
# HTTP header 'Accept' (if needed)
|
|
153
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
154
|
+
# HTTP header 'Content-Type'
|
|
155
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
156
|
+
|
|
157
|
+
# form parameters
|
|
158
|
+
form_params = opts[:form_params] || {}
|
|
159
|
+
|
|
160
|
+
# http body (model)
|
|
161
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
162
|
+
|
|
163
|
+
# return_type
|
|
164
|
+
return_type = opts[:debug_return_type] || 'LLMObsDatasetRecordsMutationResponse'
|
|
165
|
+
|
|
166
|
+
# auth_names
|
|
167
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
168
|
+
|
|
169
|
+
new_options = opts.merge(
|
|
170
|
+
:operation => :create_llm_obs_dataset_records,
|
|
171
|
+
:header_params => header_params,
|
|
172
|
+
:query_params => query_params,
|
|
173
|
+
:form_params => form_params,
|
|
174
|
+
:body => post_body,
|
|
175
|
+
:auth_names => auth_names,
|
|
176
|
+
:return_type => return_type,
|
|
177
|
+
:api_version => "V2"
|
|
178
|
+
)
|
|
179
|
+
|
|
180
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
181
|
+
if @api_client.config.debugging
|
|
182
|
+
@api_client.config.logger.debug "API called: LLMObservabilityAPI#create_llm_obs_dataset_records\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
183
|
+
end
|
|
184
|
+
return data, status_code, headers
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Create an LLM Observability experiment.
|
|
188
|
+
#
|
|
189
|
+
# @see #create_llm_obs_experiment_with_http_info
|
|
190
|
+
def create_llm_obs_experiment(body, opts = {})
|
|
191
|
+
data, _status_code, _headers = create_llm_obs_experiment_with_http_info(body, opts)
|
|
192
|
+
data
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# Create an LLM Observability experiment.
|
|
196
|
+
#
|
|
197
|
+
# Create a new LLM Observability experiment.
|
|
198
|
+
#
|
|
199
|
+
# @param body [LLMObsExperimentRequest] Create experiment payload.
|
|
200
|
+
# @param opts [Hash] the optional parameters
|
|
201
|
+
# @return [Array<(LLMObsExperimentResponse, Integer, Hash)>] LLMObsExperimentResponse data, response status code and response headers
|
|
202
|
+
def create_llm_obs_experiment_with_http_info(body, opts = {})
|
|
203
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_llm_obs_experiment".to_sym]
|
|
204
|
+
if unstable_enabled
|
|
205
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_llm_obs_experiment")
|
|
206
|
+
else
|
|
207
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_llm_obs_experiment"))
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
if @api_client.config.debugging
|
|
211
|
+
@api_client.config.logger.debug 'Calling API: LLMObservabilityAPI.create_llm_obs_experiment ...'
|
|
212
|
+
end
|
|
213
|
+
# verify the required parameter 'body' is set
|
|
214
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
215
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling LLMObservabilityAPI.create_llm_obs_experiment"
|
|
216
|
+
end
|
|
217
|
+
# resource path
|
|
218
|
+
local_var_path = '/api/v2/llm-obs/v1/experiments'
|
|
219
|
+
|
|
220
|
+
# query parameters
|
|
221
|
+
query_params = opts[:query_params] || {}
|
|
222
|
+
|
|
223
|
+
# header parameters
|
|
224
|
+
header_params = opts[:header_params] || {}
|
|
225
|
+
# HTTP header 'Accept' (if needed)
|
|
226
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
227
|
+
# HTTP header 'Content-Type'
|
|
228
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
229
|
+
|
|
230
|
+
# form parameters
|
|
231
|
+
form_params = opts[:form_params] || {}
|
|
232
|
+
|
|
233
|
+
# http body (model)
|
|
234
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
235
|
+
|
|
236
|
+
# return_type
|
|
237
|
+
return_type = opts[:debug_return_type] || 'LLMObsExperimentResponse'
|
|
238
|
+
|
|
239
|
+
# auth_names
|
|
240
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
241
|
+
|
|
242
|
+
new_options = opts.merge(
|
|
243
|
+
:operation => :create_llm_obs_experiment,
|
|
244
|
+
:header_params => header_params,
|
|
245
|
+
:query_params => query_params,
|
|
246
|
+
:form_params => form_params,
|
|
247
|
+
:body => post_body,
|
|
248
|
+
:auth_names => auth_names,
|
|
249
|
+
:return_type => return_type,
|
|
250
|
+
:api_version => "V2"
|
|
251
|
+
)
|
|
252
|
+
|
|
253
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
254
|
+
if @api_client.config.debugging
|
|
255
|
+
@api_client.config.logger.debug "API called: LLMObservabilityAPI#create_llm_obs_experiment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
256
|
+
end
|
|
257
|
+
return data, status_code, headers
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Push events for an LLM Observability experiment.
|
|
261
|
+
#
|
|
262
|
+
# @see #create_llm_obs_experiment_events_with_http_info
|
|
263
|
+
def create_llm_obs_experiment_events(experiment_id, body, opts = {})
|
|
264
|
+
create_llm_obs_experiment_events_with_http_info(experiment_id, body, opts)
|
|
265
|
+
nil
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# Push events for an LLM Observability experiment.
|
|
269
|
+
#
|
|
270
|
+
# Push spans and metrics for an LLM Observability experiment.
|
|
271
|
+
#
|
|
272
|
+
# @param experiment_id [String] The ID of the LLM Observability experiment.
|
|
273
|
+
# @param body [LLMObsExperimentEventsRequest] Experiment events payload.
|
|
274
|
+
# @param opts [Hash] the optional parameters
|
|
275
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
276
|
+
def create_llm_obs_experiment_events_with_http_info(experiment_id, body, opts = {})
|
|
277
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_llm_obs_experiment_events".to_sym]
|
|
278
|
+
if unstable_enabled
|
|
279
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_llm_obs_experiment_events")
|
|
280
|
+
else
|
|
281
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_llm_obs_experiment_events"))
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
if @api_client.config.debugging
|
|
285
|
+
@api_client.config.logger.debug 'Calling API: LLMObservabilityAPI.create_llm_obs_experiment_events ...'
|
|
286
|
+
end
|
|
287
|
+
# verify the required parameter 'experiment_id' is set
|
|
288
|
+
if @api_client.config.client_side_validation && experiment_id.nil?
|
|
289
|
+
fail ArgumentError, "Missing the required parameter 'experiment_id' when calling LLMObservabilityAPI.create_llm_obs_experiment_events"
|
|
290
|
+
end
|
|
291
|
+
# verify the required parameter 'body' is set
|
|
292
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
293
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling LLMObservabilityAPI.create_llm_obs_experiment_events"
|
|
294
|
+
end
|
|
295
|
+
# resource path
|
|
296
|
+
local_var_path = '/api/v2/llm-obs/v1/experiments/{experiment_id}/events'.sub('{experiment_id}', CGI.escape(experiment_id.to_s).gsub('%2F', '/'))
|
|
297
|
+
|
|
298
|
+
# query parameters
|
|
299
|
+
query_params = opts[:query_params] || {}
|
|
300
|
+
|
|
301
|
+
# header parameters
|
|
302
|
+
header_params = opts[:header_params] || {}
|
|
303
|
+
# HTTP header 'Accept' (if needed)
|
|
304
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
305
|
+
# HTTP header 'Content-Type'
|
|
306
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
307
|
+
|
|
308
|
+
# form parameters
|
|
309
|
+
form_params = opts[:form_params] || {}
|
|
310
|
+
|
|
311
|
+
# http body (model)
|
|
312
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
313
|
+
|
|
314
|
+
# return_type
|
|
315
|
+
return_type = opts[:debug_return_type]
|
|
316
|
+
|
|
317
|
+
# auth_names
|
|
318
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
319
|
+
|
|
320
|
+
new_options = opts.merge(
|
|
321
|
+
:operation => :create_llm_obs_experiment_events,
|
|
322
|
+
:header_params => header_params,
|
|
323
|
+
:query_params => query_params,
|
|
324
|
+
:form_params => form_params,
|
|
325
|
+
:body => post_body,
|
|
326
|
+
:auth_names => auth_names,
|
|
327
|
+
:return_type => return_type,
|
|
328
|
+
:api_version => "V2"
|
|
329
|
+
)
|
|
330
|
+
|
|
331
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
332
|
+
if @api_client.config.debugging
|
|
333
|
+
@api_client.config.logger.debug "API called: LLMObservabilityAPI#create_llm_obs_experiment_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
334
|
+
end
|
|
335
|
+
return data, status_code, headers
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
# Create an LLM Observability project.
|
|
339
|
+
#
|
|
340
|
+
# @see #create_llm_obs_project_with_http_info
|
|
341
|
+
def create_llm_obs_project(body, opts = {})
|
|
342
|
+
data, _status_code, _headers = create_llm_obs_project_with_http_info(body, opts)
|
|
343
|
+
data
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
# Create an LLM Observability project.
|
|
347
|
+
#
|
|
348
|
+
# Create a new LLM Observability project. Returns the existing project if a name conflict occurs.
|
|
349
|
+
#
|
|
350
|
+
# @param body [LLMObsProjectRequest] Create project payload.
|
|
351
|
+
# @param opts [Hash] the optional parameters
|
|
352
|
+
# @return [Array<(LLMObsProjectResponse, Integer, Hash)>] LLMObsProjectResponse data, response status code and response headers
|
|
353
|
+
def create_llm_obs_project_with_http_info(body, opts = {})
|
|
354
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_llm_obs_project".to_sym]
|
|
355
|
+
if unstable_enabled
|
|
356
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_llm_obs_project")
|
|
357
|
+
else
|
|
358
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_llm_obs_project"))
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
if @api_client.config.debugging
|
|
362
|
+
@api_client.config.logger.debug 'Calling API: LLMObservabilityAPI.create_llm_obs_project ...'
|
|
363
|
+
end
|
|
364
|
+
# verify the required parameter 'body' is set
|
|
365
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
366
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling LLMObservabilityAPI.create_llm_obs_project"
|
|
367
|
+
end
|
|
368
|
+
# resource path
|
|
369
|
+
local_var_path = '/api/v2/llm-obs/v1/projects'
|
|
370
|
+
|
|
371
|
+
# query parameters
|
|
372
|
+
query_params = opts[:query_params] || {}
|
|
373
|
+
|
|
374
|
+
# header parameters
|
|
375
|
+
header_params = opts[:header_params] || {}
|
|
376
|
+
# HTTP header 'Accept' (if needed)
|
|
377
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
378
|
+
# HTTP header 'Content-Type'
|
|
379
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
380
|
+
|
|
381
|
+
# form parameters
|
|
382
|
+
form_params = opts[:form_params] || {}
|
|
383
|
+
|
|
384
|
+
# http body (model)
|
|
385
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
386
|
+
|
|
387
|
+
# return_type
|
|
388
|
+
return_type = opts[:debug_return_type] || 'LLMObsProjectResponse'
|
|
389
|
+
|
|
390
|
+
# auth_names
|
|
391
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
392
|
+
|
|
393
|
+
new_options = opts.merge(
|
|
394
|
+
:operation => :create_llm_obs_project,
|
|
395
|
+
:header_params => header_params,
|
|
396
|
+
:query_params => query_params,
|
|
397
|
+
:form_params => form_params,
|
|
398
|
+
:body => post_body,
|
|
399
|
+
:auth_names => auth_names,
|
|
400
|
+
:return_type => return_type,
|
|
401
|
+
:api_version => "V2"
|
|
402
|
+
)
|
|
403
|
+
|
|
404
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
405
|
+
if @api_client.config.debugging
|
|
406
|
+
@api_client.config.logger.debug "API called: LLMObservabilityAPI#create_llm_obs_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
407
|
+
end
|
|
408
|
+
return data, status_code, headers
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
# Delete LLM Observability dataset records.
|
|
412
|
+
#
|
|
413
|
+
# @see #delete_llm_obs_dataset_records_with_http_info
|
|
414
|
+
def delete_llm_obs_dataset_records(project_id, dataset_id, body, opts = {})
|
|
415
|
+
delete_llm_obs_dataset_records_with_http_info(project_id, dataset_id, body, opts)
|
|
416
|
+
nil
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
# Delete LLM Observability dataset records.
|
|
420
|
+
#
|
|
421
|
+
# Delete one or more records from an LLM Observability dataset.
|
|
422
|
+
#
|
|
423
|
+
# @param project_id [String] The ID of the LLM Observability project.
|
|
424
|
+
# @param dataset_id [String] The ID of the LLM Observability dataset.
|
|
425
|
+
# @param body [LLMObsDeleteDatasetRecordsRequest] Delete records payload.
|
|
426
|
+
# @param opts [Hash] the optional parameters
|
|
427
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
428
|
+
def delete_llm_obs_dataset_records_with_http_info(project_id, dataset_id, body, opts = {})
|
|
429
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.delete_llm_obs_dataset_records".to_sym]
|
|
430
|
+
if unstable_enabled
|
|
431
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_llm_obs_dataset_records")
|
|
432
|
+
else
|
|
433
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_llm_obs_dataset_records"))
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
if @api_client.config.debugging
|
|
437
|
+
@api_client.config.logger.debug 'Calling API: LLMObservabilityAPI.delete_llm_obs_dataset_records ...'
|
|
438
|
+
end
|
|
439
|
+
# verify the required parameter 'project_id' is set
|
|
440
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
441
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling LLMObservabilityAPI.delete_llm_obs_dataset_records"
|
|
442
|
+
end
|
|
443
|
+
# verify the required parameter 'dataset_id' is set
|
|
444
|
+
if @api_client.config.client_side_validation && dataset_id.nil?
|
|
445
|
+
fail ArgumentError, "Missing the required parameter 'dataset_id' when calling LLMObservabilityAPI.delete_llm_obs_dataset_records"
|
|
446
|
+
end
|
|
447
|
+
# verify the required parameter 'body' is set
|
|
448
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
449
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling LLMObservabilityAPI.delete_llm_obs_dataset_records"
|
|
450
|
+
end
|
|
451
|
+
# resource path
|
|
452
|
+
local_var_path = '/api/v2/llm-obs/v1/{project_id}/datasets/{dataset_id}/records/delete'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/')).sub('{dataset_id}', CGI.escape(dataset_id.to_s).gsub('%2F', '/'))
|
|
453
|
+
|
|
454
|
+
# query parameters
|
|
455
|
+
query_params = opts[:query_params] || {}
|
|
456
|
+
|
|
457
|
+
# header parameters
|
|
458
|
+
header_params = opts[:header_params] || {}
|
|
459
|
+
# HTTP header 'Accept' (if needed)
|
|
460
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
461
|
+
# HTTP header 'Content-Type'
|
|
462
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
463
|
+
|
|
464
|
+
# form parameters
|
|
465
|
+
form_params = opts[:form_params] || {}
|
|
466
|
+
|
|
467
|
+
# http body (model)
|
|
468
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
469
|
+
|
|
470
|
+
# return_type
|
|
471
|
+
return_type = opts[:debug_return_type]
|
|
472
|
+
|
|
473
|
+
# auth_names
|
|
474
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
475
|
+
|
|
476
|
+
new_options = opts.merge(
|
|
477
|
+
:operation => :delete_llm_obs_dataset_records,
|
|
478
|
+
:header_params => header_params,
|
|
479
|
+
:query_params => query_params,
|
|
480
|
+
:form_params => form_params,
|
|
481
|
+
:body => post_body,
|
|
482
|
+
:auth_names => auth_names,
|
|
483
|
+
:return_type => return_type,
|
|
484
|
+
:api_version => "V2"
|
|
485
|
+
)
|
|
486
|
+
|
|
487
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
488
|
+
if @api_client.config.debugging
|
|
489
|
+
@api_client.config.logger.debug "API called: LLMObservabilityAPI#delete_llm_obs_dataset_records\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
490
|
+
end
|
|
491
|
+
return data, status_code, headers
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
# Delete LLM Observability datasets.
|
|
495
|
+
#
|
|
496
|
+
# @see #delete_llm_obs_datasets_with_http_info
|
|
497
|
+
def delete_llm_obs_datasets(project_id, body, opts = {})
|
|
498
|
+
delete_llm_obs_datasets_with_http_info(project_id, body, opts)
|
|
499
|
+
nil
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
# Delete LLM Observability datasets.
|
|
503
|
+
#
|
|
504
|
+
# Delete one or more LLM Observability datasets within the specified project.
|
|
505
|
+
#
|
|
506
|
+
# @param project_id [String] The ID of the LLM Observability project.
|
|
507
|
+
# @param body [LLMObsDeleteDatasetsRequest] Delete datasets payload.
|
|
508
|
+
# @param opts [Hash] the optional parameters
|
|
509
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
510
|
+
def delete_llm_obs_datasets_with_http_info(project_id, body, opts = {})
|
|
511
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.delete_llm_obs_datasets".to_sym]
|
|
512
|
+
if unstable_enabled
|
|
513
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_llm_obs_datasets")
|
|
514
|
+
else
|
|
515
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_llm_obs_datasets"))
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
if @api_client.config.debugging
|
|
519
|
+
@api_client.config.logger.debug 'Calling API: LLMObservabilityAPI.delete_llm_obs_datasets ...'
|
|
520
|
+
end
|
|
521
|
+
# verify the required parameter 'project_id' is set
|
|
522
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
523
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling LLMObservabilityAPI.delete_llm_obs_datasets"
|
|
524
|
+
end
|
|
525
|
+
# verify the required parameter 'body' is set
|
|
526
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
527
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling LLMObservabilityAPI.delete_llm_obs_datasets"
|
|
528
|
+
end
|
|
529
|
+
# resource path
|
|
530
|
+
local_var_path = '/api/v2/llm-obs/v1/{project_id}/datasets/delete'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/'))
|
|
531
|
+
|
|
532
|
+
# query parameters
|
|
533
|
+
query_params = opts[:query_params] || {}
|
|
534
|
+
|
|
535
|
+
# header parameters
|
|
536
|
+
header_params = opts[:header_params] || {}
|
|
537
|
+
# HTTP header 'Accept' (if needed)
|
|
538
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
539
|
+
# HTTP header 'Content-Type'
|
|
540
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
541
|
+
|
|
542
|
+
# form parameters
|
|
543
|
+
form_params = opts[:form_params] || {}
|
|
544
|
+
|
|
545
|
+
# http body (model)
|
|
546
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
547
|
+
|
|
548
|
+
# return_type
|
|
549
|
+
return_type = opts[:debug_return_type]
|
|
550
|
+
|
|
551
|
+
# auth_names
|
|
552
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
553
|
+
|
|
554
|
+
new_options = opts.merge(
|
|
555
|
+
:operation => :delete_llm_obs_datasets,
|
|
556
|
+
:header_params => header_params,
|
|
557
|
+
:query_params => query_params,
|
|
558
|
+
:form_params => form_params,
|
|
559
|
+
:body => post_body,
|
|
560
|
+
:auth_names => auth_names,
|
|
561
|
+
:return_type => return_type,
|
|
562
|
+
:api_version => "V2"
|
|
563
|
+
)
|
|
564
|
+
|
|
565
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
566
|
+
if @api_client.config.debugging
|
|
567
|
+
@api_client.config.logger.debug "API called: LLMObservabilityAPI#delete_llm_obs_datasets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
568
|
+
end
|
|
569
|
+
return data, status_code, headers
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
# Delete LLM Observability experiments.
|
|
573
|
+
#
|
|
574
|
+
# @see #delete_llm_obs_experiments_with_http_info
|
|
575
|
+
def delete_llm_obs_experiments(body, opts = {})
|
|
576
|
+
delete_llm_obs_experiments_with_http_info(body, opts)
|
|
577
|
+
nil
|
|
578
|
+
end
|
|
579
|
+
|
|
580
|
+
# Delete LLM Observability experiments.
|
|
581
|
+
#
|
|
582
|
+
# Delete one or more LLM Observability experiments.
|
|
583
|
+
#
|
|
584
|
+
# @param body [LLMObsDeleteExperimentsRequest] Delete experiments payload.
|
|
585
|
+
# @param opts [Hash] the optional parameters
|
|
586
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
587
|
+
def delete_llm_obs_experiments_with_http_info(body, opts = {})
|
|
588
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.delete_llm_obs_experiments".to_sym]
|
|
589
|
+
if unstable_enabled
|
|
590
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_llm_obs_experiments")
|
|
591
|
+
else
|
|
592
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_llm_obs_experiments"))
|
|
593
|
+
end
|
|
594
|
+
|
|
595
|
+
if @api_client.config.debugging
|
|
596
|
+
@api_client.config.logger.debug 'Calling API: LLMObservabilityAPI.delete_llm_obs_experiments ...'
|
|
597
|
+
end
|
|
598
|
+
# verify the required parameter 'body' is set
|
|
599
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
600
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling LLMObservabilityAPI.delete_llm_obs_experiments"
|
|
601
|
+
end
|
|
602
|
+
# resource path
|
|
603
|
+
local_var_path = '/api/v2/llm-obs/v1/experiments/delete'
|
|
604
|
+
|
|
605
|
+
# query parameters
|
|
606
|
+
query_params = opts[:query_params] || {}
|
|
607
|
+
|
|
608
|
+
# header parameters
|
|
609
|
+
header_params = opts[:header_params] || {}
|
|
610
|
+
# HTTP header 'Accept' (if needed)
|
|
611
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
612
|
+
# HTTP header 'Content-Type'
|
|
613
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
614
|
+
|
|
615
|
+
# form parameters
|
|
616
|
+
form_params = opts[:form_params] || {}
|
|
617
|
+
|
|
618
|
+
# http body (model)
|
|
619
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
620
|
+
|
|
621
|
+
# return_type
|
|
622
|
+
return_type = opts[:debug_return_type]
|
|
623
|
+
|
|
624
|
+
# auth_names
|
|
625
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
626
|
+
|
|
627
|
+
new_options = opts.merge(
|
|
628
|
+
:operation => :delete_llm_obs_experiments,
|
|
629
|
+
:header_params => header_params,
|
|
630
|
+
:query_params => query_params,
|
|
631
|
+
:form_params => form_params,
|
|
632
|
+
:body => post_body,
|
|
633
|
+
:auth_names => auth_names,
|
|
634
|
+
:return_type => return_type,
|
|
635
|
+
:api_version => "V2"
|
|
636
|
+
)
|
|
637
|
+
|
|
638
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
639
|
+
if @api_client.config.debugging
|
|
640
|
+
@api_client.config.logger.debug "API called: LLMObservabilityAPI#delete_llm_obs_experiments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
641
|
+
end
|
|
642
|
+
return data, status_code, headers
|
|
643
|
+
end
|
|
644
|
+
|
|
645
|
+
# Delete LLM Observability projects.
|
|
646
|
+
#
|
|
647
|
+
# @see #delete_llm_obs_projects_with_http_info
|
|
648
|
+
def delete_llm_obs_projects(body, opts = {})
|
|
649
|
+
delete_llm_obs_projects_with_http_info(body, opts)
|
|
650
|
+
nil
|
|
651
|
+
end
|
|
652
|
+
|
|
653
|
+
# Delete LLM Observability projects.
|
|
654
|
+
#
|
|
655
|
+
# Delete one or more LLM Observability projects.
|
|
656
|
+
#
|
|
657
|
+
# @param body [LLMObsDeleteProjectsRequest] Delete projects payload.
|
|
658
|
+
# @param opts [Hash] the optional parameters
|
|
659
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
660
|
+
def delete_llm_obs_projects_with_http_info(body, opts = {})
|
|
661
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.delete_llm_obs_projects".to_sym]
|
|
662
|
+
if unstable_enabled
|
|
663
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_llm_obs_projects")
|
|
664
|
+
else
|
|
665
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_llm_obs_projects"))
|
|
666
|
+
end
|
|
667
|
+
|
|
668
|
+
if @api_client.config.debugging
|
|
669
|
+
@api_client.config.logger.debug 'Calling API: LLMObservabilityAPI.delete_llm_obs_projects ...'
|
|
670
|
+
end
|
|
671
|
+
# verify the required parameter 'body' is set
|
|
672
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
673
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling LLMObservabilityAPI.delete_llm_obs_projects"
|
|
674
|
+
end
|
|
675
|
+
# resource path
|
|
676
|
+
local_var_path = '/api/v2/llm-obs/v1/projects/delete'
|
|
677
|
+
|
|
678
|
+
# query parameters
|
|
679
|
+
query_params = opts[:query_params] || {}
|
|
680
|
+
|
|
681
|
+
# header parameters
|
|
682
|
+
header_params = opts[:header_params] || {}
|
|
683
|
+
# HTTP header 'Accept' (if needed)
|
|
684
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
685
|
+
# HTTP header 'Content-Type'
|
|
686
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
687
|
+
|
|
688
|
+
# form parameters
|
|
689
|
+
form_params = opts[:form_params] || {}
|
|
690
|
+
|
|
691
|
+
# http body (model)
|
|
692
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
693
|
+
|
|
694
|
+
# return_type
|
|
695
|
+
return_type = opts[:debug_return_type]
|
|
696
|
+
|
|
697
|
+
# auth_names
|
|
698
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
699
|
+
|
|
700
|
+
new_options = opts.merge(
|
|
701
|
+
:operation => :delete_llm_obs_projects,
|
|
702
|
+
:header_params => header_params,
|
|
703
|
+
:query_params => query_params,
|
|
704
|
+
:form_params => form_params,
|
|
705
|
+
:body => post_body,
|
|
706
|
+
:auth_names => auth_names,
|
|
707
|
+
:return_type => return_type,
|
|
708
|
+
:api_version => "V2"
|
|
709
|
+
)
|
|
710
|
+
|
|
711
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
712
|
+
if @api_client.config.debugging
|
|
713
|
+
@api_client.config.logger.debug "API called: LLMObservabilityAPI#delete_llm_obs_projects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
714
|
+
end
|
|
715
|
+
return data, status_code, headers
|
|
716
|
+
end
|
|
717
|
+
|
|
718
|
+
# List LLM Observability dataset records.
|
|
719
|
+
#
|
|
720
|
+
# @see #list_llm_obs_dataset_records_with_http_info
|
|
721
|
+
def list_llm_obs_dataset_records(project_id, dataset_id, opts = {})
|
|
722
|
+
data, _status_code, _headers = list_llm_obs_dataset_records_with_http_info(project_id, dataset_id, opts)
|
|
723
|
+
data
|
|
724
|
+
end
|
|
725
|
+
|
|
726
|
+
# List LLM Observability dataset records.
|
|
727
|
+
#
|
|
728
|
+
# List all records in an LLM Observability dataset, sorted by creation date, newest first.
|
|
729
|
+
#
|
|
730
|
+
# @param project_id [String] The ID of the LLM Observability project.
|
|
731
|
+
# @param dataset_id [String] The ID of the LLM Observability dataset.
|
|
732
|
+
# @param opts [Hash] the optional parameters
|
|
733
|
+
# @option opts [Integer] :filter_version Retrieve records from a specific dataset version. Defaults to the current version.
|
|
734
|
+
# @option opts [String] :page_cursor Use the Pagination cursor to retrieve the next page of results.
|
|
735
|
+
# @option opts [Integer] :page_limit Maximum number of results to return per page.
|
|
736
|
+
# @return [Array<(LLMObsDatasetRecordsListResponse, Integer, Hash)>] LLMObsDatasetRecordsListResponse data, response status code and response headers
|
|
737
|
+
def list_llm_obs_dataset_records_with_http_info(project_id, dataset_id, opts = {})
|
|
738
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.list_llm_obs_dataset_records".to_sym]
|
|
739
|
+
if unstable_enabled
|
|
740
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_llm_obs_dataset_records")
|
|
741
|
+
else
|
|
742
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_llm_obs_dataset_records"))
|
|
743
|
+
end
|
|
744
|
+
|
|
745
|
+
if @api_client.config.debugging
|
|
746
|
+
@api_client.config.logger.debug 'Calling API: LLMObservabilityAPI.list_llm_obs_dataset_records ...'
|
|
747
|
+
end
|
|
748
|
+
# verify the required parameter 'project_id' is set
|
|
749
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
750
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling LLMObservabilityAPI.list_llm_obs_dataset_records"
|
|
751
|
+
end
|
|
752
|
+
# verify the required parameter 'dataset_id' is set
|
|
753
|
+
if @api_client.config.client_side_validation && dataset_id.nil?
|
|
754
|
+
fail ArgumentError, "Missing the required parameter 'dataset_id' when calling LLMObservabilityAPI.list_llm_obs_dataset_records"
|
|
755
|
+
end
|
|
756
|
+
# resource path
|
|
757
|
+
local_var_path = '/api/v2/llm-obs/v1/{project_id}/datasets/{dataset_id}/records'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/')).sub('{dataset_id}', CGI.escape(dataset_id.to_s).gsub('%2F', '/'))
|
|
758
|
+
|
|
759
|
+
# query parameters
|
|
760
|
+
query_params = opts[:query_params] || {}
|
|
761
|
+
query_params[:'filter[version]'] = opts[:'filter_version'] if !opts[:'filter_version'].nil?
|
|
762
|
+
query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
|
|
763
|
+
query_params[:'page[limit]'] = opts[:'page_limit'] if !opts[:'page_limit'].nil?
|
|
764
|
+
|
|
765
|
+
# header parameters
|
|
766
|
+
header_params = opts[:header_params] || {}
|
|
767
|
+
# HTTP header 'Accept' (if needed)
|
|
768
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
769
|
+
|
|
770
|
+
# form parameters
|
|
771
|
+
form_params = opts[:form_params] || {}
|
|
772
|
+
|
|
773
|
+
# http body (model)
|
|
774
|
+
post_body = opts[:debug_body]
|
|
775
|
+
|
|
776
|
+
# return_type
|
|
777
|
+
return_type = opts[:debug_return_type] || 'LLMObsDatasetRecordsListResponse'
|
|
778
|
+
|
|
779
|
+
# auth_names
|
|
780
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
781
|
+
|
|
782
|
+
new_options = opts.merge(
|
|
783
|
+
:operation => :list_llm_obs_dataset_records,
|
|
784
|
+
:header_params => header_params,
|
|
785
|
+
:query_params => query_params,
|
|
786
|
+
:form_params => form_params,
|
|
787
|
+
:body => post_body,
|
|
788
|
+
:auth_names => auth_names,
|
|
789
|
+
:return_type => return_type,
|
|
790
|
+
:api_version => "V2"
|
|
791
|
+
)
|
|
792
|
+
|
|
793
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
794
|
+
if @api_client.config.debugging
|
|
795
|
+
@api_client.config.logger.debug "API called: LLMObservabilityAPI#list_llm_obs_dataset_records\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
796
|
+
end
|
|
797
|
+
return data, status_code, headers
|
|
798
|
+
end
|
|
799
|
+
|
|
800
|
+
# List LLM Observability datasets.
|
|
801
|
+
#
|
|
802
|
+
# @see #list_llm_obs_datasets_with_http_info
|
|
803
|
+
def list_llm_obs_datasets(project_id, opts = {})
|
|
804
|
+
data, _status_code, _headers = list_llm_obs_datasets_with_http_info(project_id, opts)
|
|
805
|
+
data
|
|
806
|
+
end
|
|
807
|
+
|
|
808
|
+
# List LLM Observability datasets.
|
|
809
|
+
#
|
|
810
|
+
# List all LLM Observability datasets for a project, sorted by creation date, newest first.
|
|
811
|
+
#
|
|
812
|
+
# @param project_id [String] The ID of the LLM Observability project.
|
|
813
|
+
# @param opts [Hash] the optional parameters
|
|
814
|
+
# @option opts [String] :filter_name Filter datasets by name.
|
|
815
|
+
# @option opts [String] :filter_id Filter datasets by dataset ID.
|
|
816
|
+
# @option opts [String] :page_cursor Use the Pagination cursor to retrieve the next page of results.
|
|
817
|
+
# @option opts [Integer] :page_limit Maximum number of results to return per page.
|
|
818
|
+
# @return [Array<(LLMObsDatasetsResponse, Integer, Hash)>] LLMObsDatasetsResponse data, response status code and response headers
|
|
819
|
+
def list_llm_obs_datasets_with_http_info(project_id, opts = {})
|
|
820
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.list_llm_obs_datasets".to_sym]
|
|
821
|
+
if unstable_enabled
|
|
822
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_llm_obs_datasets")
|
|
823
|
+
else
|
|
824
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_llm_obs_datasets"))
|
|
825
|
+
end
|
|
826
|
+
|
|
827
|
+
if @api_client.config.debugging
|
|
828
|
+
@api_client.config.logger.debug 'Calling API: LLMObservabilityAPI.list_llm_obs_datasets ...'
|
|
829
|
+
end
|
|
830
|
+
# verify the required parameter 'project_id' is set
|
|
831
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
832
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling LLMObservabilityAPI.list_llm_obs_datasets"
|
|
833
|
+
end
|
|
834
|
+
# resource path
|
|
835
|
+
local_var_path = '/api/v2/llm-obs/v1/{project_id}/datasets'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/'))
|
|
836
|
+
|
|
837
|
+
# query parameters
|
|
838
|
+
query_params = opts[:query_params] || {}
|
|
839
|
+
query_params[:'filter[name]'] = opts[:'filter_name'] if !opts[:'filter_name'].nil?
|
|
840
|
+
query_params[:'filter[id]'] = opts[:'filter_id'] if !opts[:'filter_id'].nil?
|
|
841
|
+
query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
|
|
842
|
+
query_params[:'page[limit]'] = opts[:'page_limit'] if !opts[:'page_limit'].nil?
|
|
843
|
+
|
|
844
|
+
# header parameters
|
|
845
|
+
header_params = opts[:header_params] || {}
|
|
846
|
+
# HTTP header 'Accept' (if needed)
|
|
847
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
848
|
+
|
|
849
|
+
# form parameters
|
|
850
|
+
form_params = opts[:form_params] || {}
|
|
851
|
+
|
|
852
|
+
# http body (model)
|
|
853
|
+
post_body = opts[:debug_body]
|
|
854
|
+
|
|
855
|
+
# return_type
|
|
856
|
+
return_type = opts[:debug_return_type] || 'LLMObsDatasetsResponse'
|
|
857
|
+
|
|
858
|
+
# auth_names
|
|
859
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
860
|
+
|
|
861
|
+
new_options = opts.merge(
|
|
862
|
+
:operation => :list_llm_obs_datasets,
|
|
863
|
+
:header_params => header_params,
|
|
864
|
+
:query_params => query_params,
|
|
865
|
+
:form_params => form_params,
|
|
866
|
+
:body => post_body,
|
|
867
|
+
:auth_names => auth_names,
|
|
868
|
+
:return_type => return_type,
|
|
869
|
+
:api_version => "V2"
|
|
870
|
+
)
|
|
871
|
+
|
|
872
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
873
|
+
if @api_client.config.debugging
|
|
874
|
+
@api_client.config.logger.debug "API called: LLMObservabilityAPI#list_llm_obs_datasets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
875
|
+
end
|
|
876
|
+
return data, status_code, headers
|
|
877
|
+
end
|
|
878
|
+
|
|
879
|
+
# List LLM Observability experiments.
|
|
880
|
+
#
|
|
881
|
+
# @see #list_llm_obs_experiments_with_http_info
|
|
882
|
+
def list_llm_obs_experiments(opts = {})
|
|
883
|
+
data, _status_code, _headers = list_llm_obs_experiments_with_http_info(opts)
|
|
884
|
+
data
|
|
885
|
+
end
|
|
886
|
+
|
|
887
|
+
# List LLM Observability experiments.
|
|
888
|
+
#
|
|
889
|
+
# List all LLM Observability experiments sorted by creation date, newest first.
|
|
890
|
+
#
|
|
891
|
+
# @param opts [Hash] the optional parameters
|
|
892
|
+
# @option opts [String] :filter_project_id Filter experiments by project ID. Required if `filter[dataset_id]` is not provided.
|
|
893
|
+
# @option opts [String] :filter_dataset_id Filter experiments by dataset ID.
|
|
894
|
+
# @option opts [String] :filter_id Filter experiments by experiment ID. Can be specified multiple times.
|
|
895
|
+
# @option opts [String] :page_cursor Use the Pagination cursor to retrieve the next page of results.
|
|
896
|
+
# @option opts [Integer] :page_limit Maximum number of results to return per page.
|
|
897
|
+
# @return [Array<(LLMObsExperimentsResponse, Integer, Hash)>] LLMObsExperimentsResponse data, response status code and response headers
|
|
898
|
+
def list_llm_obs_experiments_with_http_info(opts = {})
|
|
899
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.list_llm_obs_experiments".to_sym]
|
|
900
|
+
if unstable_enabled
|
|
901
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_llm_obs_experiments")
|
|
902
|
+
else
|
|
903
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_llm_obs_experiments"))
|
|
904
|
+
end
|
|
905
|
+
|
|
906
|
+
if @api_client.config.debugging
|
|
907
|
+
@api_client.config.logger.debug 'Calling API: LLMObservabilityAPI.list_llm_obs_experiments ...'
|
|
908
|
+
end
|
|
909
|
+
# resource path
|
|
910
|
+
local_var_path = '/api/v2/llm-obs/v1/experiments'
|
|
911
|
+
|
|
912
|
+
# query parameters
|
|
913
|
+
query_params = opts[:query_params] || {}
|
|
914
|
+
query_params[:'filter[project_id]'] = opts[:'filter_project_id'] if !opts[:'filter_project_id'].nil?
|
|
915
|
+
query_params[:'filter[dataset_id]'] = opts[:'filter_dataset_id'] if !opts[:'filter_dataset_id'].nil?
|
|
916
|
+
query_params[:'filter[id]'] = opts[:'filter_id'] if !opts[:'filter_id'].nil?
|
|
917
|
+
query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
|
|
918
|
+
query_params[:'page[limit]'] = opts[:'page_limit'] if !opts[:'page_limit'].nil?
|
|
919
|
+
|
|
920
|
+
# header parameters
|
|
921
|
+
header_params = opts[:header_params] || {}
|
|
922
|
+
# HTTP header 'Accept' (if needed)
|
|
923
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
924
|
+
|
|
925
|
+
# form parameters
|
|
926
|
+
form_params = opts[:form_params] || {}
|
|
927
|
+
|
|
928
|
+
# http body (model)
|
|
929
|
+
post_body = opts[:debug_body]
|
|
930
|
+
|
|
931
|
+
# return_type
|
|
932
|
+
return_type = opts[:debug_return_type] || 'LLMObsExperimentsResponse'
|
|
933
|
+
|
|
934
|
+
# auth_names
|
|
935
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
936
|
+
|
|
937
|
+
new_options = opts.merge(
|
|
938
|
+
:operation => :list_llm_obs_experiments,
|
|
939
|
+
:header_params => header_params,
|
|
940
|
+
:query_params => query_params,
|
|
941
|
+
:form_params => form_params,
|
|
942
|
+
:body => post_body,
|
|
943
|
+
:auth_names => auth_names,
|
|
944
|
+
:return_type => return_type,
|
|
945
|
+
:api_version => "V2"
|
|
946
|
+
)
|
|
947
|
+
|
|
948
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
949
|
+
if @api_client.config.debugging
|
|
950
|
+
@api_client.config.logger.debug "API called: LLMObservabilityAPI#list_llm_obs_experiments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
951
|
+
end
|
|
952
|
+
return data, status_code, headers
|
|
953
|
+
end
|
|
954
|
+
|
|
955
|
+
# List LLM Observability projects.
|
|
956
|
+
#
|
|
957
|
+
# @see #list_llm_obs_projects_with_http_info
|
|
958
|
+
def list_llm_obs_projects(opts = {})
|
|
959
|
+
data, _status_code, _headers = list_llm_obs_projects_with_http_info(opts)
|
|
960
|
+
data
|
|
961
|
+
end
|
|
962
|
+
|
|
963
|
+
# List LLM Observability projects.
|
|
964
|
+
#
|
|
965
|
+
# List all LLM Observability projects sorted by creation date, newest first.
|
|
966
|
+
#
|
|
967
|
+
# @param opts [Hash] the optional parameters
|
|
968
|
+
# @option opts [String] :filter_id Filter projects by project ID.
|
|
969
|
+
# @option opts [String] :filter_name Filter projects by name.
|
|
970
|
+
# @option opts [String] :page_cursor Use the Pagination cursor to retrieve the next page of results.
|
|
971
|
+
# @option opts [Integer] :page_limit Maximum number of results to return per page.
|
|
972
|
+
# @return [Array<(LLMObsProjectsResponse, Integer, Hash)>] LLMObsProjectsResponse data, response status code and response headers
|
|
973
|
+
def list_llm_obs_projects_with_http_info(opts = {})
|
|
974
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.list_llm_obs_projects".to_sym]
|
|
975
|
+
if unstable_enabled
|
|
976
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_llm_obs_projects")
|
|
977
|
+
else
|
|
978
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_llm_obs_projects"))
|
|
979
|
+
end
|
|
980
|
+
|
|
981
|
+
if @api_client.config.debugging
|
|
982
|
+
@api_client.config.logger.debug 'Calling API: LLMObservabilityAPI.list_llm_obs_projects ...'
|
|
983
|
+
end
|
|
984
|
+
# resource path
|
|
985
|
+
local_var_path = '/api/v2/llm-obs/v1/projects'
|
|
986
|
+
|
|
987
|
+
# query parameters
|
|
988
|
+
query_params = opts[:query_params] || {}
|
|
989
|
+
query_params[:'filter[id]'] = opts[:'filter_id'] if !opts[:'filter_id'].nil?
|
|
990
|
+
query_params[:'filter[name]'] = opts[:'filter_name'] if !opts[:'filter_name'].nil?
|
|
991
|
+
query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
|
|
992
|
+
query_params[:'page[limit]'] = opts[:'page_limit'] if !opts[:'page_limit'].nil?
|
|
993
|
+
|
|
994
|
+
# header parameters
|
|
995
|
+
header_params = opts[:header_params] || {}
|
|
996
|
+
# HTTP header 'Accept' (if needed)
|
|
997
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
998
|
+
|
|
999
|
+
# form parameters
|
|
1000
|
+
form_params = opts[:form_params] || {}
|
|
1001
|
+
|
|
1002
|
+
# http body (model)
|
|
1003
|
+
post_body = opts[:debug_body]
|
|
1004
|
+
|
|
1005
|
+
# return_type
|
|
1006
|
+
return_type = opts[:debug_return_type] || 'LLMObsProjectsResponse'
|
|
1007
|
+
|
|
1008
|
+
# auth_names
|
|
1009
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
1010
|
+
|
|
1011
|
+
new_options = opts.merge(
|
|
1012
|
+
:operation => :list_llm_obs_projects,
|
|
1013
|
+
:header_params => header_params,
|
|
1014
|
+
:query_params => query_params,
|
|
1015
|
+
:form_params => form_params,
|
|
1016
|
+
:body => post_body,
|
|
1017
|
+
:auth_names => auth_names,
|
|
1018
|
+
:return_type => return_type,
|
|
1019
|
+
:api_version => "V2"
|
|
1020
|
+
)
|
|
1021
|
+
|
|
1022
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
1023
|
+
if @api_client.config.debugging
|
|
1024
|
+
@api_client.config.logger.debug "API called: LLMObservabilityAPI#list_llm_obs_projects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1025
|
+
end
|
|
1026
|
+
return data, status_code, headers
|
|
1027
|
+
end
|
|
1028
|
+
|
|
1029
|
+
# Update an LLM Observability dataset.
|
|
1030
|
+
#
|
|
1031
|
+
# @see #update_llm_obs_dataset_with_http_info
|
|
1032
|
+
def update_llm_obs_dataset(project_id, dataset_id, body, opts = {})
|
|
1033
|
+
data, _status_code, _headers = update_llm_obs_dataset_with_http_info(project_id, dataset_id, body, opts)
|
|
1034
|
+
data
|
|
1035
|
+
end
|
|
1036
|
+
|
|
1037
|
+
# Update an LLM Observability dataset.
|
|
1038
|
+
#
|
|
1039
|
+
# Partially update an existing LLM Observability dataset within the specified project.
|
|
1040
|
+
#
|
|
1041
|
+
# @param project_id [String] The ID of the LLM Observability project.
|
|
1042
|
+
# @param dataset_id [String] The ID of the LLM Observability dataset.
|
|
1043
|
+
# @param body [LLMObsDatasetUpdateRequest] Update dataset payload.
|
|
1044
|
+
# @param opts [Hash] the optional parameters
|
|
1045
|
+
# @return [Array<(LLMObsDatasetResponse, Integer, Hash)>] LLMObsDatasetResponse data, response status code and response headers
|
|
1046
|
+
def update_llm_obs_dataset_with_http_info(project_id, dataset_id, body, opts = {})
|
|
1047
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.update_llm_obs_dataset".to_sym]
|
|
1048
|
+
if unstable_enabled
|
|
1049
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_llm_obs_dataset")
|
|
1050
|
+
else
|
|
1051
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_llm_obs_dataset"))
|
|
1052
|
+
end
|
|
1053
|
+
|
|
1054
|
+
if @api_client.config.debugging
|
|
1055
|
+
@api_client.config.logger.debug 'Calling API: LLMObservabilityAPI.update_llm_obs_dataset ...'
|
|
1056
|
+
end
|
|
1057
|
+
# verify the required parameter 'project_id' is set
|
|
1058
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
1059
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling LLMObservabilityAPI.update_llm_obs_dataset"
|
|
1060
|
+
end
|
|
1061
|
+
# verify the required parameter 'dataset_id' is set
|
|
1062
|
+
if @api_client.config.client_side_validation && dataset_id.nil?
|
|
1063
|
+
fail ArgumentError, "Missing the required parameter 'dataset_id' when calling LLMObservabilityAPI.update_llm_obs_dataset"
|
|
1064
|
+
end
|
|
1065
|
+
# verify the required parameter 'body' is set
|
|
1066
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1067
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling LLMObservabilityAPI.update_llm_obs_dataset"
|
|
1068
|
+
end
|
|
1069
|
+
# resource path
|
|
1070
|
+
local_var_path = '/api/v2/llm-obs/v1/{project_id}/datasets/{dataset_id}'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/')).sub('{dataset_id}', CGI.escape(dataset_id.to_s).gsub('%2F', '/'))
|
|
1071
|
+
|
|
1072
|
+
# query parameters
|
|
1073
|
+
query_params = opts[:query_params] || {}
|
|
1074
|
+
|
|
1075
|
+
# header parameters
|
|
1076
|
+
header_params = opts[:header_params] || {}
|
|
1077
|
+
# HTTP header 'Accept' (if needed)
|
|
1078
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1079
|
+
# HTTP header 'Content-Type'
|
|
1080
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1081
|
+
|
|
1082
|
+
# form parameters
|
|
1083
|
+
form_params = opts[:form_params] || {}
|
|
1084
|
+
|
|
1085
|
+
# http body (model)
|
|
1086
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
1087
|
+
|
|
1088
|
+
# return_type
|
|
1089
|
+
return_type = opts[:debug_return_type] || 'LLMObsDatasetResponse'
|
|
1090
|
+
|
|
1091
|
+
# auth_names
|
|
1092
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
1093
|
+
|
|
1094
|
+
new_options = opts.merge(
|
|
1095
|
+
:operation => :update_llm_obs_dataset,
|
|
1096
|
+
:header_params => header_params,
|
|
1097
|
+
:query_params => query_params,
|
|
1098
|
+
:form_params => form_params,
|
|
1099
|
+
:body => post_body,
|
|
1100
|
+
:auth_names => auth_names,
|
|
1101
|
+
:return_type => return_type,
|
|
1102
|
+
:api_version => "V2"
|
|
1103
|
+
)
|
|
1104
|
+
|
|
1105
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
1106
|
+
if @api_client.config.debugging
|
|
1107
|
+
@api_client.config.logger.debug "API called: LLMObservabilityAPI#update_llm_obs_dataset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1108
|
+
end
|
|
1109
|
+
return data, status_code, headers
|
|
1110
|
+
end
|
|
1111
|
+
|
|
1112
|
+
# Update LLM Observability dataset records.
|
|
1113
|
+
#
|
|
1114
|
+
# @see #update_llm_obs_dataset_records_with_http_info
|
|
1115
|
+
def update_llm_obs_dataset_records(project_id, dataset_id, body, opts = {})
|
|
1116
|
+
data, _status_code, _headers = update_llm_obs_dataset_records_with_http_info(project_id, dataset_id, body, opts)
|
|
1117
|
+
data
|
|
1118
|
+
end
|
|
1119
|
+
|
|
1120
|
+
# Update LLM Observability dataset records.
|
|
1121
|
+
#
|
|
1122
|
+
# Update one or more existing records in an LLM Observability dataset.
|
|
1123
|
+
#
|
|
1124
|
+
# @param project_id [String] The ID of the LLM Observability project.
|
|
1125
|
+
# @param dataset_id [String] The ID of the LLM Observability dataset.
|
|
1126
|
+
# @param body [LLMObsDatasetRecordsUpdateRequest] Update records payload.
|
|
1127
|
+
# @param opts [Hash] the optional parameters
|
|
1128
|
+
# @return [Array<(LLMObsDatasetRecordsMutationResponse, Integer, Hash)>] LLMObsDatasetRecordsMutationResponse data, response status code and response headers
|
|
1129
|
+
def update_llm_obs_dataset_records_with_http_info(project_id, dataset_id, body, opts = {})
|
|
1130
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.update_llm_obs_dataset_records".to_sym]
|
|
1131
|
+
if unstable_enabled
|
|
1132
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_llm_obs_dataset_records")
|
|
1133
|
+
else
|
|
1134
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_llm_obs_dataset_records"))
|
|
1135
|
+
end
|
|
1136
|
+
|
|
1137
|
+
if @api_client.config.debugging
|
|
1138
|
+
@api_client.config.logger.debug 'Calling API: LLMObservabilityAPI.update_llm_obs_dataset_records ...'
|
|
1139
|
+
end
|
|
1140
|
+
# verify the required parameter 'project_id' is set
|
|
1141
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
1142
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling LLMObservabilityAPI.update_llm_obs_dataset_records"
|
|
1143
|
+
end
|
|
1144
|
+
# verify the required parameter 'dataset_id' is set
|
|
1145
|
+
if @api_client.config.client_side_validation && dataset_id.nil?
|
|
1146
|
+
fail ArgumentError, "Missing the required parameter 'dataset_id' when calling LLMObservabilityAPI.update_llm_obs_dataset_records"
|
|
1147
|
+
end
|
|
1148
|
+
# verify the required parameter 'body' is set
|
|
1149
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1150
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling LLMObservabilityAPI.update_llm_obs_dataset_records"
|
|
1151
|
+
end
|
|
1152
|
+
# resource path
|
|
1153
|
+
local_var_path = '/api/v2/llm-obs/v1/{project_id}/datasets/{dataset_id}/records'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/')).sub('{dataset_id}', CGI.escape(dataset_id.to_s).gsub('%2F', '/'))
|
|
1154
|
+
|
|
1155
|
+
# query parameters
|
|
1156
|
+
query_params = opts[:query_params] || {}
|
|
1157
|
+
|
|
1158
|
+
# header parameters
|
|
1159
|
+
header_params = opts[:header_params] || {}
|
|
1160
|
+
# HTTP header 'Accept' (if needed)
|
|
1161
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1162
|
+
# HTTP header 'Content-Type'
|
|
1163
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1164
|
+
|
|
1165
|
+
# form parameters
|
|
1166
|
+
form_params = opts[:form_params] || {}
|
|
1167
|
+
|
|
1168
|
+
# http body (model)
|
|
1169
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
1170
|
+
|
|
1171
|
+
# return_type
|
|
1172
|
+
return_type = opts[:debug_return_type] || 'LLMObsDatasetRecordsMutationResponse'
|
|
1173
|
+
|
|
1174
|
+
# auth_names
|
|
1175
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
1176
|
+
|
|
1177
|
+
new_options = opts.merge(
|
|
1178
|
+
:operation => :update_llm_obs_dataset_records,
|
|
1179
|
+
:header_params => header_params,
|
|
1180
|
+
:query_params => query_params,
|
|
1181
|
+
:form_params => form_params,
|
|
1182
|
+
:body => post_body,
|
|
1183
|
+
:auth_names => auth_names,
|
|
1184
|
+
:return_type => return_type,
|
|
1185
|
+
:api_version => "V2"
|
|
1186
|
+
)
|
|
1187
|
+
|
|
1188
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
1189
|
+
if @api_client.config.debugging
|
|
1190
|
+
@api_client.config.logger.debug "API called: LLMObservabilityAPI#update_llm_obs_dataset_records\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1191
|
+
end
|
|
1192
|
+
return data, status_code, headers
|
|
1193
|
+
end
|
|
1194
|
+
|
|
1195
|
+
# Update an LLM Observability experiment.
|
|
1196
|
+
#
|
|
1197
|
+
# @see #update_llm_obs_experiment_with_http_info
|
|
1198
|
+
def update_llm_obs_experiment(experiment_id, body, opts = {})
|
|
1199
|
+
data, _status_code, _headers = update_llm_obs_experiment_with_http_info(experiment_id, body, opts)
|
|
1200
|
+
data
|
|
1201
|
+
end
|
|
1202
|
+
|
|
1203
|
+
# Update an LLM Observability experiment.
|
|
1204
|
+
#
|
|
1205
|
+
# Partially update an existing LLM Observability experiment.
|
|
1206
|
+
#
|
|
1207
|
+
# @param experiment_id [String] The ID of the LLM Observability experiment.
|
|
1208
|
+
# @param body [LLMObsExperimentUpdateRequest] Update experiment payload.
|
|
1209
|
+
# @param opts [Hash] the optional parameters
|
|
1210
|
+
# @return [Array<(LLMObsExperimentResponse, Integer, Hash)>] LLMObsExperimentResponse data, response status code and response headers
|
|
1211
|
+
def update_llm_obs_experiment_with_http_info(experiment_id, body, opts = {})
|
|
1212
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.update_llm_obs_experiment".to_sym]
|
|
1213
|
+
if unstable_enabled
|
|
1214
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_llm_obs_experiment")
|
|
1215
|
+
else
|
|
1216
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_llm_obs_experiment"))
|
|
1217
|
+
end
|
|
1218
|
+
|
|
1219
|
+
if @api_client.config.debugging
|
|
1220
|
+
@api_client.config.logger.debug 'Calling API: LLMObservabilityAPI.update_llm_obs_experiment ...'
|
|
1221
|
+
end
|
|
1222
|
+
# verify the required parameter 'experiment_id' is set
|
|
1223
|
+
if @api_client.config.client_side_validation && experiment_id.nil?
|
|
1224
|
+
fail ArgumentError, "Missing the required parameter 'experiment_id' when calling LLMObservabilityAPI.update_llm_obs_experiment"
|
|
1225
|
+
end
|
|
1226
|
+
# verify the required parameter 'body' is set
|
|
1227
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1228
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling LLMObservabilityAPI.update_llm_obs_experiment"
|
|
1229
|
+
end
|
|
1230
|
+
# resource path
|
|
1231
|
+
local_var_path = '/api/v2/llm-obs/v1/experiments/{experiment_id}'.sub('{experiment_id}', CGI.escape(experiment_id.to_s).gsub('%2F', '/'))
|
|
1232
|
+
|
|
1233
|
+
# query parameters
|
|
1234
|
+
query_params = opts[:query_params] || {}
|
|
1235
|
+
|
|
1236
|
+
# header parameters
|
|
1237
|
+
header_params = opts[:header_params] || {}
|
|
1238
|
+
# HTTP header 'Accept' (if needed)
|
|
1239
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1240
|
+
# HTTP header 'Content-Type'
|
|
1241
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1242
|
+
|
|
1243
|
+
# form parameters
|
|
1244
|
+
form_params = opts[:form_params] || {}
|
|
1245
|
+
|
|
1246
|
+
# http body (model)
|
|
1247
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
1248
|
+
|
|
1249
|
+
# return_type
|
|
1250
|
+
return_type = opts[:debug_return_type] || 'LLMObsExperimentResponse'
|
|
1251
|
+
|
|
1252
|
+
# auth_names
|
|
1253
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
1254
|
+
|
|
1255
|
+
new_options = opts.merge(
|
|
1256
|
+
:operation => :update_llm_obs_experiment,
|
|
1257
|
+
:header_params => header_params,
|
|
1258
|
+
:query_params => query_params,
|
|
1259
|
+
:form_params => form_params,
|
|
1260
|
+
:body => post_body,
|
|
1261
|
+
:auth_names => auth_names,
|
|
1262
|
+
:return_type => return_type,
|
|
1263
|
+
:api_version => "V2"
|
|
1264
|
+
)
|
|
1265
|
+
|
|
1266
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
1267
|
+
if @api_client.config.debugging
|
|
1268
|
+
@api_client.config.logger.debug "API called: LLMObservabilityAPI#update_llm_obs_experiment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1269
|
+
end
|
|
1270
|
+
return data, status_code, headers
|
|
1271
|
+
end
|
|
1272
|
+
|
|
1273
|
+
# Update an LLM Observability project.
|
|
1274
|
+
#
|
|
1275
|
+
# @see #update_llm_obs_project_with_http_info
|
|
1276
|
+
def update_llm_obs_project(project_id, body, opts = {})
|
|
1277
|
+
data, _status_code, _headers = update_llm_obs_project_with_http_info(project_id, body, opts)
|
|
1278
|
+
data
|
|
1279
|
+
end
|
|
1280
|
+
|
|
1281
|
+
# Update an LLM Observability project.
|
|
1282
|
+
#
|
|
1283
|
+
# Partially update an existing LLM Observability project.
|
|
1284
|
+
#
|
|
1285
|
+
# @param project_id [String] The ID of the LLM Observability project.
|
|
1286
|
+
# @param body [LLMObsProjectUpdateRequest] Update project payload.
|
|
1287
|
+
# @param opts [Hash] the optional parameters
|
|
1288
|
+
# @return [Array<(LLMObsProjectResponse, Integer, Hash)>] LLMObsProjectResponse data, response status code and response headers
|
|
1289
|
+
def update_llm_obs_project_with_http_info(project_id, body, opts = {})
|
|
1290
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.update_llm_obs_project".to_sym]
|
|
1291
|
+
if unstable_enabled
|
|
1292
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_llm_obs_project")
|
|
1293
|
+
else
|
|
1294
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_llm_obs_project"))
|
|
1295
|
+
end
|
|
1296
|
+
|
|
1297
|
+
if @api_client.config.debugging
|
|
1298
|
+
@api_client.config.logger.debug 'Calling API: LLMObservabilityAPI.update_llm_obs_project ...'
|
|
1299
|
+
end
|
|
1300
|
+
# verify the required parameter 'project_id' is set
|
|
1301
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
1302
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling LLMObservabilityAPI.update_llm_obs_project"
|
|
1303
|
+
end
|
|
1304
|
+
# verify the required parameter 'body' is set
|
|
1305
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1306
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling LLMObservabilityAPI.update_llm_obs_project"
|
|
1307
|
+
end
|
|
1308
|
+
# resource path
|
|
1309
|
+
local_var_path = '/api/v2/llm-obs/v1/projects/{project_id}'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/'))
|
|
1310
|
+
|
|
1311
|
+
# query parameters
|
|
1312
|
+
query_params = opts[:query_params] || {}
|
|
1313
|
+
|
|
1314
|
+
# header parameters
|
|
1315
|
+
header_params = opts[:header_params] || {}
|
|
1316
|
+
# HTTP header 'Accept' (if needed)
|
|
1317
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1318
|
+
# HTTP header 'Content-Type'
|
|
1319
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1320
|
+
|
|
1321
|
+
# form parameters
|
|
1322
|
+
form_params = opts[:form_params] || {}
|
|
1323
|
+
|
|
1324
|
+
# http body (model)
|
|
1325
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
1326
|
+
|
|
1327
|
+
# return_type
|
|
1328
|
+
return_type = opts[:debug_return_type] || 'LLMObsProjectResponse'
|
|
1329
|
+
|
|
1330
|
+
# auth_names
|
|
1331
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
1332
|
+
|
|
1333
|
+
new_options = opts.merge(
|
|
1334
|
+
:operation => :update_llm_obs_project,
|
|
1335
|
+
:header_params => header_params,
|
|
1336
|
+
:query_params => query_params,
|
|
1337
|
+
:form_params => form_params,
|
|
1338
|
+
:body => post_body,
|
|
1339
|
+
:auth_names => auth_names,
|
|
1340
|
+
:return_type => return_type,
|
|
1341
|
+
:api_version => "V2"
|
|
1342
|
+
)
|
|
1343
|
+
|
|
1344
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
1345
|
+
if @api_client.config.debugging
|
|
1346
|
+
@api_client.config.logger.debug "API called: LLMObservabilityAPI#update_llm_obs_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1347
|
+
end
|
|
1348
|
+
return data, status_code, headers
|
|
1349
|
+
end
|
|
1350
|
+
end
|
|
1351
|
+
end
|