From cf88b3e234a61bc2e551623591e028a127f57f5a Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 29 Oct 2025 13:35:07 +0000 Subject: [PATCH] Regenerate client from commit aab7a0d of spec repo --- .generator/schemas/v2/openapi.yaml | 1378 +++++++++++++++++ examples/v2/cohort/GetRumCohort.ts | 49 + examples/v2/cohort/GetRumCohortUsers.ts | 49 + examples/v2/funnel/GetRumFunnel.ts | 53 + .../v2/funnel/GetRumFunnelStepSuggestions.ts | 49 + examples/v2/segments/CreateRumSegment.ts | 60 + examples/v2/segments/InitializeRumSegments.ts | 18 + examples/v2/segments/ListRumSegments.ts | 18 + examples/v2/user-flow/GetRumSankey.ts | 50 + features/support/scenarios_model_mapping.ts | 48 + features/v2/cohort.feature | 24 + features/v2/funnel.feature | 24 + features/v2/segments.feature | 30 + features/v2/undo.json | 48 + features/v2/user_flow.feature | 14 + .../configuration.ts | 8 + .../datadog-api-client-v2/apis/CohortApi.ts | 294 ++++ .../datadog-api-client-v2/apis/FunnelApi.ts | 296 ++++ .../datadog-api-client-v2/apis/SegmentsApi.ts | 346 +++++ .../datadog-api-client-v2/apis/UserFlowApi.ts | 166 ++ packages/datadog-api-client-v2/index.ts | 113 ++ .../models/FunnelRequest.ts | 47 + .../models/FunnelRequestData.ts | 59 + .../models/FunnelRequestDataAttributes.ts | 68 + .../FunnelRequestDataAttributesSearch.ts | 62 + ...elRequestDataAttributesSearchStepsItems.ts | 56 + .../models/FunnelRequestDataAttributesTime.ts | 53 + .../models/FunnelRequestDataType.ts | 10 + .../models/FunnelResponse.ts | 47 + .../models/FunnelResponseData.ts | 59 + .../models/FunnelResponseDataAttributes.ts | 65 + ...lResponseDataAttributesFunnelStepsItems.ts | 58 + .../models/FunnelResponseDataType.ts | 10 + .../models/FunnelResponseElapsedTime.ts | 77 + .../models/FunnelSuggestionRequest.ts | 47 + .../models/FunnelSuggestionRequestData.ts | 59 + .../FunnelSuggestionRequestDataAttributes.ts | 64 + ...elSuggestionRequestDataAttributesSearch.ts | 62 + ...onRequestDataAttributesSearchStepsItems.ts | 56 + ...ggestionRequestDataAttributesTermSearch.ts | 46 + ...nnelSuggestionRequestDataAttributesTime.ts | 53 + .../models/FunnelSuggestionRequestDataType.ts | 12 + .../models/FunnelSuggestionResponse.ts | 47 + .../models/FunnelSuggestionResponseData.ts | 59 + .../FunnelSuggestionResponseDataAttributes.ts | 53 + ...stionResponseDataAttributesActionsItems.ts | 46 + ...gestionResponseDataAttributesViewsItems.ts | 46 + .../FunnelSuggestionResponseDataType.ts | 12 + .../models/GetCohortRequest.ts | 47 + .../models/GetCohortRequestData.ts | 59 + .../models/GetCohortRequestDataAttributes.ts | 73 + ...etCohortRequestDataAttributesDefinition.ts | 62 + ...DataAttributesDefinitionAudienceFilters.ts | 64 + ...sDefinitionAudienceFiltersAccountsItems.ts | 52 + ...sDefinitionAudienceFiltersSegmentsItems.ts | 53 + ...utesDefinitionAudienceFiltersUsersItems.ts | 52 + .../GetCohortRequestDataAttributesTime.ts | 53 + .../models/GetCohortRequestDataType.ts | 10 + .../models/GetCohortResponse.ts | 47 + .../models/GetCohortResponseData.ts | 59 + .../models/GetCohortResponseDataAttributes.ts | 47 + ...ohortResponseDataAttributesCohortsItems.ts | 64 + ...seDataAttributesCohortsItemsValuesItems.ts | 71 + .../models/GetCohortResponseDataType.ts | 10 + .../models/GetCohortUsersRequest.ts | 47 + .../models/GetCohortUsersRequestData.ts | 59 + .../GetCohortUsersRequestDataAttributes.ts | 74 + ...ortUsersRequestDataAttributesDefinition.ts | 73 + ...DataAttributesDefinitionAudienceFilters.ts | 64 + ...sDefinitionAudienceFiltersAccountsItems.ts | 52 + ...sDefinitionAudienceFiltersSegmentsItems.ts | 53 + ...utesDefinitionAudienceFiltersUsersItems.ts | 52 + ...GetCohortUsersRequestDataAttributesTime.ts | 53 + .../models/GetCohortUsersRequestDataType.ts | 12 + .../models/GetCohortUsersResponse.ts | 47 + .../models/GetCohortUsersResponseData.ts | 59 + .../GetCohortUsersResponseDataAttributes.ts | 47 + ...rtUsersResponseDataAttributesUsersItems.ts | 56 + .../models/GetCohortUsersResponseDataType.ts | 12 + .../models/ObjectSerializer.ts | 208 +++ .../models/SankeyRequest.ts | 47 + .../models/SankeyRequestData.ts | 59 + .../models/SankeyRequestDataAttributes.ts | 80 + .../SankeyRequestDataAttributesDefinition.ts | 63 + .../SankeyRequestDataAttributesSampling.ts | 49 + .../SankeyRequestDataAttributesSearch.ts | 63 + ...uestDataAttributesSearchAudienceFilters.ts | 64 + ...butesSearchAudienceFiltersAccountsItems.ts | 52 + ...butesSearchAudienceFiltersSegmentsItems.ts | 53 + ...tributesSearchAudienceFiltersUsersItems.ts | 52 + ...yRequestDataAttributesSearchOccurrences.ts | 58 + .../models/SankeyRequestDataAttributesTime.ts | 53 + .../models/SankeyRequestDataType.ts | 10 + .../models/SankeyResponse.ts | 47 + .../models/SankeyResponseData.ts | 59 + .../models/SankeyResponseDataAttributes.ts | 53 + .../SankeyResponseDataAttributesLinksItems.ts | 68 + .../SankeyResponseDataAttributesNodesItems.ts | 86 + ...ttributesNodesItemsAggregatedNodesItems.ts | 74 + .../models/SankeyResponseDataType.ts | 10 + .../datadog-api-client-v2/models/Segment.ts | 47 + .../models/SegmentArray.ts | 48 + .../models/SegmentData.ts | 59 + .../models/SegmentDataAttributes.ts | 127 ++ .../models/SegmentDataAttributesDataQuery.ts | 70 + ...taAttributesDataQueryEventPlatformItems.ts | 67 + ...aAttributesDataQueryReferenceTableItems.ts | 70 + ...ataQueryReferenceTableItemsColumnsItems.ts | 51 + ...taQueryReferenceTableItemsJoinCondition.ts | 52 + ...gmentDataAttributesDataQueryStaticItems.ts | 57 + ...ntDataAttributesDataQueryUserStoreItems.ts | 56 + .../models/SegmentDataSource.ts | 69 + .../models/SegmentDataType.ts | 10 + 113 files changed, 8142 insertions(+) create mode 100644 examples/v2/cohort/GetRumCohort.ts create mode 100644 examples/v2/cohort/GetRumCohortUsers.ts create mode 100644 examples/v2/funnel/GetRumFunnel.ts create mode 100644 examples/v2/funnel/GetRumFunnelStepSuggestions.ts create mode 100644 examples/v2/segments/CreateRumSegment.ts create mode 100644 examples/v2/segments/InitializeRumSegments.ts create mode 100644 examples/v2/segments/ListRumSegments.ts create mode 100644 examples/v2/user-flow/GetRumSankey.ts create mode 100644 features/v2/cohort.feature create mode 100644 features/v2/funnel.feature create mode 100644 features/v2/segments.feature create mode 100644 features/v2/user_flow.feature create mode 100644 packages/datadog-api-client-v2/apis/CohortApi.ts create mode 100644 packages/datadog-api-client-v2/apis/FunnelApi.ts create mode 100644 packages/datadog-api-client-v2/apis/SegmentsApi.ts create mode 100644 packages/datadog-api-client-v2/apis/UserFlowApi.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelRequest.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelRequestData.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelRequestDataAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelRequestDataAttributesSearch.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelRequestDataAttributesSearchStepsItems.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelRequestDataAttributesTime.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelRequestDataType.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelResponse.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelResponseData.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelResponseDataAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelResponseDataAttributesFunnelStepsItems.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelResponseDataType.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelResponseElapsedTime.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelSuggestionRequest.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelSuggestionRequestData.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributesSearch.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributesSearchStepsItems.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributesTermSearch.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributesTime.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataType.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelSuggestionResponse.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelSuggestionResponseData.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelSuggestionResponseDataAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelSuggestionResponseDataAttributesActionsItems.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelSuggestionResponseDataAttributesViewsItems.ts create mode 100644 packages/datadog-api-client-v2/models/FunnelSuggestionResponseDataType.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortRequest.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortRequestData.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortRequestDataAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinition.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinitionAudienceFilters.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesTime.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortRequestDataType.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortResponse.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortResponseData.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortResponseDataAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortResponseDataAttributesCohortsItems.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortResponseDataAttributesCohortsItemsValuesItems.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortResponseDataType.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortUsersRequest.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortUsersRequestData.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinition.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinitionAudienceFilters.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesTime.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortUsersRequestDataType.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortUsersResponse.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortUsersResponseData.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortUsersResponseDataAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortUsersResponseDataAttributesUsersItems.ts create mode 100644 packages/datadog-api-client-v2/models/GetCohortUsersResponseDataType.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyRequest.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyRequestData.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyRequestDataAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyRequestDataAttributesDefinition.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSampling.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearch.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchAudienceFilters.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchAudienceFiltersUsersItems.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchOccurrences.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyRequestDataAttributesTime.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyRequestDataType.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyResponse.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyResponseData.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyResponseDataAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyResponseDataAttributesLinksItems.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyResponseDataAttributesNodesItems.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyResponseDataAttributesNodesItemsAggregatedNodesItems.ts create mode 100644 packages/datadog-api-client-v2/models/SankeyResponseDataType.ts create mode 100644 packages/datadog-api-client-v2/models/Segment.ts create mode 100644 packages/datadog-api-client-v2/models/SegmentArray.ts create mode 100644 packages/datadog-api-client-v2/models/SegmentData.ts create mode 100644 packages/datadog-api-client-v2/models/SegmentDataAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/SegmentDataAttributesDataQuery.ts create mode 100644 packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryEventPlatformItems.ts create mode 100644 packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryReferenceTableItems.ts create mode 100644 packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems.ts create mode 100644 packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition.ts create mode 100644 packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryStaticItems.ts create mode 100644 packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryUserStoreItems.ts create mode 100644 packages/datadog-api-client-v2/models/SegmentDataSource.ts create mode 100644 packages/datadog-api-client-v2/models/SegmentDataType.ts diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 93efc78e5a9c..f95a76690c8c 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -20823,6 +20823,326 @@ components: - name - requirements type: object + FunnelRequest: + example: + data: + attributes: + data_source: rum + enforced_execution_type: '' + request_id: '' + search: + cross_session_filter: '' + query_string: '@type:view' + steps: + - facet: '@view.name' + step_filter: '' + value: /apm/home + - facet: '@view.name' + step_filter: '' + value: /apm/traces + subquery_id: '' + time: + from: 1756425600000 + to: 1756857600000 + id: funnel_request + type: funnel_request + properties: + data: + $ref: '#/components/schemas/FunnelRequestData' + type: object + FunnelRequestData: + properties: + attributes: + $ref: '#/components/schemas/FunnelRequestDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/FunnelRequestDataType' + required: + - type + type: object + FunnelRequestDataAttributes: + properties: + data_source: + type: string + enforced_execution_type: + type: string + request_id: + type: string + search: + $ref: '#/components/schemas/FunnelRequestDataAttributesSearch' + time: + $ref: '#/components/schemas/FunnelRequestDataAttributesTime' + type: object + FunnelRequestDataAttributesSearch: + properties: + cross_session_filter: + type: string + query_string: + type: string + steps: + items: + $ref: '#/components/schemas/FunnelRequestDataAttributesSearchStepsItems' + type: array + subquery_id: + type: string + type: object + FunnelRequestDataAttributesSearchStepsItems: + properties: + facet: + type: string + step_filter: + type: string + value: + type: string + type: object + FunnelRequestDataAttributesTime: + properties: + from: + format: int64 + type: integer + to: + format: int64 + type: integer + type: object + FunnelRequestDataType: + default: funnel_request + enum: + - funnel_request + example: funnel_request + type: string + x-enum-varnames: + - FUNNEL_REQUEST + FunnelResponse: + example: + data: + attributes: + end_to_end_conversion_rate: 0.1161386890038228 + funnel_steps: + - label: '@type:view @view.name:/apm/home' + value: 284608 + - label: '@type:view @view.name:/apm/traces' + value: 33054 + initial_count: 3925047 + id: funnel_response + type: funnel_response + properties: + data: + $ref: '#/components/schemas/FunnelResponseData' + type: object + FunnelResponseData: + properties: + attributes: + $ref: '#/components/schemas/FunnelResponseDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/FunnelResponseDataType' + required: + - type + type: object + FunnelResponseDataAttributes: + properties: + end_to_end_conversion_rate: + format: double + type: number + end_to_end_elapsed_time: + $ref: '#/components/schemas/FunnelResponseElapsedTime' + funnel_steps: + items: + $ref: '#/components/schemas/FunnelResponseDataAttributesFunnelStepsItems' + type: array + initial_count: + format: int64 + type: integer + type: object + FunnelResponseDataAttributesFunnelStepsItems: + properties: + elapsed_time_to_next_step: + $ref: '#/components/schemas/FunnelResponseElapsedTime' + label: + type: string + value: + format: int64 + type: integer + type: object + FunnelResponseDataType: + default: funnel_response + enum: + - funnel_response + example: funnel_response + type: string + x-enum-varnames: + - FUNNEL_RESPONSE + FunnelResponseElapsedTime: + properties: + avg: + format: int64 + type: integer + max: + format: int64 + type: integer + min: + format: int64 + type: integer + p5: + format: int64 + type: integer + p50: + format: int64 + type: integer + p95: + format: int64 + type: integer + type: object + FunnelSuggestionRequest: + example: + data: + attributes: + data_source: '' + search: + cross_session_filter: '' + query_string: '@type:view' + steps: + - facet: '@view.name' + step_filter: '' + value: /apm/home + subquery_id: '' + term_search: + query: apm + time: + from: 1756425600000 + to: 1756857600000 + id: funnel_suggestion_request + type: funnel_suggestion_request + properties: + data: + $ref: '#/components/schemas/FunnelSuggestionRequestData' + type: object + FunnelSuggestionRequestData: + properties: + attributes: + $ref: '#/components/schemas/FunnelSuggestionRequestDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/FunnelSuggestionRequestDataType' + required: + - type + type: object + FunnelSuggestionRequestDataAttributes: + properties: + data_source: + type: string + search: + $ref: '#/components/schemas/FunnelSuggestionRequestDataAttributesSearch' + term_search: + $ref: '#/components/schemas/FunnelSuggestionRequestDataAttributesTermSearch' + time: + $ref: '#/components/schemas/FunnelSuggestionRequestDataAttributesTime' + type: object + FunnelSuggestionRequestDataAttributesSearch: + properties: + cross_session_filter: + type: string + query_string: + type: string + steps: + items: + $ref: '#/components/schemas/FunnelSuggestionRequestDataAttributesSearchStepsItems' + type: array + subquery_id: + type: string + type: object + FunnelSuggestionRequestDataAttributesSearchStepsItems: + properties: + facet: + type: string + step_filter: + type: string + value: + type: string + type: object + FunnelSuggestionRequestDataAttributesTermSearch: + properties: + query: + type: string + type: object + FunnelSuggestionRequestDataAttributesTime: + properties: + from: + format: int64 + type: integer + to: + format: int64 + type: integer + type: object + FunnelSuggestionRequestDataType: + default: funnel_suggestion_request + enum: + - funnel_suggestion_request + example: funnel_suggestion_request + type: string + x-enum-varnames: + - FUNNEL_SUGGESTION_REQUEST + FunnelSuggestionResponse: + example: + data: + attributes: + actions: + - name: view_trace_details + - name: filter_by_service + - name: analyze_performance + views: + - name: /apm/traces + - name: /apm/services + - name: /apm/service-map + id: funnel_suggestion_response + type: funnel_suggestion_response + properties: + data: + $ref: '#/components/schemas/FunnelSuggestionResponseData' + type: object + FunnelSuggestionResponseData: + properties: + attributes: + $ref: '#/components/schemas/FunnelSuggestionResponseDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/FunnelSuggestionResponseDataType' + required: + - type + type: object + FunnelSuggestionResponseDataAttributes: + properties: + actions: + items: + $ref: '#/components/schemas/FunnelSuggestionResponseDataAttributesActionsItems' + type: array + views: + items: + $ref: '#/components/schemas/FunnelSuggestionResponseDataAttributesViewsItems' + type: array + type: object + FunnelSuggestionResponseDataAttributesActionsItems: + properties: + name: + type: string + type: object + FunnelSuggestionResponseDataAttributesViewsItems: + properties: + name: + type: string + type: object + FunnelSuggestionResponseDataType: + default: funnel_suggestion_response + enum: + - funnel_suggestion_response + example: funnel_suggestion_response + type: string + x-enum-varnames: + - FUNNEL_SUGGESTION_RESPONSE GCPCredentials: description: The definition of the `GCPCredentials` object. oneOf: @@ -21735,6 +22055,369 @@ components: type: string type: array type: object + GetCohortRequest: + properties: + data: + $ref: '#/components/schemas/GetCohortRequestData' + type: object + GetCohortRequestData: + properties: + attributes: + $ref: '#/components/schemas/GetCohortRequestDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/GetCohortRequestDataType' + required: + - type + type: object + GetCohortRequestDataAttributes: + properties: + data_source: + type: string + definition: + $ref: '#/components/schemas/GetCohortRequestDataAttributesDefinition' + enforced_execution_type: + type: string + request_id: + type: string + time: + $ref: '#/components/schemas/GetCohortRequestDataAttributesTime' + window_size: + type: string + type: object + GetCohortRequestDataAttributesDefinition: + properties: + audience_filters: + $ref: '#/components/schemas/GetCohortRequestDataAttributesDefinitionAudienceFilters' + inclusion_search: + type: string + return_search: + type: string + segment_id: + type: string + type: object + GetCohortRequestDataAttributesDefinitionAudienceFilters: + properties: + accounts: + items: + $ref: '#/components/schemas/GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems' + type: array + formula: + type: string + segments: + items: + $ref: '#/components/schemas/GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems' + type: array + users: + items: + $ref: '#/components/schemas/GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems' + type: array + type: object + GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems: + properties: + name: + example: '' + type: string + query: + type: string + required: + - name + type: object + GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems: + properties: + name: + example: '' + type: string + segment_id: + example: '' + type: string + required: + - name + - segment_id + type: object + GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems: + properties: + name: + example: '' + type: string + query: + type: string + required: + - name + type: object + GetCohortRequestDataAttributesTime: + properties: + from: + format: int64 + type: integer + to: + format: int64 + type: integer + type: object + GetCohortRequestDataType: + default: cohort_request + enum: + - cohort_request + example: cohort_request + type: string + x-enum-varnames: + - COHORT_REQUEST + GetCohortResponse: + example: + data: + attributes: + cohorts: + - cohort: '2024-01-01' + cohort_size: 1000 + start_time: 1704067200000 + values: + - absolute_value: 1000 + end_time: 1704672000000 + relative_value: 100 + start_time: 1704067200000 + window: 0 + - absolute_value: 750 + end_time: 1705276800000 + relative_value: 75 + start_time: 1704672000000 + window: 1 + - absolute_value: 600 + end_time: 1705881600000 + relative_value: 60 + start_time: 1705276800000 + window: 2 + id: cohort_response + type: cohort_response + properties: + data: + $ref: '#/components/schemas/GetCohortResponseData' + type: object + GetCohortResponseData: + properties: + attributes: + $ref: '#/components/schemas/GetCohortResponseDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/GetCohortResponseDataType' + required: + - type + type: object + GetCohortResponseDataAttributes: + properties: + cohorts: + items: + $ref: '#/components/schemas/GetCohortResponseDataAttributesCohortsItems' + type: array + type: object + GetCohortResponseDataAttributesCohortsItems: + properties: + cohort: + type: string + cohort_size: + format: int64 + type: integer + start_time: + format: int64 + type: integer + values: + items: + $ref: '#/components/schemas/GetCohortResponseDataAttributesCohortsItemsValuesItems' + type: array + type: object + GetCohortResponseDataAttributesCohortsItemsValuesItems: + properties: + absolute_value: + format: int64 + type: integer + end_time: + format: int64 + type: integer + relative_value: + format: double + type: number + start_time: + format: int64 + type: integer + window: + format: int64 + type: integer + type: object + GetCohortResponseDataType: + default: cohort_response + enum: + - cohort_response + example: cohort_response + type: string + x-enum-varnames: + - COHORT_RESPONSE + GetCohortUsersRequest: + properties: + data: + $ref: '#/components/schemas/GetCohortUsersRequestData' + type: object + GetCohortUsersRequestData: + properties: + attributes: + $ref: '#/components/schemas/GetCohortUsersRequestDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/GetCohortUsersRequestDataType' + required: + - type + type: object + GetCohortUsersRequestDataAttributes: + properties: + data_source: + type: string + definition: + $ref: '#/components/schemas/GetCohortUsersRequestDataAttributesDefinition' + execution: + format: int64 + type: integer + time: + $ref: '#/components/schemas/GetCohortUsersRequestDataAttributesTime' + user_selection: + type: string + window_size: + type: string + type: object + GetCohortUsersRequestDataAttributesDefinition: + properties: + audience_filters: + $ref: '#/components/schemas/GetCohortUsersRequestDataAttributesDefinitionAudienceFilters' + cohort: + type: string + inclusion_search: + type: string + return_search: + type: string + segment_id: + type: string + window: + format: int64 + type: integer + type: object + GetCohortUsersRequestDataAttributesDefinitionAudienceFilters: + properties: + accounts: + items: + $ref: '#/components/schemas/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems' + type: array + formula: + type: string + segments: + items: + $ref: '#/components/schemas/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems' + type: array + users: + items: + $ref: '#/components/schemas/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems' + type: array + type: object + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems: + properties: + name: + example: '' + type: string + query: + type: string + required: + - name + type: object + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems: + properties: + name: + example: '' + type: string + segment_id: + example: '' + type: string + required: + - name + - segment_id + type: object + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems: + properties: + name: + example: '' + type: string + query: + type: string + required: + - name + type: object + GetCohortUsersRequestDataAttributesTime: + properties: + from: + format: int64 + type: integer + to: + format: int64 + type: integer + type: object + GetCohortUsersRequestDataType: + default: cohort_users_request + enum: + - cohort_users_request + example: cohort_users_request + type: string + x-enum-varnames: + - COHORT_USERS_REQUEST + GetCohortUsersResponse: + example: + data: + attributes: + users: + - email: user@example.com + id: user123 + name: John Doe + - email: jane@example.com + id: user456 + name: Jane Smith + id: cohort_users_response + type: cohort_users_response + properties: + data: + $ref: '#/components/schemas/GetCohortUsersResponseData' + type: object + GetCohortUsersResponseData: + properties: + attributes: + $ref: '#/components/schemas/GetCohortUsersResponseDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/GetCohortUsersResponseDataType' + required: + - type + type: object + GetCohortUsersResponseDataAttributes: + properties: + users: + items: + $ref: '#/components/schemas/GetCohortUsersResponseDataAttributesUsersItems' + type: array + type: object + GetCohortUsersResponseDataAttributesUsersItems: + properties: + email: + type: string + id: + type: string + name: + type: string + type: object + GetCohortUsersResponseDataType: + default: cohort_users_response + enum: + - cohort_users_response + example: cohort_users_response + type: string + x-enum-varnames: + - COHORT_USERS_RESPONSE GetCustomFrameworkResponse: description: Response object to get a custom framework. properties: @@ -42312,6 +42995,294 @@ components: example: report_id type: string type: object + SankeyRequest: + example: + data: + attributes: + data_source: '' + definition: + entries_per_step: 10 + number_of_steps: 5 + source: '@view.name' + target: '@view.name' + enforced_execution_type: '' + request_id: '' + sampling: + enabled: true + search: + audience_filters: {} + query: '@type:view @application.id:*' + subquery_id: '' + time: + from: 1756425600000 + to: 1756857600000 + id: sankey_request + type: sankey_request + properties: + data: + $ref: '#/components/schemas/SankeyRequestData' + type: object + SankeyRequestData: + properties: + attributes: + $ref: '#/components/schemas/SankeyRequestDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/SankeyRequestDataType' + required: + - type + type: object + SankeyRequestDataAttributes: + properties: + data_source: + type: string + definition: + $ref: '#/components/schemas/SankeyRequestDataAttributesDefinition' + enforced_execution_type: + type: string + request_id: + type: string + sampling: + $ref: '#/components/schemas/SankeyRequestDataAttributesSampling' + search: + $ref: '#/components/schemas/SankeyRequestDataAttributesSearch' + time: + $ref: '#/components/schemas/SankeyRequestDataAttributesTime' + type: object + SankeyRequestDataAttributesDefinition: + properties: + entries_per_step: + format: int64 + type: integer + number_of_steps: + format: int64 + type: integer + source: + type: string + target: + type: string + type: object + SankeyRequestDataAttributesSampling: + properties: + enabled: + description: The `sampling` `enabled`. + type: boolean + type: object + SankeyRequestDataAttributesSearch: + properties: + audience_filters: + $ref: '#/components/schemas/SankeyRequestDataAttributesSearchAudienceFilters' + occurrences: + $ref: '#/components/schemas/SankeyRequestDataAttributesSearchOccurrences' + query: + type: string + subquery_id: + type: string + type: object + SankeyRequestDataAttributesSearchAudienceFilters: + properties: + accounts: + items: + $ref: '#/components/schemas/SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems' + type: array + formula: + type: string + segments: + items: + $ref: '#/components/schemas/SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems' + type: array + users: + items: + $ref: '#/components/schemas/SankeyRequestDataAttributesSearchAudienceFiltersUsersItems' + type: array + type: object + SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems: + properties: + name: + example: '' + type: string + query: + type: string + required: + - name + type: object + SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems: + properties: + name: + example: '' + type: string + segment_id: + example: '' + type: string + required: + - name + - segment_id + type: object + SankeyRequestDataAttributesSearchAudienceFiltersUsersItems: + properties: + name: + example: '' + type: string + query: + type: string + required: + - name + type: object + SankeyRequestDataAttributesSearchOccurrences: + properties: + meta: + additionalProperties: + type: string + type: object + operator: + example: '' + type: string + value: + example: '' + type: string + required: + - operator + - value + type: object + SankeyRequestDataAttributesTime: + properties: + from: + format: int64 + type: integer + to: + format: int64 + type: integer + type: object + SankeyRequestDataType: + default: sankey_request + enum: + - sankey_request + example: sankey_request + type: string + x-enum-varnames: + - SANKEY_REQUEST + SankeyResponse: + example: + data: + attributes: + links: + - column: 0 + id: apm_home-to-apm_traces + source: apm_home + target: apm_traces + value: 33054 + nodes: + - aggregated_nodes: null + column: 0 + id: apm_home + incoming_value: 0 + name: /apm/home + outgoing_value: 33054 + type: regular + value: 284608 + - aggregated_nodes: null + column: 1 + id: apm_traces + incoming_value: 33054 + name: /apm/traces + outgoing_value: 15000 + type: regular + value: 33054 + id: sankey_response + type: sankey_response + properties: + data: + $ref: '#/components/schemas/SankeyResponseData' + type: object + SankeyResponseData: + properties: + attributes: + $ref: '#/components/schemas/SankeyResponseDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/SankeyResponseDataType' + required: + - type + type: object + SankeyResponseDataAttributes: + properties: + links: + items: + $ref: '#/components/schemas/SankeyResponseDataAttributesLinksItems' + type: array + nodes: + items: + $ref: '#/components/schemas/SankeyResponseDataAttributesNodesItems' + type: array + type: object + SankeyResponseDataAttributesLinksItems: + properties: + column: + format: int64 + type: integer + id: + type: string + source: + type: string + target: + type: string + value: + format: int64 + type: integer + type: object + SankeyResponseDataAttributesNodesItems: + properties: + aggregated_nodes: + items: + $ref: '#/components/schemas/SankeyResponseDataAttributesNodesItemsAggregatedNodesItems' + type: array + column: + format: int64 + type: integer + id: + type: string + incoming_value: + format: int64 + type: integer + name: + type: string + outgoing_value: + format: int64 + type: integer + type: + type: string + value: + format: int64 + type: integer + type: object + SankeyResponseDataAttributesNodesItemsAggregatedNodesItems: + properties: + id: + type: string + incoming_value: + format: int64 + type: integer + name: + type: string + outgoing_value: + format: int64 + type: integer + type: + type: string + value: + format: int64 + type: integer + type: object + SankeyResponseDataType: + default: sankey_response + enum: + - sankey_response + example: sankey_response + type: string + x-enum-varnames: + - SANKEY_RESPONSE ScaRequest: properties: data: @@ -45944,6 +46915,229 @@ components: required: - securityTrigger type: object + Segment: + example: + data: + attributes: + created_at: '0001-01-01T00:00:00Z' + created_by: + handle: '' + id: '' + uuid: '' + data_query: + event_platform: + - facet: '@usr.id' + from: '2025-08-01' + name: high_value_users + query: '@type:view @view.name:/logs @usr.session_duration:>300000' + to: '2025-09-01' + description: Users who frequently visit logs and have high session duration + modified_at: '0001-01-01T00:00:00Z' + modified_by: + handle: '' + id: '' + uuid: '' + name: High-Value Users + org_id: 123456 + source: 0 + tags: + - high-value + - logs + - active + version: 1 + id: segment-12345 + type: segment + properties: + data: + $ref: '#/components/schemas/SegmentData' + type: object + SegmentArray: + properties: + data: + items: + $ref: '#/components/schemas/SegmentData' + type: array + required: + - data + type: object + SegmentData: + properties: + attributes: + $ref: '#/components/schemas/SegmentDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/SegmentDataType' + required: + - type + type: object + SegmentDataAttributes: + properties: + created_at: + format: date-time + type: string + created_by: + $ref: '#/components/schemas/SegmentDataSource' + data_query: + $ref: '#/components/schemas/SegmentDataAttributesDataQuery' + description: + type: string + disabled_at: + format: date-time + type: string + disabled_by: + $ref: '#/components/schemas/SegmentDataSource' + materialization_row_count: + format: int64 + type: integer + materialized_at: + type: string + modified_at: + format: date-time + type: string + modified_by: + $ref: '#/components/schemas/SegmentDataSource' + name: + example: '' + type: string + org_id: + format: int64 + type: integer + source: + format: int64 + type: integer + tags: + items: + type: string + type: array + version: + format: int64 + type: integer + required: + - data_query + - name + type: object + SegmentDataAttributesDataQuery: + properties: + combination: + type: string + event_platform: + items: + $ref: '#/components/schemas/SegmentDataAttributesDataQueryEventPlatformItems' + type: array + reference_table: + items: + $ref: '#/components/schemas/SegmentDataAttributesDataQueryReferenceTableItems' + type: array + static: + items: + $ref: '#/components/schemas/SegmentDataAttributesDataQueryStaticItems' + type: array + user_store: + items: + $ref: '#/components/schemas/SegmentDataAttributesDataQueryUserStoreItems' + type: array + type: object + SegmentDataAttributesDataQueryEventPlatformItems: + properties: + facet: + example: '' + type: string + from: + type: string + name: + type: string + query: + type: string + to: + type: string + required: + - facet + type: object + SegmentDataAttributesDataQueryReferenceTableItems: + properties: + columns: + items: + $ref: '#/components/schemas/SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems' + type: array + filter_query: + type: string + join_condition: + $ref: '#/components/schemas/SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition' + name: + type: string + table_name: + example: '' + type: string + required: + - join_condition + - table_name + type: object + SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems: + properties: + alias: + type: string + name: + type: string + type: object + SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition: + properties: + column_name: + example: '' + type: string + facet: + type: string + required: + - column_name + type: object + SegmentDataAttributesDataQueryStaticItems: + properties: + id: + type: string + name: + type: string + user_count: + format: int64 + minimum: 0 + type: integer + type: object + SegmentDataAttributesDataQueryUserStoreItems: + properties: + facet: + type: string + name: + type: string + query: + type: string + type: object + SegmentDataSource: + properties: + handle: + example: '' + type: string + icon: + type: string + id: + example: '' + type: string + name: + type: string + uuid: + example: '' + type: string + required: + - handle + - id + - uuid + type: object + SegmentDataType: + default: segment + enum: + - segment + example: segment + type: string + x-enum-varnames: + - SEGMENT Selectors: description: 'Selectors are used to filter security issues for which notifications should be generated. @@ -73028,6 +74222,54 @@ paths: operator: OR permissions: - rum_apps_write + /api/v2/rum/cohort: + post: + description: Analyze user cohorts for retention and conversion analysis + operationId: GetRumCohort + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetCohortRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/GetCohortResponse' + description: Successful response with cohort analysis data + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: [] + summary: Get rum cohort + tags: + - Cohort + x-unstable: '**Note**: This endpoint may be subject to changes.' + /api/v2/rum/cohort/users: + post: + description: Get users within a specific cohort for retention analysis + operationId: GetRumCohortUsers + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetCohortUsersRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/GetCohortUsersResponse' + description: Successful response with cohort users + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: [] + summary: Get rum cohort users + tags: + - Cohort + x-unstable: '**Note**: This endpoint may be subject to changes.' /api/v2/rum/config/metrics: get: description: Get the list of configured rum-based metrics with their definitions. @@ -73282,6 +74524,134 @@ paths: operator: OR permissions: - rum_apps_read + /api/v2/rum/funnel: + post: + description: Analyze conversion funnels to understand user drop-off patterns + operationId: GetRumFunnel + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FunnelRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FunnelResponse' + description: Successful response with funnel analysis data + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: [] + summary: Get rum funnel + tags: + - Funnel + x-unstable: '**Note**: This endpoint may be subject to changes.' + /api/v2/rum/funnel/new_step_suggestions: + post: + description: Get suggested steps for building conversion funnels + operationId: GetRumFunnelStepSuggestions + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FunnelSuggestionRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FunnelSuggestionResponse' + description: Successful response with funnel step suggestions + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: [] + summary: Get rum funnel step suggestions + tags: + - Funnel + x-unstable: '**Note**: This endpoint may be subject to changes.' + /api/v2/rum/sankey: + post: + description: Generate Sankey diagrams to visualize user flow paths and drop-off + points + operationId: GetRumSankey + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SankeyRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/SankeyResponse' + description: Successful response with Sankey diagram data + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: [] + summary: Get rum sankey + tags: + - User Flow + x-unstable: '**Note**: This endpoint may be subject to changes.' + /api/v2/rum/segment: + get: + description: List all available user segments for audience targeting + operationId: ListRumSegments + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/SegmentArray' + description: Successful response with list of segments + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: [] + summary: List rum segments + tags: + - Segments + x-unstable: '**Note**: This endpoint may be subject to changes.' + post: + description: Create a new user segment for audience targeting + operationId: CreateRumSegment + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Segment' + required: true + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Segment' + description: Segment created successfully + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: [] + summary: Create rum segment + tags: + - Segments + x-unstable: '**Note**: This endpoint may be subject to changes.' + /api/v2/rum/segment/initialize: + post: + description: Initialize default segments for a new organization + operationId: InitializeRumSegments + responses: + '200': + description: Default segments created successfully + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: [] + summary: Initialize rum segments + tags: + - Segments + x-unstable: '**Note**: This endpoint may be subject to changes.' /api/v2/saml_configurations/idp_metadata: post: description: 'Endpoint for uploading IdP metadata for SAML setup. @@ -81252,6 +82622,8 @@ tags: API. See the [Cloudflare integration page](https://docs.datadoghq.com/integrations/cloudflare/) for more information. name: Cloudflare Integration +- description: API for Cohort. + name: Cohort - description: Manage your Datadog Confluent Cloud integration accounts and account resources directly through the Datadog API. See the [Confluent Cloud page](https://docs.datadoghq.com/integrations/confluent_cloud/) for more information. @@ -81335,6 +82707,8 @@ tags: that apply configuration changes to multiple hosts at once.' name: Fleet Automation +- description: API for funnel. + name: Funnel - description: 'Configure your Datadog-Google Cloud Platform (GCP) integration directly through the Datadog API. Read more about the [Datadog-Google Cloud Platform integration](https://docs.datadoghq.com/integrations/google_cloud_platform).' @@ -81556,6 +82930,8 @@ tags: See the [Datadog Security page](https://docs.datadoghq.com/security/) for more information. name: Security Monitoring +- description: API for segments. + name: Segments - description: Create, update, delete, and retrieve sensitive data scanner groups and rules. See the [Sensitive Data Scanner page](https://docs.datadoghq.com/sensitive_data_scanner/) for more information. @@ -81643,6 +83019,8 @@ tags: description: Find out more at url: https://docs.datadoghq.com/account_management/billing/usage_details/ name: Usage Metering +- description: API for user flow. + name: User Flow - description: Create, edit, and disable users. externalDocs: url: https://docs.datadoghq.com/account_management/users diff --git a/examples/v2/cohort/GetRumCohort.ts b/examples/v2/cohort/GetRumCohort.ts new file mode 100644 index 000000000000..6def3f0f8d5d --- /dev/null +++ b/examples/v2/cohort/GetRumCohort.ts @@ -0,0 +1,49 @@ +/** + * Get rum cohort returns "Successful response with cohort analysis data" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +configuration.unstableOperations["v2.getRumCohort"] = true; +const apiInstance = new v2.CohortApi(configuration); + +const params: v2.CohortApiGetRumCohortRequest = { + body: { + data: { + attributes: { + definition: { + audienceFilters: { + accounts: [ + { + name: "", + }, + ], + segments: [ + { + name: "", + segmentId: "", + }, + ], + users: [ + { + name: "", + }, + ], + }, + }, + time: {}, + }, + type: "cohort_request", + }, + }, +}; + +apiInstance + .getRumCohort(params) + .then((data: v2.GetCohortResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/cohort/GetRumCohortUsers.ts b/examples/v2/cohort/GetRumCohortUsers.ts new file mode 100644 index 000000000000..016c919a6ac9 --- /dev/null +++ b/examples/v2/cohort/GetRumCohortUsers.ts @@ -0,0 +1,49 @@ +/** + * Get rum cohort users returns "Successful response with cohort users" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +configuration.unstableOperations["v2.getRumCohortUsers"] = true; +const apiInstance = new v2.CohortApi(configuration); + +const params: v2.CohortApiGetRumCohortUsersRequest = { + body: { + data: { + attributes: { + definition: { + audienceFilters: { + accounts: [ + { + name: "", + }, + ], + segments: [ + { + name: "", + segmentId: "", + }, + ], + users: [ + { + name: "", + }, + ], + }, + }, + time: {}, + }, + type: "cohort_users_request", + }, + }, +}; + +apiInstance + .getRumCohortUsers(params) + .then((data: v2.GetCohortUsersResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/funnel/GetRumFunnel.ts b/examples/v2/funnel/GetRumFunnel.ts new file mode 100644 index 000000000000..feb4f024a0cd --- /dev/null +++ b/examples/v2/funnel/GetRumFunnel.ts @@ -0,0 +1,53 @@ +/** + * Get rum funnel returns "Successful response with funnel analysis data" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +configuration.unstableOperations["v2.getRumFunnel"] = true; +const apiInstance = new v2.FunnelApi(configuration); + +const params: v2.FunnelApiGetRumFunnelRequest = { + body: { + data: { + attributes: { + dataSource: "rum", + enforcedExecutionType: "", + requestId: "", + search: { + crossSessionFilter: "", + queryString: "@type:view", + steps: [ + { + facet: "@view.name", + stepFilter: "", + value: "/apm/home", + }, + { + facet: "@view.name", + stepFilter: "", + value: "/apm/traces", + }, + ], + subqueryId: "", + }, + time: { + from: 1756425600000, + to: 1756857600000, + }, + }, + id: "funnel_request", + type: "funnel_request", + }, + }, +}; + +apiInstance + .getRumFunnel(params) + .then((data: v2.FunnelResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/funnel/GetRumFunnelStepSuggestions.ts b/examples/v2/funnel/GetRumFunnelStepSuggestions.ts new file mode 100644 index 000000000000..00c7b01a17e4 --- /dev/null +++ b/examples/v2/funnel/GetRumFunnelStepSuggestions.ts @@ -0,0 +1,49 @@ +/** + * Get rum funnel step suggestions returns "Successful response with funnel step suggestions" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +configuration.unstableOperations["v2.getRumFunnelStepSuggestions"] = true; +const apiInstance = new v2.FunnelApi(configuration); + +const params: v2.FunnelApiGetRumFunnelStepSuggestionsRequest = { + body: { + data: { + attributes: { + dataSource: "", + search: { + crossSessionFilter: "", + queryString: "@type:view", + steps: [ + { + facet: "@view.name", + stepFilter: "", + value: "/apm/home", + }, + ], + subqueryId: "", + }, + termSearch: { + query: "apm", + }, + time: { + from: 1756425600000, + to: 1756857600000, + }, + }, + id: "funnel_suggestion_request", + type: "funnel_suggestion_request", + }, + }, +}; + +apiInstance + .getRumFunnelStepSuggestions(params) + .then((data: v2.FunnelSuggestionResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/segments/CreateRumSegment.ts b/examples/v2/segments/CreateRumSegment.ts new file mode 100644 index 000000000000..cf55db6026e8 --- /dev/null +++ b/examples/v2/segments/CreateRumSegment.ts @@ -0,0 +1,60 @@ +/** + * Create rum segment returns "Segment created successfully" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +configuration.unstableOperations["v2.createRumSegment"] = true; +const apiInstance = new v2.SegmentsApi(configuration); + +const params: v2.SegmentsApiCreateRumSegmentRequest = { + body: { + data: { + attributes: { + createdAt: new Date(1, 1, 1, 0, 0, 0, 0), + createdBy: { + handle: "", + id: "", + uuid: "", + }, + dataQuery: { + eventPlatform: [ + { + facet: "@usr.id", + from: "2025-08-01", + name: "high_value_users", + query: + "@type:view @view.name:/logs @usr.session_duration:>300000", + to: "2025-09-01", + }, + ], + }, + description: + "Users who frequently visit logs and have high session duration", + modifiedAt: new Date(1, 1, 1, 0, 0, 0, 0), + modifiedBy: { + handle: "", + id: "", + uuid: "", + }, + name: "High-Value Users", + orgId: 123456, + source: 0, + tags: ["high-value", "logs", "active"], + version: 1, + }, + id: "segment-12345", + type: "segment", + }, + }, +}; + +apiInstance + .createRumSegment(params) + .then((data: v2.Segment) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/segments/InitializeRumSegments.ts b/examples/v2/segments/InitializeRumSegments.ts new file mode 100644 index 000000000000..1f48a481dace --- /dev/null +++ b/examples/v2/segments/InitializeRumSegments.ts @@ -0,0 +1,18 @@ +/** + * Initialize rum segments returns "Default segments created successfully" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +configuration.unstableOperations["v2.initializeRumSegments"] = true; +const apiInstance = new v2.SegmentsApi(configuration); + +apiInstance + .initializeRumSegments() + .then((data: any) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/segments/ListRumSegments.ts b/examples/v2/segments/ListRumSegments.ts new file mode 100644 index 000000000000..8a7a097b756e --- /dev/null +++ b/examples/v2/segments/ListRumSegments.ts @@ -0,0 +1,18 @@ +/** + * List rum segments returns "Successful response with list of segments" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +configuration.unstableOperations["v2.listRumSegments"] = true; +const apiInstance = new v2.SegmentsApi(configuration); + +apiInstance + .listRumSegments() + .then((data: v2.SegmentArray) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/user-flow/GetRumSankey.ts b/examples/v2/user-flow/GetRumSankey.ts new file mode 100644 index 000000000000..da1db440ea96 --- /dev/null +++ b/examples/v2/user-flow/GetRumSankey.ts @@ -0,0 +1,50 @@ +/** + * Get rum sankey returns "Successful response with Sankey diagram data" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +configuration.unstableOperations["v2.getRumSankey"] = true; +const apiInstance = new v2.UserFlowApi(configuration); + +const params: v2.UserFlowApiGetRumSankeyRequest = { + body: { + data: { + attributes: { + dataSource: "", + definition: { + entriesPerStep: 10, + numberOfSteps: 5, + source: "@view.name", + target: "@view.name", + }, + enforcedExecutionType: "", + requestId: "", + sampling: { + enabled: true, + }, + search: { + audienceFilters: {}, + query: "@type:view @application.id:*", + subqueryId: "", + }, + time: { + from: 1756425600000, + to: 1756857600000, + }, + }, + id: "sankey_request", + type: "sankey_request", + }, + }, +}; + +apiInstance + .getRumSankey(params) + .then((data: v2.SankeyResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/features/support/scenarios_model_mapping.ts b/features/support/scenarios_model_mapping.ts index ac768aaaf6ce..f28f19827060 100644 --- a/features/support/scenarios_model_mapping.ts +++ b/features/support/scenarios_model_mapping.ts @@ -7991,6 +7991,20 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { }, "operationResponseType": "RumRetentionFilterResponse", }, + "v2.GetRumCohort": { + "body": { + "type": "GetCohortRequest", + "format": "", + }, + "operationResponseType": "GetCohortResponse", + }, + "v2.GetRumCohortUsers": { + "body": { + "type": "GetCohortUsersRequest", + "format": "", + }, + "operationResponseType": "GetCohortUsersResponse", + }, "v2.ListRumMetrics": { "operationResponseType": "RumMetricsResponse", }, @@ -8026,6 +8040,40 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { }, "operationResponseType": "RumMetricResponse", }, + "v2.GetRumFunnel": { + "body": { + "type": "FunnelRequest", + "format": "", + }, + "operationResponseType": "FunnelResponse", + }, + "v2.GetRumFunnelStepSuggestions": { + "body": { + "type": "FunnelSuggestionRequest", + "format": "", + }, + "operationResponseType": "FunnelSuggestionResponse", + }, + "v2.GetRumSankey": { + "body": { + "type": "SankeyRequest", + "format": "", + }, + "operationResponseType": "SankeyResponse", + }, + "v2.ListRumSegments": { + "operationResponseType": "SegmentArray", + }, + "v2.CreateRumSegment": { + "body": { + "type": "Segment", + "format": "", + }, + "operationResponseType": "Segment", + }, + "v2.InitializeRumSegments": { + "operationResponseType": "{}", + }, "v2.ListScorecardOutcomes": { "pageSize": { "type": "number", diff --git a/features/v2/cohort.feature b/features/v2/cohort.feature new file mode 100644 index 000000000000..8ca5e7bbdd9f --- /dev/null +++ b/features/v2/cohort.feature @@ -0,0 +1,24 @@ +@endpoint(cohort) @endpoint(cohort-v2) +Feature: Cohort + API for Cohort. + + Background: + Given a valid "apiKeyAuth" key in the system + And a valid "appKeyAuth" key in the system + And an instance of "Cohort" API + + @generated @skip @team:DataDog/product-analytics-backend + Scenario: Get rum cohort returns "Successful response with cohort analysis data" response + Given operation "GetRumCohort" enabled + And new "GetRumCohort" request + And body with value {"data": {"attributes": {"definition": {"audience_filters": {"accounts": [{"name": ""}], "segments": [{"name": "", "segment_id": ""}], "users": [{"name": ""}]}}, "time": {}}, "type": "cohort_request"}} + When the request is sent + Then the response status is 200 Successful response with cohort analysis data + + @generated @skip @team:DataDog/product-analytics-backend + Scenario: Get rum cohort users returns "Successful response with cohort users" response + Given operation "GetRumCohortUsers" enabled + And new "GetRumCohortUsers" request + And body with value {"data": {"attributes": {"definition": {"audience_filters": {"accounts": [{"name": ""}], "segments": [{"name": "", "segment_id": ""}], "users": [{"name": ""}]}}, "time": {}}, "type": "cohort_users_request"}} + When the request is sent + Then the response status is 200 Successful response with cohort users diff --git a/features/v2/funnel.feature b/features/v2/funnel.feature new file mode 100644 index 000000000000..929450400fe4 --- /dev/null +++ b/features/v2/funnel.feature @@ -0,0 +1,24 @@ +@endpoint(funnel) @endpoint(funnel-v2) +Feature: Funnel + API for funnel. + + Background: + Given a valid "apiKeyAuth" key in the system + And a valid "appKeyAuth" key in the system + And an instance of "Funnel" API + + @generated @skip @team:DataDog/product-analytics-backend + Scenario: Get rum funnel returns "Successful response with funnel analysis data" response + Given operation "GetRumFunnel" enabled + And new "GetRumFunnel" request + And body with value {"data": {"attributes": {"data_source": "rum", "enforced_execution_type": "", "request_id": "", "search": {"cross_session_filter": "", "query_string": "@type:view", "steps": [{"facet": "@view.name", "step_filter": "", "value": "/apm/home"}, {"facet": "@view.name", "step_filter": "", "value": "/apm/traces"}], "subquery_id": ""}, "time": {"from": 1756425600000, "to": 1756857600000}}, "id": "funnel_request", "type": "funnel_request"}} + When the request is sent + Then the response status is 200 Successful response with funnel analysis data + + @generated @skip @team:DataDog/product-analytics-backend + Scenario: Get rum funnel step suggestions returns "Successful response with funnel step suggestions" response + Given operation "GetRumFunnelStepSuggestions" enabled + And new "GetRumFunnelStepSuggestions" request + And body with value {"data": {"attributes": {"data_source": "", "search": {"cross_session_filter": "", "query_string": "@type:view", "steps": [{"facet": "@view.name", "step_filter": "", "value": "/apm/home"}], "subquery_id": ""}, "term_search": {"query": "apm"}, "time": {"from": 1756425600000, "to": 1756857600000}}, "id": "funnel_suggestion_request", "type": "funnel_suggestion_request"}} + When the request is sent + Then the response status is 200 Successful response with funnel step suggestions diff --git a/features/v2/segments.feature b/features/v2/segments.feature new file mode 100644 index 000000000000..95cc467d6d60 --- /dev/null +++ b/features/v2/segments.feature @@ -0,0 +1,30 @@ +@endpoint(segments) @endpoint(segments-v2) +Feature: Segments + API for segments. + + Background: + Given a valid "apiKeyAuth" key in the system + And a valid "appKeyAuth" key in the system + And an instance of "Segments" API + + @generated @skip @team:DataDog/product-analytics-backend + Scenario: Create rum segment returns "Segment created successfully" response + Given operation "CreateRumSegment" enabled + And new "CreateRumSegment" request + And body with value {"data": {"attributes": {"created_at": "0001-01-01T00:00:00Z", "created_by": {"handle": "", "id": "", "uuid": ""}, "data_query": {"event_platform": [{"facet": "@usr.id", "from": "2025-08-01", "name": "high_value_users", "query": "@type:view @view.name:/logs @usr.session_duration:>300000", "to": "2025-09-01"}]}, "description": "Users who frequently visit logs and have high session duration", "modified_at": "0001-01-01T00:00:00Z", "modified_by": {"handle": "", "id": "", "uuid": ""}, "name": "High-Value Users", "org_id": 123456, "source": 0, "tags": ["high-value", "logs", "active"], "version": 1}, "id": "segment-12345", "type": "segment"}} + When the request is sent + Then the response status is 201 Segment created successfully + + @generated @skip @team:DataDog/product-analytics-backend + Scenario: Initialize rum segments returns "Default segments created successfully" response + Given operation "InitializeRumSegments" enabled + And new "InitializeRumSegments" request + When the request is sent + Then the response status is 200 Default segments created successfully + + @generated @skip @team:DataDog/product-analytics-backend + Scenario: List rum segments returns "Successful response with list of segments" response + Given operation "ListRumSegments" enabled + And new "ListRumSegments" request + When the request is sent + Then the response status is 200 Successful response with list of segments diff --git a/features/v2/undo.json b/features/v2/undo.json index f4a7f9e7f8de..f019e40f8b6e 100644 --- a/features/v2/undo.json +++ b/features/v2/undo.json @@ -3254,6 +3254,18 @@ "type": "idempotent" } }, + "GetRumCohort": { + "tag": "Cohort", + "undo": { + "type": "safe" + } + }, + "GetRumCohortUsers": { + "tag": "Cohort", + "undo": { + "type": "safe" + } + }, "ListRumMetrics": { "tag": "Rum Metrics", "undo": { @@ -3303,6 +3315,42 @@ "type": "safe" } }, + "GetRumFunnel": { + "tag": "Funnel", + "undo": { + "type": "safe" + } + }, + "GetRumFunnelStepSuggestions": { + "tag": "Funnel", + "undo": { + "type": "safe" + } + }, + "GetRumSankey": { + "tag": "User Flow", + "undo": { + "type": "safe" + } + }, + "ListRumSegments": { + "tag": "Segments", + "undo": { + "type": "safe" + } + }, + "CreateRumSegment": { + "tag": "Segments", + "undo": { + "type": "safe" + } + }, + "InitializeRumSegments": { + "tag": "Segments", + "undo": { + "type": "safe" + } + }, "UploadIdPMetadata": { "tag": "Organizations", "undo": { diff --git a/features/v2/user_flow.feature b/features/v2/user_flow.feature new file mode 100644 index 000000000000..6dca1f698760 --- /dev/null +++ b/features/v2/user_flow.feature @@ -0,0 +1,14 @@ +@endpoint(user-flow) @endpoint(user-flow-v2) +Feature: User Flow + API for user flow. + + @generated @skip @team:DataDog/product-analytics-backend + Scenario: Get rum sankey returns "Successful response with Sankey diagram data" response + Given a valid "apiKeyAuth" key in the system + And a valid "appKeyAuth" key in the system + And an instance of "UserFlow" API + And operation "GetRumSankey" enabled + And new "GetRumSankey" request + And body with value {"data": {"attributes": {"data_source": "", "definition": {"entries_per_step": 10, "number_of_steps": 5, "source": "@view.name", "target": "@view.name"}, "enforced_execution_type": "", "request_id": "", "sampling": {"enabled": true}, "search": {"audience_filters": {}, "query": "@type:view @application.id:*", "subquery_id": ""}, "time": {"from": 1756425600000, "to": 1756857600000}}, "id": "sankey_request", "type": "sankey_request"}} + When the request is sent + Then the response status is 200 Successful response with Sankey diagram data diff --git a/packages/datadog-api-client-common/configuration.ts b/packages/datadog-api-client-common/configuration.ts index e05c58891755..32455d9e7ebb 100644 --- a/packages/datadog-api-client-common/configuration.ts +++ b/packages/datadog-api-client-common/configuration.ts @@ -310,6 +310,14 @@ export function createConfiguration( "v2.listPipelines": false, "v2.updatePipeline": false, "v2.validatePipeline": false, + "v2.getRumCohort": false, + "v2.getRumCohortUsers": false, + "v2.getRumFunnel": false, + "v2.getRumFunnelStepSuggestions": false, + "v2.getRumSankey": false, + "v2.createRumSegment": false, + "v2.initializeRumSegments": false, + "v2.listRumSegments": false, "v2.createScorecardOutcomesBatch": false, "v2.createScorecardRule": false, "v2.deleteScorecardRule": false, diff --git a/packages/datadog-api-client-v2/apis/CohortApi.ts b/packages/datadog-api-client-v2/apis/CohortApi.ts new file mode 100644 index 000000000000..7f73d4a40583 --- /dev/null +++ b/packages/datadog-api-client-v2/apis/CohortApi.ts @@ -0,0 +1,294 @@ +import { + BaseAPIRequestFactory, + RequiredError, +} from "../../datadog-api-client-common/baseapi"; +import { Configuration } from "../../datadog-api-client-common/configuration"; +import { + RequestContext, + HttpMethod, + ResponseContext, +} from "../../datadog-api-client-common/http/http"; + +import { logger } from "../../../logger"; +import { ObjectSerializer } from "../models/ObjectSerializer"; +import { ApiException } from "../../datadog-api-client-common/exception"; + +import { APIErrorResponse } from "../models/APIErrorResponse"; +import { GetCohortRequest } from "../models/GetCohortRequest"; +import { GetCohortResponse } from "../models/GetCohortResponse"; +import { GetCohortUsersRequest } from "../models/GetCohortUsersRequest"; +import { GetCohortUsersResponse } from "../models/GetCohortUsersResponse"; + +export class CohortApiRequestFactory extends BaseAPIRequestFactory { + public async getRumCohort( + body: GetCohortRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + logger.warn("Using unstable operation 'getRumCohort'"); + if (!_config.unstableOperations["v2.getRumCohort"]) { + throw new Error("Unstable operation 'getRumCohort' is disabled"); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "getRumCohort"); + } + + // Path Params + const localVarPath = "/api/v2/rum/cohort"; + + // Make Request Context + const requestContext = _config + .getServer("v2.CohortApi.getRumCohort") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "GetCohortRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + return requestContext; + } + + public async getRumCohortUsers( + body: GetCohortUsersRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + logger.warn("Using unstable operation 'getRumCohortUsers'"); + if (!_config.unstableOperations["v2.getRumCohortUsers"]) { + throw new Error("Unstable operation 'getRumCohortUsers' is disabled"); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "getRumCohortUsers"); + } + + // Path Params + const localVarPath = "/api/v2/rum/cohort/users"; + + // Make Request Context + const requestContext = _config + .getServer("v2.CohortApi.getRumCohortUsers") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "GetCohortUsersRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + return requestContext; + } +} + +export class CohortApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getRumCohort + * @throws ApiException if the response code was not in [200, 299] + */ + public async getRumCohort( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: GetCohortResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "GetCohortResponse" + ) as GetCohortResponse; + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: GetCohortResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "GetCohortResponse", + "" + ) as GetCohortResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getRumCohortUsers + * @throws ApiException if the response code was not in [200, 299] + */ + public async getRumCohortUsers( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: GetCohortUsersResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "GetCohortUsersResponse" + ) as GetCohortUsersResponse; + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: GetCohortUsersResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "GetCohortUsersResponse", + "" + ) as GetCohortUsersResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } +} + +export interface CohortApiGetRumCohortRequest { + /** + * @type GetCohortRequest + */ + body: GetCohortRequest; +} + +export interface CohortApiGetRumCohortUsersRequest { + /** + * @type GetCohortUsersRequest + */ + body: GetCohortUsersRequest; +} + +export class CohortApi { + private requestFactory: CohortApiRequestFactory; + private responseProcessor: CohortApiResponseProcessor; + private configuration: Configuration; + + public constructor( + configuration: Configuration, + requestFactory?: CohortApiRequestFactory, + responseProcessor?: CohortApiResponseProcessor + ) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new CohortApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new CohortApiResponseProcessor(); + } + + /** + * Analyze user cohorts for retention and conversion analysis + * @param param The request object + */ + public getRumCohort( + param: CohortApiGetRumCohortRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.getRumCohort( + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getRumCohort(responseContext); + }); + }); + } + + /** + * Get users within a specific cohort for retention analysis + * @param param The request object + */ + public getRumCohortUsers( + param: CohortApiGetRumCohortUsersRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.getRumCohortUsers( + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getRumCohortUsers(responseContext); + }); + }); + } +} diff --git a/packages/datadog-api-client-v2/apis/FunnelApi.ts b/packages/datadog-api-client-v2/apis/FunnelApi.ts new file mode 100644 index 000000000000..402fb1ac6233 --- /dev/null +++ b/packages/datadog-api-client-v2/apis/FunnelApi.ts @@ -0,0 +1,296 @@ +import { + BaseAPIRequestFactory, + RequiredError, +} from "../../datadog-api-client-common/baseapi"; +import { Configuration } from "../../datadog-api-client-common/configuration"; +import { + RequestContext, + HttpMethod, + ResponseContext, +} from "../../datadog-api-client-common/http/http"; + +import { logger } from "../../../logger"; +import { ObjectSerializer } from "../models/ObjectSerializer"; +import { ApiException } from "../../datadog-api-client-common/exception"; + +import { APIErrorResponse } from "../models/APIErrorResponse"; +import { FunnelRequest } from "../models/FunnelRequest"; +import { FunnelResponse } from "../models/FunnelResponse"; +import { FunnelSuggestionRequest } from "../models/FunnelSuggestionRequest"; +import { FunnelSuggestionResponse } from "../models/FunnelSuggestionResponse"; + +export class FunnelApiRequestFactory extends BaseAPIRequestFactory { + public async getRumFunnel( + body: FunnelRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + logger.warn("Using unstable operation 'getRumFunnel'"); + if (!_config.unstableOperations["v2.getRumFunnel"]) { + throw new Error("Unstable operation 'getRumFunnel' is disabled"); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "getRumFunnel"); + } + + // Path Params + const localVarPath = "/api/v2/rum/funnel"; + + // Make Request Context + const requestContext = _config + .getServer("v2.FunnelApi.getRumFunnel") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "FunnelRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + return requestContext; + } + + public async getRumFunnelStepSuggestions( + body: FunnelSuggestionRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + logger.warn("Using unstable operation 'getRumFunnelStepSuggestions'"); + if (!_config.unstableOperations["v2.getRumFunnelStepSuggestions"]) { + throw new Error( + "Unstable operation 'getRumFunnelStepSuggestions' is disabled" + ); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "getRumFunnelStepSuggestions"); + } + + // Path Params + const localVarPath = "/api/v2/rum/funnel/new_step_suggestions"; + + // Make Request Context + const requestContext = _config + .getServer("v2.FunnelApi.getRumFunnelStepSuggestions") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "FunnelSuggestionRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + return requestContext; + } +} + +export class FunnelApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getRumFunnel + * @throws ApiException if the response code was not in [200, 299] + */ + public async getRumFunnel( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: FunnelResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "FunnelResponse" + ) as FunnelResponse; + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: FunnelResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "FunnelResponse", + "" + ) as FunnelResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getRumFunnelStepSuggestions + * @throws ApiException if the response code was not in [200, 299] + */ + public async getRumFunnelStepSuggestions( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: FunnelSuggestionResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "FunnelSuggestionResponse" + ) as FunnelSuggestionResponse; + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: FunnelSuggestionResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "FunnelSuggestionResponse", + "" + ) as FunnelSuggestionResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } +} + +export interface FunnelApiGetRumFunnelRequest { + /** + * @type FunnelRequest + */ + body: FunnelRequest; +} + +export interface FunnelApiGetRumFunnelStepSuggestionsRequest { + /** + * @type FunnelSuggestionRequest + */ + body: FunnelSuggestionRequest; +} + +export class FunnelApi { + private requestFactory: FunnelApiRequestFactory; + private responseProcessor: FunnelApiResponseProcessor; + private configuration: Configuration; + + public constructor( + configuration: Configuration, + requestFactory?: FunnelApiRequestFactory, + responseProcessor?: FunnelApiResponseProcessor + ) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new FunnelApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new FunnelApiResponseProcessor(); + } + + /** + * Analyze conversion funnels to understand user drop-off patterns + * @param param The request object + */ + public getRumFunnel( + param: FunnelApiGetRumFunnelRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.getRumFunnel( + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getRumFunnel(responseContext); + }); + }); + } + + /** + * Get suggested steps for building conversion funnels + * @param param The request object + */ + public getRumFunnelStepSuggestions( + param: FunnelApiGetRumFunnelStepSuggestionsRequest, + options?: Configuration + ): Promise { + const requestContextPromise = + this.requestFactory.getRumFunnelStepSuggestions(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getRumFunnelStepSuggestions( + responseContext + ); + }); + }); + } +} diff --git a/packages/datadog-api-client-v2/apis/SegmentsApi.ts b/packages/datadog-api-client-v2/apis/SegmentsApi.ts new file mode 100644 index 000000000000..a77550e282ba --- /dev/null +++ b/packages/datadog-api-client-v2/apis/SegmentsApi.ts @@ -0,0 +1,346 @@ +import { + BaseAPIRequestFactory, + RequiredError, +} from "../../datadog-api-client-common/baseapi"; +import { Configuration } from "../../datadog-api-client-common/configuration"; +import { + RequestContext, + HttpMethod, + ResponseContext, +} from "../../datadog-api-client-common/http/http"; + +import { logger } from "../../../logger"; +import { ObjectSerializer } from "../models/ObjectSerializer"; +import { ApiException } from "../../datadog-api-client-common/exception"; + +import { APIErrorResponse } from "../models/APIErrorResponse"; +import { Segment } from "../models/Segment"; +import { SegmentArray } from "../models/SegmentArray"; + +export class SegmentsApiRequestFactory extends BaseAPIRequestFactory { + public async createRumSegment( + body: Segment, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + logger.warn("Using unstable operation 'createRumSegment'"); + if (!_config.unstableOperations["v2.createRumSegment"]) { + throw new Error("Unstable operation 'createRumSegment' is disabled"); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "createRumSegment"); + } + + // Path Params + const localVarPath = "/api/v2/rum/segment"; + + // Make Request Context + const requestContext = _config + .getServer("v2.SegmentsApi.createRumSegment") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "Segment", ""), + contentType + ); + requestContext.setBody(serializedBody); + + return requestContext; + } + + public async initializeRumSegments( + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + logger.warn("Using unstable operation 'initializeRumSegments'"); + if (!_config.unstableOperations["v2.initializeRumSegments"]) { + throw new Error("Unstable operation 'initializeRumSegments' is disabled"); + } + + // Path Params + const localVarPath = "/api/v2/rum/segment/initialize"; + + // Make Request Context + const requestContext = _config + .getServer("v2.SegmentsApi.initializeRumSegments") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + + return requestContext; + } + + public async listRumSegments( + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + logger.warn("Using unstable operation 'listRumSegments'"); + if (!_config.unstableOperations["v2.listRumSegments"]) { + throw new Error("Unstable operation 'listRumSegments' is disabled"); + } + + // Path Params + const localVarPath = "/api/v2/rum/segment"; + + // Make Request Context + const requestContext = _config + .getServer("v2.SegmentsApi.listRumSegments") + .makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + return requestContext; + } +} + +export class SegmentsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createRumSegment + * @throws ApiException if the response code was not in [200, 299] + */ + public async createRumSegment(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 201) { + const body: Segment = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "Segment" + ) as Segment; + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: Segment = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "Segment", + "" + ) as Segment; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to initializeRumSegments + * @throws ApiException if the response code was not in [200, 299] + */ + public async initializeRumSegments(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + return; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + return; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listRumSegments + * @throws ApiException if the response code was not in [200, 299] + */ + public async listRumSegments( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: SegmentArray = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SegmentArray" + ) as SegmentArray; + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: SegmentArray = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SegmentArray", + "" + ) as SegmentArray; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } +} + +export interface SegmentsApiCreateRumSegmentRequest { + /** + * @type Segment + */ + body: Segment; +} + +export class SegmentsApi { + private requestFactory: SegmentsApiRequestFactory; + private responseProcessor: SegmentsApiResponseProcessor; + private configuration: Configuration; + + public constructor( + configuration: Configuration, + requestFactory?: SegmentsApiRequestFactory, + responseProcessor?: SegmentsApiResponseProcessor + ) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new SegmentsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new SegmentsApiResponseProcessor(); + } + + /** + * Create a new user segment for audience targeting + * @param param The request object + */ + public createRumSegment( + param: SegmentsApiCreateRumSegmentRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.createRumSegment( + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createRumSegment(responseContext); + }); + }); + } + + /** + * Initialize default segments for a new organization + * @param param The request object + */ + public initializeRumSegments(options?: Configuration): Promise { + const requestContextPromise = + this.requestFactory.initializeRumSegments(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.initializeRumSegments(responseContext); + }); + }); + } + + /** + * List all available user segments for audience targeting + * @param param The request object + */ + public listRumSegments(options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.listRumSegments(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listRumSegments(responseContext); + }); + }); + } +} diff --git a/packages/datadog-api-client-v2/apis/UserFlowApi.ts b/packages/datadog-api-client-v2/apis/UserFlowApi.ts new file mode 100644 index 000000000000..3320f84432c5 --- /dev/null +++ b/packages/datadog-api-client-v2/apis/UserFlowApi.ts @@ -0,0 +1,166 @@ +import { + BaseAPIRequestFactory, + RequiredError, +} from "../../datadog-api-client-common/baseapi"; +import { Configuration } from "../../datadog-api-client-common/configuration"; +import { + RequestContext, + HttpMethod, + ResponseContext, +} from "../../datadog-api-client-common/http/http"; + +import { logger } from "../../../logger"; +import { ObjectSerializer } from "../models/ObjectSerializer"; +import { ApiException } from "../../datadog-api-client-common/exception"; + +import { APIErrorResponse } from "../models/APIErrorResponse"; +import { SankeyRequest } from "../models/SankeyRequest"; +import { SankeyResponse } from "../models/SankeyResponse"; + +export class UserFlowApiRequestFactory extends BaseAPIRequestFactory { + public async getRumSankey( + body: SankeyRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + logger.warn("Using unstable operation 'getRumSankey'"); + if (!_config.unstableOperations["v2.getRumSankey"]) { + throw new Error("Unstable operation 'getRumSankey' is disabled"); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "getRumSankey"); + } + + // Path Params + const localVarPath = "/api/v2/rum/sankey"; + + // Make Request Context + const requestContext = _config + .getServer("v2.UserFlowApi.getRumSankey") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "SankeyRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + return requestContext; + } +} + +export class UserFlowApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getRumSankey + * @throws ApiException if the response code was not in [200, 299] + */ + public async getRumSankey( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: SankeyResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SankeyResponse" + ) as SankeyResponse; + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: SankeyResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SankeyResponse", + "" + ) as SankeyResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } +} + +export interface UserFlowApiGetRumSankeyRequest { + /** + * @type SankeyRequest + */ + body: SankeyRequest; +} + +export class UserFlowApi { + private requestFactory: UserFlowApiRequestFactory; + private responseProcessor: UserFlowApiResponseProcessor; + private configuration: Configuration; + + public constructor( + configuration: Configuration, + requestFactory?: UserFlowApiRequestFactory, + responseProcessor?: UserFlowApiResponseProcessor + ) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new UserFlowApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new UserFlowApiResponseProcessor(); + } + + /** + * Generate Sankey diagrams to visualize user flow paths and drop-off points + * @param param The request object + */ + public getRumSankey( + param: UserFlowApiGetRumSankeyRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.getRumSankey( + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getRumSankey(responseContext); + }); + }); + } +} diff --git a/packages/datadog-api-client-v2/index.ts b/packages/datadog-api-client-v2/index.ts index 2b88e0c902ed..2619941ec788 100644 --- a/packages/datadog-api-client-v2/index.ts +++ b/packages/datadog-api-client-v2/index.ts @@ -235,6 +235,12 @@ export { CloudflareIntegrationApi, } from "./apis/CloudflareIntegrationApi"; +export { + CohortApiGetRumCohortRequest, + CohortApiGetRumCohortUsersRequest, + CohortApi, +} from "./apis/CohortApi"; + export { ConfluentCloudApiCreateConfluentAccountRequest, ConfluentCloudApiCreateConfluentResourceRequest, @@ -347,6 +353,12 @@ export { FleetAutomationApi, } from "./apis/FleetAutomationApi"; +export { + FunnelApiGetRumFunnelRequest, + FunnelApiGetRumFunnelStepSuggestionsRequest, + FunnelApi, +} from "./apis/FunnelApi"; + export { GCPIntegrationApiCreateGCPSTSAccountRequest, GCPIntegrationApiDeleteGCPSTSAccountRequest, @@ -743,6 +755,11 @@ export { SecurityMonitoringApi, } from "./apis/SecurityMonitoringApi"; +export { + SegmentsApiCreateRumSegmentRequest, + SegmentsApi, +} from "./apis/SegmentsApi"; + export { SensitiveDataScannerApiCreateScanningGroupRequest, SensitiveDataScannerApiCreateScanningRuleRequest, @@ -873,6 +890,11 @@ export { UsageMeteringApi, } from "./apis/UsageMeteringApi"; +export { + UserFlowApiGetRumSankeyRequest, + UserFlowApi, +} from "./apis/UserFlowApi"; + export { UsersApiCreateUserRequest, UsersApiDisableUserRequest, @@ -2122,6 +2144,33 @@ export { FullApplicationKey } from "./models/FullApplicationKey"; export { FullApplicationKeyAttributes } from "./models/FullApplicationKeyAttributes"; export { FullCustomFrameworkData } from "./models/FullCustomFrameworkData"; export { FullCustomFrameworkDataAttributes } from "./models/FullCustomFrameworkDataAttributes"; +export { FunnelRequest } from "./models/FunnelRequest"; +export { FunnelRequestData } from "./models/FunnelRequestData"; +export { FunnelRequestDataAttributes } from "./models/FunnelRequestDataAttributes"; +export { FunnelRequestDataAttributesSearch } from "./models/FunnelRequestDataAttributesSearch"; +export { FunnelRequestDataAttributesSearchStepsItems } from "./models/FunnelRequestDataAttributesSearchStepsItems"; +export { FunnelRequestDataAttributesTime } from "./models/FunnelRequestDataAttributesTime"; +export { FunnelRequestDataType } from "./models/FunnelRequestDataType"; +export { FunnelResponse } from "./models/FunnelResponse"; +export { FunnelResponseData } from "./models/FunnelResponseData"; +export { FunnelResponseDataAttributes } from "./models/FunnelResponseDataAttributes"; +export { FunnelResponseDataAttributesFunnelStepsItems } from "./models/FunnelResponseDataAttributesFunnelStepsItems"; +export { FunnelResponseDataType } from "./models/FunnelResponseDataType"; +export { FunnelResponseElapsedTime } from "./models/FunnelResponseElapsedTime"; +export { FunnelSuggestionRequest } from "./models/FunnelSuggestionRequest"; +export { FunnelSuggestionRequestData } from "./models/FunnelSuggestionRequestData"; +export { FunnelSuggestionRequestDataAttributes } from "./models/FunnelSuggestionRequestDataAttributes"; +export { FunnelSuggestionRequestDataAttributesSearch } from "./models/FunnelSuggestionRequestDataAttributesSearch"; +export { FunnelSuggestionRequestDataAttributesSearchStepsItems } from "./models/FunnelSuggestionRequestDataAttributesSearchStepsItems"; +export { FunnelSuggestionRequestDataAttributesTermSearch } from "./models/FunnelSuggestionRequestDataAttributesTermSearch"; +export { FunnelSuggestionRequestDataAttributesTime } from "./models/FunnelSuggestionRequestDataAttributesTime"; +export { FunnelSuggestionRequestDataType } from "./models/FunnelSuggestionRequestDataType"; +export { FunnelSuggestionResponse } from "./models/FunnelSuggestionResponse"; +export { FunnelSuggestionResponseData } from "./models/FunnelSuggestionResponseData"; +export { FunnelSuggestionResponseDataAttributes } from "./models/FunnelSuggestionResponseDataAttributes"; +export { FunnelSuggestionResponseDataAttributesActionsItems } from "./models/FunnelSuggestionResponseDataAttributesActionsItems"; +export { FunnelSuggestionResponseDataAttributesViewsItems } from "./models/FunnelSuggestionResponseDataAttributesViewsItems"; +export { FunnelSuggestionResponseDataType } from "./models/FunnelSuggestionResponseDataType"; export { GCPCredentials } from "./models/GCPCredentials"; export { GCPCredentialsUpdate } from "./models/GCPCredentialsUpdate"; export { GCPIntegration } from "./models/GCPIntegration"; @@ -2186,6 +2235,37 @@ export { GetAppKeyRegistrationResponse } from "./models/GetAppKeyRegistrationRes export { GetAppResponse } from "./models/GetAppResponse"; export { GetAppResponseData } from "./models/GetAppResponseData"; export { GetAppResponseDataAttributes } from "./models/GetAppResponseDataAttributes"; +export { GetCohortRequest } from "./models/GetCohortRequest"; +export { GetCohortRequestData } from "./models/GetCohortRequestData"; +export { GetCohortRequestDataAttributes } from "./models/GetCohortRequestDataAttributes"; +export { GetCohortRequestDataAttributesDefinition } from "./models/GetCohortRequestDataAttributesDefinition"; +export { GetCohortRequestDataAttributesDefinitionAudienceFilters } from "./models/GetCohortRequestDataAttributesDefinitionAudienceFilters"; +export { GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems } from "./models/GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems"; +export { GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems } from "./models/GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems"; +export { GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems } from "./models/GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems"; +export { GetCohortRequestDataAttributesTime } from "./models/GetCohortRequestDataAttributesTime"; +export { GetCohortRequestDataType } from "./models/GetCohortRequestDataType"; +export { GetCohortResponse } from "./models/GetCohortResponse"; +export { GetCohortResponseData } from "./models/GetCohortResponseData"; +export { GetCohortResponseDataAttributes } from "./models/GetCohortResponseDataAttributes"; +export { GetCohortResponseDataAttributesCohortsItems } from "./models/GetCohortResponseDataAttributesCohortsItems"; +export { GetCohortResponseDataAttributesCohortsItemsValuesItems } from "./models/GetCohortResponseDataAttributesCohortsItemsValuesItems"; +export { GetCohortResponseDataType } from "./models/GetCohortResponseDataType"; +export { GetCohortUsersRequest } from "./models/GetCohortUsersRequest"; +export { GetCohortUsersRequestData } from "./models/GetCohortUsersRequestData"; +export { GetCohortUsersRequestDataAttributes } from "./models/GetCohortUsersRequestDataAttributes"; +export { GetCohortUsersRequestDataAttributesDefinition } from "./models/GetCohortUsersRequestDataAttributesDefinition"; +export { GetCohortUsersRequestDataAttributesDefinitionAudienceFilters } from "./models/GetCohortUsersRequestDataAttributesDefinitionAudienceFilters"; +export { GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems } from "./models/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems"; +export { GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems } from "./models/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems"; +export { GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems } from "./models/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems"; +export { GetCohortUsersRequestDataAttributesTime } from "./models/GetCohortUsersRequestDataAttributesTime"; +export { GetCohortUsersRequestDataType } from "./models/GetCohortUsersRequestDataType"; +export { GetCohortUsersResponse } from "./models/GetCohortUsersResponse"; +export { GetCohortUsersResponseData } from "./models/GetCohortUsersResponseData"; +export { GetCohortUsersResponseDataAttributes } from "./models/GetCohortUsersResponseDataAttributes"; +export { GetCohortUsersResponseDataAttributesUsersItems } from "./models/GetCohortUsersResponseDataAttributesUsersItems"; +export { GetCohortUsersResponseDataType } from "./models/GetCohortUsersResponseDataType"; export { GetCustomFrameworkResponse } from "./models/GetCustomFrameworkResponse"; export { GetDataDeletionsResponseBody } from "./models/GetDataDeletionsResponseBody"; export { GetDeviceAttributes } from "./models/GetDeviceAttributes"; @@ -3538,6 +3618,26 @@ export { RunThreatHuntingJobRequestDataType } from "./models/RunThreatHuntingJob export { SAMLAssertionAttribute } from "./models/SAMLAssertionAttribute"; export { SAMLAssertionAttributeAttributes } from "./models/SAMLAssertionAttributeAttributes"; export { SAMLAssertionAttributesType } from "./models/SAMLAssertionAttributesType"; +export { SankeyRequest } from "./models/SankeyRequest"; +export { SankeyRequestData } from "./models/SankeyRequestData"; +export { SankeyRequestDataAttributes } from "./models/SankeyRequestDataAttributes"; +export { SankeyRequestDataAttributesDefinition } from "./models/SankeyRequestDataAttributesDefinition"; +export { SankeyRequestDataAttributesSampling } from "./models/SankeyRequestDataAttributesSampling"; +export { SankeyRequestDataAttributesSearch } from "./models/SankeyRequestDataAttributesSearch"; +export { SankeyRequestDataAttributesSearchAudienceFilters } from "./models/SankeyRequestDataAttributesSearchAudienceFilters"; +export { SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems } from "./models/SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems"; +export { SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems } from "./models/SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems"; +export { SankeyRequestDataAttributesSearchAudienceFiltersUsersItems } from "./models/SankeyRequestDataAttributesSearchAudienceFiltersUsersItems"; +export { SankeyRequestDataAttributesSearchOccurrences } from "./models/SankeyRequestDataAttributesSearchOccurrences"; +export { SankeyRequestDataAttributesTime } from "./models/SankeyRequestDataAttributesTime"; +export { SankeyRequestDataType } from "./models/SankeyRequestDataType"; +export { SankeyResponse } from "./models/SankeyResponse"; +export { SankeyResponseData } from "./models/SankeyResponseData"; +export { SankeyResponseDataAttributes } from "./models/SankeyResponseDataAttributes"; +export { SankeyResponseDataAttributesLinksItems } from "./models/SankeyResponseDataAttributesLinksItems"; +export { SankeyResponseDataAttributesNodesItems } from "./models/SankeyResponseDataAttributesNodesItems"; +export { SankeyResponseDataAttributesNodesItemsAggregatedNodesItems } from "./models/SankeyResponseDataAttributesNodesItemsAggregatedNodesItems"; +export { SankeyResponseDataType } from "./models/SankeyResponseDataType"; export { SBOM } from "./models/SBOM"; export { SBOMAttributes } from "./models/SBOMAttributes"; export { SBOMComponent } from "./models/SBOMComponent"; @@ -3747,6 +3847,19 @@ export { SecurityMonitoringTriageUser } from "./models/SecurityMonitoringTriageU export { SecurityMonitoringUser } from "./models/SecurityMonitoringUser"; export { SecurityTrigger } from "./models/SecurityTrigger"; export { SecurityTriggerWrapper } from "./models/SecurityTriggerWrapper"; +export { Segment } from "./models/Segment"; +export { SegmentArray } from "./models/SegmentArray"; +export { SegmentData } from "./models/SegmentData"; +export { SegmentDataAttributes } from "./models/SegmentDataAttributes"; +export { SegmentDataAttributesDataQuery } from "./models/SegmentDataAttributesDataQuery"; +export { SegmentDataAttributesDataQueryEventPlatformItems } from "./models/SegmentDataAttributesDataQueryEventPlatformItems"; +export { SegmentDataAttributesDataQueryReferenceTableItems } from "./models/SegmentDataAttributesDataQueryReferenceTableItems"; +export { SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems } from "./models/SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems"; +export { SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition } from "./models/SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition"; +export { SegmentDataAttributesDataQueryStaticItems } from "./models/SegmentDataAttributesDataQueryStaticItems"; +export { SegmentDataAttributesDataQueryUserStoreItems } from "./models/SegmentDataAttributesDataQueryUserStoreItems"; +export { SegmentDataSource } from "./models/SegmentDataSource"; +export { SegmentDataType } from "./models/SegmentDataType"; export { Selectors } from "./models/Selectors"; export { SelfServiceTriggerWrapper } from "./models/SelfServiceTriggerWrapper"; export { SendSlackMessageAction } from "./models/SendSlackMessageAction"; diff --git a/packages/datadog-api-client-v2/models/FunnelRequest.ts b/packages/datadog-api-client-v2/models/FunnelRequest.ts new file mode 100644 index 000000000000..abd7ffab00b1 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelRequest.ts @@ -0,0 +1,47 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { FunnelRequestData } from "./FunnelRequestData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelRequest { + "data"?: FunnelRequestData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "FunnelRequestData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelRequestData.ts b/packages/datadog-api-client-v2/models/FunnelRequestData.ts new file mode 100644 index 000000000000..77a8dce555a1 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelRequestData.ts @@ -0,0 +1,59 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { FunnelRequestDataAttributes } from "./FunnelRequestDataAttributes"; +import { FunnelRequestDataType } from "./FunnelRequestDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelRequestData { + "attributes"?: FunnelRequestDataAttributes; + "id"?: string; + "type": FunnelRequestDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "FunnelRequestDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "FunnelRequestDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelRequestData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelRequestDataAttributes.ts b/packages/datadog-api-client-v2/models/FunnelRequestDataAttributes.ts new file mode 100644 index 000000000000..43127e954435 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelRequestDataAttributes.ts @@ -0,0 +1,68 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { FunnelRequestDataAttributesSearch } from "./FunnelRequestDataAttributesSearch"; +import { FunnelRequestDataAttributesTime } from "./FunnelRequestDataAttributesTime"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelRequestDataAttributes { + "dataSource"?: string; + "enforcedExecutionType"?: string; + "requestId"?: string; + "search"?: FunnelRequestDataAttributesSearch; + "time"?: FunnelRequestDataAttributesTime; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + dataSource: { + baseName: "data_source", + type: "string", + }, + enforcedExecutionType: { + baseName: "enforced_execution_type", + type: "string", + }, + requestId: { + baseName: "request_id", + type: "string", + }, + search: { + baseName: "search", + type: "FunnelRequestDataAttributesSearch", + }, + time: { + baseName: "time", + type: "FunnelRequestDataAttributesTime", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelRequestDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelRequestDataAttributesSearch.ts b/packages/datadog-api-client-v2/models/FunnelRequestDataAttributesSearch.ts new file mode 100644 index 000000000000..985b79b7df92 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelRequestDataAttributesSearch.ts @@ -0,0 +1,62 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { FunnelRequestDataAttributesSearchStepsItems } from "./FunnelRequestDataAttributesSearchStepsItems"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelRequestDataAttributesSearch { + "crossSessionFilter"?: string; + "queryString"?: string; + "steps"?: Array; + "subqueryId"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + crossSessionFilter: { + baseName: "cross_session_filter", + type: "string", + }, + queryString: { + baseName: "query_string", + type: "string", + }, + steps: { + baseName: "steps", + type: "Array", + }, + subqueryId: { + baseName: "subquery_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelRequestDataAttributesSearch.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelRequestDataAttributesSearchStepsItems.ts b/packages/datadog-api-client-v2/models/FunnelRequestDataAttributesSearchStepsItems.ts new file mode 100644 index 000000000000..fced72685a0a --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelRequestDataAttributesSearchStepsItems.ts @@ -0,0 +1,56 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelRequestDataAttributesSearchStepsItems { + "facet"?: string; + "stepFilter"?: string; + "value"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + facet: { + baseName: "facet", + type: "string", + }, + stepFilter: { + baseName: "step_filter", + type: "string", + }, + value: { + baseName: "value", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelRequestDataAttributesSearchStepsItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelRequestDataAttributesTime.ts b/packages/datadog-api-client-v2/models/FunnelRequestDataAttributesTime.ts new file mode 100644 index 000000000000..2b2c4eb2ec7e --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelRequestDataAttributesTime.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelRequestDataAttributesTime { + "from"?: number; + "to"?: number; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + from: { + baseName: "from", + type: "number", + format: "int64", + }, + to: { + baseName: "to", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelRequestDataAttributesTime.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelRequestDataType.ts b/packages/datadog-api-client-v2/models/FunnelRequestDataType.ts new file mode 100644 index 000000000000..8635a953d66b --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelRequestDataType.ts @@ -0,0 +1,10 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +export type FunnelRequestDataType = typeof FUNNEL_REQUEST | UnparsedObject; +export const FUNNEL_REQUEST = "funnel_request"; diff --git a/packages/datadog-api-client-v2/models/FunnelResponse.ts b/packages/datadog-api-client-v2/models/FunnelResponse.ts new file mode 100644 index 000000000000..1ef12e1935ff --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelResponse.ts @@ -0,0 +1,47 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { FunnelResponseData } from "./FunnelResponseData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelResponse { + "data"?: FunnelResponseData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "FunnelResponseData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelResponse.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelResponseData.ts b/packages/datadog-api-client-v2/models/FunnelResponseData.ts new file mode 100644 index 000000000000..8668b726ae8a --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelResponseData.ts @@ -0,0 +1,59 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { FunnelResponseDataAttributes } from "./FunnelResponseDataAttributes"; +import { FunnelResponseDataType } from "./FunnelResponseDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelResponseData { + "attributes"?: FunnelResponseDataAttributes; + "id"?: string; + "type": FunnelResponseDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "FunnelResponseDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "FunnelResponseDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelResponseData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelResponseDataAttributes.ts b/packages/datadog-api-client-v2/models/FunnelResponseDataAttributes.ts new file mode 100644 index 000000000000..4e96d0762bf6 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelResponseDataAttributes.ts @@ -0,0 +1,65 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { FunnelResponseDataAttributesFunnelStepsItems } from "./FunnelResponseDataAttributesFunnelStepsItems"; +import { FunnelResponseElapsedTime } from "./FunnelResponseElapsedTime"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelResponseDataAttributes { + "endToEndConversionRate"?: number; + "endToEndElapsedTime"?: FunnelResponseElapsedTime; + "funnelSteps"?: Array; + "initialCount"?: number; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + endToEndConversionRate: { + baseName: "end_to_end_conversion_rate", + type: "number", + format: "double", + }, + endToEndElapsedTime: { + baseName: "end_to_end_elapsed_time", + type: "FunnelResponseElapsedTime", + }, + funnelSteps: { + baseName: "funnel_steps", + type: "Array", + }, + initialCount: { + baseName: "initial_count", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelResponseDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelResponseDataAttributesFunnelStepsItems.ts b/packages/datadog-api-client-v2/models/FunnelResponseDataAttributesFunnelStepsItems.ts new file mode 100644 index 000000000000..0a454da5909c --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelResponseDataAttributesFunnelStepsItems.ts @@ -0,0 +1,58 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { FunnelResponseElapsedTime } from "./FunnelResponseElapsedTime"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelResponseDataAttributesFunnelStepsItems { + "elapsedTimeToNextStep"?: FunnelResponseElapsedTime; + "label"?: string; + "value"?: number; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + elapsedTimeToNextStep: { + baseName: "elapsed_time_to_next_step", + type: "FunnelResponseElapsedTime", + }, + label: { + baseName: "label", + type: "string", + }, + value: { + baseName: "value", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelResponseDataAttributesFunnelStepsItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelResponseDataType.ts b/packages/datadog-api-client-v2/models/FunnelResponseDataType.ts new file mode 100644 index 000000000000..31860318ff34 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelResponseDataType.ts @@ -0,0 +1,10 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +export type FunnelResponseDataType = typeof FUNNEL_RESPONSE | UnparsedObject; +export const FUNNEL_RESPONSE = "funnel_response"; diff --git a/packages/datadog-api-client-v2/models/FunnelResponseElapsedTime.ts b/packages/datadog-api-client-v2/models/FunnelResponseElapsedTime.ts new file mode 100644 index 000000000000..68d1a71d2557 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelResponseElapsedTime.ts @@ -0,0 +1,77 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelResponseElapsedTime { + "avg"?: number; + "max"?: number; + "min"?: number; + "p5"?: number; + "p50"?: number; + "p95"?: number; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + avg: { + baseName: "avg", + type: "number", + format: "int64", + }, + max: { + baseName: "max", + type: "number", + format: "int64", + }, + min: { + baseName: "min", + type: "number", + format: "int64", + }, + p5: { + baseName: "p5", + type: "number", + format: "int64", + }, + p50: { + baseName: "p50", + type: "number", + format: "int64", + }, + p95: { + baseName: "p95", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelResponseElapsedTime.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelSuggestionRequest.ts b/packages/datadog-api-client-v2/models/FunnelSuggestionRequest.ts new file mode 100644 index 000000000000..4680003e70b4 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelSuggestionRequest.ts @@ -0,0 +1,47 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { FunnelSuggestionRequestData } from "./FunnelSuggestionRequestData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelSuggestionRequest { + "data"?: FunnelSuggestionRequestData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "FunnelSuggestionRequestData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelSuggestionRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelSuggestionRequestData.ts b/packages/datadog-api-client-v2/models/FunnelSuggestionRequestData.ts new file mode 100644 index 000000000000..62d49eb23a68 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelSuggestionRequestData.ts @@ -0,0 +1,59 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { FunnelSuggestionRequestDataAttributes } from "./FunnelSuggestionRequestDataAttributes"; +import { FunnelSuggestionRequestDataType } from "./FunnelSuggestionRequestDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelSuggestionRequestData { + "attributes"?: FunnelSuggestionRequestDataAttributes; + "id"?: string; + "type": FunnelSuggestionRequestDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "FunnelSuggestionRequestDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "FunnelSuggestionRequestDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelSuggestionRequestData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributes.ts b/packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributes.ts new file mode 100644 index 000000000000..1889d0e849c4 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributes.ts @@ -0,0 +1,64 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { FunnelSuggestionRequestDataAttributesSearch } from "./FunnelSuggestionRequestDataAttributesSearch"; +import { FunnelSuggestionRequestDataAttributesTermSearch } from "./FunnelSuggestionRequestDataAttributesTermSearch"; +import { FunnelSuggestionRequestDataAttributesTime } from "./FunnelSuggestionRequestDataAttributesTime"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelSuggestionRequestDataAttributes { + "dataSource"?: string; + "search"?: FunnelSuggestionRequestDataAttributesSearch; + "termSearch"?: FunnelSuggestionRequestDataAttributesTermSearch; + "time"?: FunnelSuggestionRequestDataAttributesTime; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + dataSource: { + baseName: "data_source", + type: "string", + }, + search: { + baseName: "search", + type: "FunnelSuggestionRequestDataAttributesSearch", + }, + termSearch: { + baseName: "term_search", + type: "FunnelSuggestionRequestDataAttributesTermSearch", + }, + time: { + baseName: "time", + type: "FunnelSuggestionRequestDataAttributesTime", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelSuggestionRequestDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributesSearch.ts b/packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributesSearch.ts new file mode 100644 index 000000000000..e125bf8d5137 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributesSearch.ts @@ -0,0 +1,62 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { FunnelSuggestionRequestDataAttributesSearchStepsItems } from "./FunnelSuggestionRequestDataAttributesSearchStepsItems"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelSuggestionRequestDataAttributesSearch { + "crossSessionFilter"?: string; + "queryString"?: string; + "steps"?: Array; + "subqueryId"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + crossSessionFilter: { + baseName: "cross_session_filter", + type: "string", + }, + queryString: { + baseName: "query_string", + type: "string", + }, + steps: { + baseName: "steps", + type: "Array", + }, + subqueryId: { + baseName: "subquery_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelSuggestionRequestDataAttributesSearch.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributesSearchStepsItems.ts b/packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributesSearchStepsItems.ts new file mode 100644 index 000000000000..3af3ac145013 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributesSearchStepsItems.ts @@ -0,0 +1,56 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelSuggestionRequestDataAttributesSearchStepsItems { + "facet"?: string; + "stepFilter"?: string; + "value"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + facet: { + baseName: "facet", + type: "string", + }, + stepFilter: { + baseName: "step_filter", + type: "string", + }, + value: { + baseName: "value", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelSuggestionRequestDataAttributesSearchStepsItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributesTermSearch.ts b/packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributesTermSearch.ts new file mode 100644 index 000000000000..bb4bf8e48588 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributesTermSearch.ts @@ -0,0 +1,46 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelSuggestionRequestDataAttributesTermSearch { + "query"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + query: { + baseName: "query", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelSuggestionRequestDataAttributesTermSearch.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributesTime.ts b/packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributesTime.ts new file mode 100644 index 000000000000..0cf575ae8c85 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataAttributesTime.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelSuggestionRequestDataAttributesTime { + "from"?: number; + "to"?: number; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + from: { + baseName: "from", + type: "number", + format: "int64", + }, + to: { + baseName: "to", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelSuggestionRequestDataAttributesTime.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataType.ts b/packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataType.ts new file mode 100644 index 000000000000..9fdbed0416aa --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelSuggestionRequestDataType.ts @@ -0,0 +1,12 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +export type FunnelSuggestionRequestDataType = + | typeof FUNNEL_SUGGESTION_REQUEST + | UnparsedObject; +export const FUNNEL_SUGGESTION_REQUEST = "funnel_suggestion_request"; diff --git a/packages/datadog-api-client-v2/models/FunnelSuggestionResponse.ts b/packages/datadog-api-client-v2/models/FunnelSuggestionResponse.ts new file mode 100644 index 000000000000..ba7693ae1f82 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelSuggestionResponse.ts @@ -0,0 +1,47 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { FunnelSuggestionResponseData } from "./FunnelSuggestionResponseData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelSuggestionResponse { + "data"?: FunnelSuggestionResponseData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "FunnelSuggestionResponseData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelSuggestionResponse.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelSuggestionResponseData.ts b/packages/datadog-api-client-v2/models/FunnelSuggestionResponseData.ts new file mode 100644 index 000000000000..05777556203e --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelSuggestionResponseData.ts @@ -0,0 +1,59 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { FunnelSuggestionResponseDataAttributes } from "./FunnelSuggestionResponseDataAttributes"; +import { FunnelSuggestionResponseDataType } from "./FunnelSuggestionResponseDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelSuggestionResponseData { + "attributes"?: FunnelSuggestionResponseDataAttributes; + "id"?: string; + "type": FunnelSuggestionResponseDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "FunnelSuggestionResponseDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "FunnelSuggestionResponseDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelSuggestionResponseData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelSuggestionResponseDataAttributes.ts b/packages/datadog-api-client-v2/models/FunnelSuggestionResponseDataAttributes.ts new file mode 100644 index 000000000000..9dbf359683dd --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelSuggestionResponseDataAttributes.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { FunnelSuggestionResponseDataAttributesActionsItems } from "./FunnelSuggestionResponseDataAttributesActionsItems"; +import { FunnelSuggestionResponseDataAttributesViewsItems } from "./FunnelSuggestionResponseDataAttributesViewsItems"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelSuggestionResponseDataAttributes { + "actions"?: Array; + "views"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + actions: { + baseName: "actions", + type: "Array", + }, + views: { + baseName: "views", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelSuggestionResponseDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelSuggestionResponseDataAttributesActionsItems.ts b/packages/datadog-api-client-v2/models/FunnelSuggestionResponseDataAttributesActionsItems.ts new file mode 100644 index 000000000000..594e3998b210 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelSuggestionResponseDataAttributesActionsItems.ts @@ -0,0 +1,46 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelSuggestionResponseDataAttributesActionsItems { + "name"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelSuggestionResponseDataAttributesActionsItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelSuggestionResponseDataAttributesViewsItems.ts b/packages/datadog-api-client-v2/models/FunnelSuggestionResponseDataAttributesViewsItems.ts new file mode 100644 index 000000000000..f96e13790469 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelSuggestionResponseDataAttributesViewsItems.ts @@ -0,0 +1,46 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class FunnelSuggestionResponseDataAttributesViewsItems { + "name"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FunnelSuggestionResponseDataAttributesViewsItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FunnelSuggestionResponseDataType.ts b/packages/datadog-api-client-v2/models/FunnelSuggestionResponseDataType.ts new file mode 100644 index 000000000000..e10d9623abf4 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FunnelSuggestionResponseDataType.ts @@ -0,0 +1,12 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +export type FunnelSuggestionResponseDataType = + | typeof FUNNEL_SUGGESTION_RESPONSE + | UnparsedObject; +export const FUNNEL_SUGGESTION_RESPONSE = "funnel_suggestion_response"; diff --git a/packages/datadog-api-client-v2/models/GetCohortRequest.ts b/packages/datadog-api-client-v2/models/GetCohortRequest.ts new file mode 100644 index 000000000000..04b47adfa37e --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortRequest.ts @@ -0,0 +1,47 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { GetCohortRequestData } from "./GetCohortRequestData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortRequest { + "data"?: GetCohortRequestData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "GetCohortRequestData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortRequestData.ts b/packages/datadog-api-client-v2/models/GetCohortRequestData.ts new file mode 100644 index 000000000000..0e0e2b4071a4 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortRequestData.ts @@ -0,0 +1,59 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { GetCohortRequestDataAttributes } from "./GetCohortRequestDataAttributes"; +import { GetCohortRequestDataType } from "./GetCohortRequestDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortRequestData { + "attributes"?: GetCohortRequestDataAttributes; + "id"?: string; + "type": GetCohortRequestDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "GetCohortRequestDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "GetCohortRequestDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortRequestData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributes.ts b/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributes.ts new file mode 100644 index 000000000000..8c043d136861 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributes.ts @@ -0,0 +1,73 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { GetCohortRequestDataAttributesDefinition } from "./GetCohortRequestDataAttributesDefinition"; +import { GetCohortRequestDataAttributesTime } from "./GetCohortRequestDataAttributesTime"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortRequestDataAttributes { + "dataSource"?: string; + "definition"?: GetCohortRequestDataAttributesDefinition; + "enforcedExecutionType"?: string; + "requestId"?: string; + "time"?: GetCohortRequestDataAttributesTime; + "windowSize"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + dataSource: { + baseName: "data_source", + type: "string", + }, + definition: { + baseName: "definition", + type: "GetCohortRequestDataAttributesDefinition", + }, + enforcedExecutionType: { + baseName: "enforced_execution_type", + type: "string", + }, + requestId: { + baseName: "request_id", + type: "string", + }, + time: { + baseName: "time", + type: "GetCohortRequestDataAttributesTime", + }, + windowSize: { + baseName: "window_size", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortRequestDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinition.ts b/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinition.ts new file mode 100644 index 000000000000..ad48ab051c63 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinition.ts @@ -0,0 +1,62 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { GetCohortRequestDataAttributesDefinitionAudienceFilters } from "./GetCohortRequestDataAttributesDefinitionAudienceFilters"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortRequestDataAttributesDefinition { + "audienceFilters"?: GetCohortRequestDataAttributesDefinitionAudienceFilters; + "inclusionSearch"?: string; + "returnSearch"?: string; + "segmentId"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + audienceFilters: { + baseName: "audience_filters", + type: "GetCohortRequestDataAttributesDefinitionAudienceFilters", + }, + inclusionSearch: { + baseName: "inclusion_search", + type: "string", + }, + returnSearch: { + baseName: "return_search", + type: "string", + }, + segmentId: { + baseName: "segment_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortRequestDataAttributesDefinition.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinitionAudienceFilters.ts b/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinitionAudienceFilters.ts new file mode 100644 index 000000000000..5b12f7c1ecd2 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinitionAudienceFilters.ts @@ -0,0 +1,64 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems } from "./GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems"; +import { GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems } from "./GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems"; +import { GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems } from "./GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortRequestDataAttributesDefinitionAudienceFilters { + "accounts"?: Array; + "formula"?: string; + "segments"?: Array; + "users"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + accounts: { + baseName: "accounts", + type: "Array", + }, + formula: { + baseName: "formula", + type: "string", + }, + segments: { + baseName: "segments", + type: "Array", + }, + users: { + baseName: "users", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortRequestDataAttributesDefinitionAudienceFilters.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems.ts b/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems.ts new file mode 100644 index 000000000000..cec62b55b1dd --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems.ts @@ -0,0 +1,52 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems { + "name": string; + "query"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + name: { + baseName: "name", + type: "string", + required: true, + }, + query: { + baseName: "query", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.ts b/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.ts new file mode 100644 index 000000000000..d0f12272367b --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems { + "name": string; + "segmentId": string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + name: { + baseName: "name", + type: "string", + required: true, + }, + segmentId: { + baseName: "segment_id", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems.ts b/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems.ts new file mode 100644 index 000000000000..b9ba26f9c660 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems.ts @@ -0,0 +1,52 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems { + "name": string; + "query"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + name: { + baseName: "name", + type: "string", + required: true, + }, + query: { + baseName: "query", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesTime.ts b/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesTime.ts new file mode 100644 index 000000000000..ad46825aaf2e --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortRequestDataAttributesTime.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortRequestDataAttributesTime { + "from"?: number; + "to"?: number; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + from: { + baseName: "from", + type: "number", + format: "int64", + }, + to: { + baseName: "to", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortRequestDataAttributesTime.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortRequestDataType.ts b/packages/datadog-api-client-v2/models/GetCohortRequestDataType.ts new file mode 100644 index 000000000000..7177b342bcc0 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortRequestDataType.ts @@ -0,0 +1,10 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +export type GetCohortRequestDataType = typeof COHORT_REQUEST | UnparsedObject; +export const COHORT_REQUEST = "cohort_request"; diff --git a/packages/datadog-api-client-v2/models/GetCohortResponse.ts b/packages/datadog-api-client-v2/models/GetCohortResponse.ts new file mode 100644 index 000000000000..d8ea915101ac --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortResponse.ts @@ -0,0 +1,47 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { GetCohortResponseData } from "./GetCohortResponseData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortResponse { + "data"?: GetCohortResponseData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "GetCohortResponseData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortResponse.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortResponseData.ts b/packages/datadog-api-client-v2/models/GetCohortResponseData.ts new file mode 100644 index 000000000000..dc3f8d5b8476 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortResponseData.ts @@ -0,0 +1,59 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { GetCohortResponseDataAttributes } from "./GetCohortResponseDataAttributes"; +import { GetCohortResponseDataType } from "./GetCohortResponseDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortResponseData { + "attributes"?: GetCohortResponseDataAttributes; + "id"?: string; + "type": GetCohortResponseDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "GetCohortResponseDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "GetCohortResponseDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortResponseData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortResponseDataAttributes.ts b/packages/datadog-api-client-v2/models/GetCohortResponseDataAttributes.ts new file mode 100644 index 000000000000..64b20e6e4521 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortResponseDataAttributes.ts @@ -0,0 +1,47 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { GetCohortResponseDataAttributesCohortsItems } from "./GetCohortResponseDataAttributesCohortsItems"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortResponseDataAttributes { + "cohorts"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + cohorts: { + baseName: "cohorts", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortResponseDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortResponseDataAttributesCohortsItems.ts b/packages/datadog-api-client-v2/models/GetCohortResponseDataAttributesCohortsItems.ts new file mode 100644 index 000000000000..3440e0a5c2c9 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortResponseDataAttributesCohortsItems.ts @@ -0,0 +1,64 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { GetCohortResponseDataAttributesCohortsItemsValuesItems } from "./GetCohortResponseDataAttributesCohortsItemsValuesItems"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortResponseDataAttributesCohortsItems { + "cohort"?: string; + "cohortSize"?: number; + "startTime"?: number; + "values"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + cohort: { + baseName: "cohort", + type: "string", + }, + cohortSize: { + baseName: "cohort_size", + type: "number", + format: "int64", + }, + startTime: { + baseName: "start_time", + type: "number", + format: "int64", + }, + values: { + baseName: "values", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortResponseDataAttributesCohortsItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortResponseDataAttributesCohortsItemsValuesItems.ts b/packages/datadog-api-client-v2/models/GetCohortResponseDataAttributesCohortsItemsValuesItems.ts new file mode 100644 index 000000000000..d7aed0285659 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortResponseDataAttributesCohortsItemsValuesItems.ts @@ -0,0 +1,71 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortResponseDataAttributesCohortsItemsValuesItems { + "absoluteValue"?: number; + "endTime"?: number; + "relativeValue"?: number; + "startTime"?: number; + "window"?: number; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + absoluteValue: { + baseName: "absolute_value", + type: "number", + format: "int64", + }, + endTime: { + baseName: "end_time", + type: "number", + format: "int64", + }, + relativeValue: { + baseName: "relative_value", + type: "number", + format: "double", + }, + startTime: { + baseName: "start_time", + type: "number", + format: "int64", + }, + window: { + baseName: "window", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortResponseDataAttributesCohortsItemsValuesItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortResponseDataType.ts b/packages/datadog-api-client-v2/models/GetCohortResponseDataType.ts new file mode 100644 index 000000000000..41d89eb59c86 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortResponseDataType.ts @@ -0,0 +1,10 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +export type GetCohortResponseDataType = typeof COHORT_RESPONSE | UnparsedObject; +export const COHORT_RESPONSE = "cohort_response"; diff --git a/packages/datadog-api-client-v2/models/GetCohortUsersRequest.ts b/packages/datadog-api-client-v2/models/GetCohortUsersRequest.ts new file mode 100644 index 000000000000..d55c9f9e4aa7 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortUsersRequest.ts @@ -0,0 +1,47 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { GetCohortUsersRequestData } from "./GetCohortUsersRequestData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortUsersRequest { + "data"?: GetCohortUsersRequestData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "GetCohortUsersRequestData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortUsersRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortUsersRequestData.ts b/packages/datadog-api-client-v2/models/GetCohortUsersRequestData.ts new file mode 100644 index 000000000000..d48fcaeb5597 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortUsersRequestData.ts @@ -0,0 +1,59 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { GetCohortUsersRequestDataAttributes } from "./GetCohortUsersRequestDataAttributes"; +import { GetCohortUsersRequestDataType } from "./GetCohortUsersRequestDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortUsersRequestData { + "attributes"?: GetCohortUsersRequestDataAttributes; + "id"?: string; + "type": GetCohortUsersRequestDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "GetCohortUsersRequestDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "GetCohortUsersRequestDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortUsersRequestData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributes.ts b/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributes.ts new file mode 100644 index 000000000000..dd608d57d912 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributes.ts @@ -0,0 +1,74 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { GetCohortUsersRequestDataAttributesDefinition } from "./GetCohortUsersRequestDataAttributesDefinition"; +import { GetCohortUsersRequestDataAttributesTime } from "./GetCohortUsersRequestDataAttributesTime"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortUsersRequestDataAttributes { + "dataSource"?: string; + "definition"?: GetCohortUsersRequestDataAttributesDefinition; + "execution"?: number; + "time"?: GetCohortUsersRequestDataAttributesTime; + "userSelection"?: string; + "windowSize"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + dataSource: { + baseName: "data_source", + type: "string", + }, + definition: { + baseName: "definition", + type: "GetCohortUsersRequestDataAttributesDefinition", + }, + execution: { + baseName: "execution", + type: "number", + format: "int64", + }, + time: { + baseName: "time", + type: "GetCohortUsersRequestDataAttributesTime", + }, + userSelection: { + baseName: "user_selection", + type: "string", + }, + windowSize: { + baseName: "window_size", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortUsersRequestDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinition.ts b/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinition.ts new file mode 100644 index 000000000000..ffbca4522032 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinition.ts @@ -0,0 +1,73 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { GetCohortUsersRequestDataAttributesDefinitionAudienceFilters } from "./GetCohortUsersRequestDataAttributesDefinitionAudienceFilters"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortUsersRequestDataAttributesDefinition { + "audienceFilters"?: GetCohortUsersRequestDataAttributesDefinitionAudienceFilters; + "cohort"?: string; + "inclusionSearch"?: string; + "returnSearch"?: string; + "segmentId"?: string; + "window"?: number; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + audienceFilters: { + baseName: "audience_filters", + type: "GetCohortUsersRequestDataAttributesDefinitionAudienceFilters", + }, + cohort: { + baseName: "cohort", + type: "string", + }, + inclusionSearch: { + baseName: "inclusion_search", + type: "string", + }, + returnSearch: { + baseName: "return_search", + type: "string", + }, + segmentId: { + baseName: "segment_id", + type: "string", + }, + window: { + baseName: "window", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortUsersRequestDataAttributesDefinition.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinitionAudienceFilters.ts b/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinitionAudienceFilters.ts new file mode 100644 index 000000000000..1f5f80361e24 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinitionAudienceFilters.ts @@ -0,0 +1,64 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems } from "./GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems"; +import { GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems } from "./GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems"; +import { GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems } from "./GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortUsersRequestDataAttributesDefinitionAudienceFilters { + "accounts"?: Array; + "formula"?: string; + "segments"?: Array; + "users"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + accounts: { + baseName: "accounts", + type: "Array", + }, + formula: { + baseName: "formula", + type: "string", + }, + segments: { + baseName: "segments", + type: "Array", + }, + users: { + baseName: "users", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortUsersRequestDataAttributesDefinitionAudienceFilters.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems.ts b/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems.ts new file mode 100644 index 000000000000..049ca52da97f --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems.ts @@ -0,0 +1,52 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems { + "name": string; + "query"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + name: { + baseName: "name", + type: "string", + required: true, + }, + query: { + baseName: "query", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.ts b/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.ts new file mode 100644 index 000000000000..c86ea3890bb5 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems { + "name": string; + "segmentId": string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + name: { + baseName: "name", + type: "string", + required: true, + }, + segmentId: { + baseName: "segment_id", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems.ts b/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems.ts new file mode 100644 index 000000000000..c1e345b17756 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems.ts @@ -0,0 +1,52 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems { + "name": string; + "query"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + name: { + baseName: "name", + type: "string", + required: true, + }, + query: { + baseName: "query", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesTime.ts b/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesTime.ts new file mode 100644 index 000000000000..f4235ec5a752 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataAttributesTime.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortUsersRequestDataAttributesTime { + "from"?: number; + "to"?: number; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + from: { + baseName: "from", + type: "number", + format: "int64", + }, + to: { + baseName: "to", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortUsersRequestDataAttributesTime.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataType.ts b/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataType.ts new file mode 100644 index 000000000000..1aa74587d596 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortUsersRequestDataType.ts @@ -0,0 +1,12 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +export type GetCohortUsersRequestDataType = + | typeof COHORT_USERS_REQUEST + | UnparsedObject; +export const COHORT_USERS_REQUEST = "cohort_users_request"; diff --git a/packages/datadog-api-client-v2/models/GetCohortUsersResponse.ts b/packages/datadog-api-client-v2/models/GetCohortUsersResponse.ts new file mode 100644 index 000000000000..ecb9732012f1 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortUsersResponse.ts @@ -0,0 +1,47 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { GetCohortUsersResponseData } from "./GetCohortUsersResponseData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortUsersResponse { + "data"?: GetCohortUsersResponseData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "GetCohortUsersResponseData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortUsersResponse.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortUsersResponseData.ts b/packages/datadog-api-client-v2/models/GetCohortUsersResponseData.ts new file mode 100644 index 000000000000..58077ae4a641 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortUsersResponseData.ts @@ -0,0 +1,59 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { GetCohortUsersResponseDataAttributes } from "./GetCohortUsersResponseDataAttributes"; +import { GetCohortUsersResponseDataType } from "./GetCohortUsersResponseDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortUsersResponseData { + "attributes"?: GetCohortUsersResponseDataAttributes; + "id"?: string; + "type": GetCohortUsersResponseDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "GetCohortUsersResponseDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "GetCohortUsersResponseDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortUsersResponseData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortUsersResponseDataAttributes.ts b/packages/datadog-api-client-v2/models/GetCohortUsersResponseDataAttributes.ts new file mode 100644 index 000000000000..12dc0dd49b58 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortUsersResponseDataAttributes.ts @@ -0,0 +1,47 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { GetCohortUsersResponseDataAttributesUsersItems } from "./GetCohortUsersResponseDataAttributesUsersItems"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortUsersResponseDataAttributes { + "users"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + users: { + baseName: "users", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortUsersResponseDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortUsersResponseDataAttributesUsersItems.ts b/packages/datadog-api-client-v2/models/GetCohortUsersResponseDataAttributesUsersItems.ts new file mode 100644 index 000000000000..6a99375d34d0 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortUsersResponseDataAttributesUsersItems.ts @@ -0,0 +1,56 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class GetCohortUsersResponseDataAttributesUsersItems { + "email"?: string; + "id"?: string; + "name"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + email: { + baseName: "email", + type: "string", + }, + id: { + baseName: "id", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GetCohortUsersResponseDataAttributesUsersItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/GetCohortUsersResponseDataType.ts b/packages/datadog-api-client-v2/models/GetCohortUsersResponseDataType.ts new file mode 100644 index 000000000000..179b82ee99b5 --- /dev/null +++ b/packages/datadog-api-client-v2/models/GetCohortUsersResponseDataType.ts @@ -0,0 +1,12 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +export type GetCohortUsersResponseDataType = + | typeof COHORT_USERS_RESPONSE + | UnparsedObject; +export const COHORT_USERS_RESPONSE = "cohort_users_response"; diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index 7feb98ff88f6..8f30e449483a 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -923,6 +923,29 @@ import { FullApplicationKey } from "./FullApplicationKey"; import { FullApplicationKeyAttributes } from "./FullApplicationKeyAttributes"; import { FullCustomFrameworkData } from "./FullCustomFrameworkData"; import { FullCustomFrameworkDataAttributes } from "./FullCustomFrameworkDataAttributes"; +import { FunnelRequest } from "./FunnelRequest"; +import { FunnelRequestData } from "./FunnelRequestData"; +import { FunnelRequestDataAttributes } from "./FunnelRequestDataAttributes"; +import { FunnelRequestDataAttributesSearch } from "./FunnelRequestDataAttributesSearch"; +import { FunnelRequestDataAttributesSearchStepsItems } from "./FunnelRequestDataAttributesSearchStepsItems"; +import { FunnelRequestDataAttributesTime } from "./FunnelRequestDataAttributesTime"; +import { FunnelResponse } from "./FunnelResponse"; +import { FunnelResponseData } from "./FunnelResponseData"; +import { FunnelResponseDataAttributes } from "./FunnelResponseDataAttributes"; +import { FunnelResponseDataAttributesFunnelStepsItems } from "./FunnelResponseDataAttributesFunnelStepsItems"; +import { FunnelResponseElapsedTime } from "./FunnelResponseElapsedTime"; +import { FunnelSuggestionRequest } from "./FunnelSuggestionRequest"; +import { FunnelSuggestionRequestData } from "./FunnelSuggestionRequestData"; +import { FunnelSuggestionRequestDataAttributes } from "./FunnelSuggestionRequestDataAttributes"; +import { FunnelSuggestionRequestDataAttributesSearch } from "./FunnelSuggestionRequestDataAttributesSearch"; +import { FunnelSuggestionRequestDataAttributesSearchStepsItems } from "./FunnelSuggestionRequestDataAttributesSearchStepsItems"; +import { FunnelSuggestionRequestDataAttributesTermSearch } from "./FunnelSuggestionRequestDataAttributesTermSearch"; +import { FunnelSuggestionRequestDataAttributesTime } from "./FunnelSuggestionRequestDataAttributesTime"; +import { FunnelSuggestionResponse } from "./FunnelSuggestionResponse"; +import { FunnelSuggestionResponseData } from "./FunnelSuggestionResponseData"; +import { FunnelSuggestionResponseDataAttributes } from "./FunnelSuggestionResponseDataAttributes"; +import { FunnelSuggestionResponseDataAttributesActionsItems } from "./FunnelSuggestionResponseDataAttributesActionsItems"; +import { FunnelSuggestionResponseDataAttributesViewsItems } from "./FunnelSuggestionResponseDataAttributesViewsItems"; import { GCPIntegration } from "./GCPIntegration"; import { GCPIntegrationUpdate } from "./GCPIntegrationUpdate"; import { GCPMetricNamespaceConfig } from "./GCPMetricNamespaceConfig"; @@ -970,6 +993,33 @@ import { GetAppKeyRegistrationResponse } from "./GetAppKeyRegistrationResponse"; import { GetAppResponse } from "./GetAppResponse"; import { GetAppResponseData } from "./GetAppResponseData"; import { GetAppResponseDataAttributes } from "./GetAppResponseDataAttributes"; +import { GetCohortRequest } from "./GetCohortRequest"; +import { GetCohortRequestData } from "./GetCohortRequestData"; +import { GetCohortRequestDataAttributes } from "./GetCohortRequestDataAttributes"; +import { GetCohortRequestDataAttributesDefinition } from "./GetCohortRequestDataAttributesDefinition"; +import { GetCohortRequestDataAttributesDefinitionAudienceFilters } from "./GetCohortRequestDataAttributesDefinitionAudienceFilters"; +import { GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems } from "./GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems"; +import { GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems } from "./GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems"; +import { GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems } from "./GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems"; +import { GetCohortRequestDataAttributesTime } from "./GetCohortRequestDataAttributesTime"; +import { GetCohortResponse } from "./GetCohortResponse"; +import { GetCohortResponseData } from "./GetCohortResponseData"; +import { GetCohortResponseDataAttributes } from "./GetCohortResponseDataAttributes"; +import { GetCohortResponseDataAttributesCohortsItems } from "./GetCohortResponseDataAttributesCohortsItems"; +import { GetCohortResponseDataAttributesCohortsItemsValuesItems } from "./GetCohortResponseDataAttributesCohortsItemsValuesItems"; +import { GetCohortUsersRequest } from "./GetCohortUsersRequest"; +import { GetCohortUsersRequestData } from "./GetCohortUsersRequestData"; +import { GetCohortUsersRequestDataAttributes } from "./GetCohortUsersRequestDataAttributes"; +import { GetCohortUsersRequestDataAttributesDefinition } from "./GetCohortUsersRequestDataAttributesDefinition"; +import { GetCohortUsersRequestDataAttributesDefinitionAudienceFilters } from "./GetCohortUsersRequestDataAttributesDefinitionAudienceFilters"; +import { GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems } from "./GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems"; +import { GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems } from "./GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems"; +import { GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems } from "./GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems"; +import { GetCohortUsersRequestDataAttributesTime } from "./GetCohortUsersRequestDataAttributesTime"; +import { GetCohortUsersResponse } from "./GetCohortUsersResponse"; +import { GetCohortUsersResponseData } from "./GetCohortUsersResponseData"; +import { GetCohortUsersResponseDataAttributes } from "./GetCohortUsersResponseDataAttributes"; +import { GetCohortUsersResponseDataAttributesUsersItems } from "./GetCohortUsersResponseDataAttributesUsersItems"; import { GetCustomFrameworkResponse } from "./GetCustomFrameworkResponse"; import { GetDataDeletionsResponseBody } from "./GetDataDeletionsResponseBody"; import { GetDeviceAttributes } from "./GetDeviceAttributes"; @@ -1978,6 +2028,24 @@ import { SLOReportPostResponseData } from "./SLOReportPostResponseData"; import { SLOReportStatusGetResponse } from "./SLOReportStatusGetResponse"; import { SLOReportStatusGetResponseAttributes } from "./SLOReportStatusGetResponseAttributes"; import { SLOReportStatusGetResponseData } from "./SLOReportStatusGetResponseData"; +import { SankeyRequest } from "./SankeyRequest"; +import { SankeyRequestData } from "./SankeyRequestData"; +import { SankeyRequestDataAttributes } from "./SankeyRequestDataAttributes"; +import { SankeyRequestDataAttributesDefinition } from "./SankeyRequestDataAttributesDefinition"; +import { SankeyRequestDataAttributesSampling } from "./SankeyRequestDataAttributesSampling"; +import { SankeyRequestDataAttributesSearch } from "./SankeyRequestDataAttributesSearch"; +import { SankeyRequestDataAttributesSearchAudienceFilters } from "./SankeyRequestDataAttributesSearchAudienceFilters"; +import { SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems } from "./SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems"; +import { SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems } from "./SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems"; +import { SankeyRequestDataAttributesSearchAudienceFiltersUsersItems } from "./SankeyRequestDataAttributesSearchAudienceFiltersUsersItems"; +import { SankeyRequestDataAttributesSearchOccurrences } from "./SankeyRequestDataAttributesSearchOccurrences"; +import { SankeyRequestDataAttributesTime } from "./SankeyRequestDataAttributesTime"; +import { SankeyResponse } from "./SankeyResponse"; +import { SankeyResponseData } from "./SankeyResponseData"; +import { SankeyResponseDataAttributes } from "./SankeyResponseDataAttributes"; +import { SankeyResponseDataAttributesLinksItems } from "./SankeyResponseDataAttributesLinksItems"; +import { SankeyResponseDataAttributesNodesItems } from "./SankeyResponseDataAttributesNodesItems"; +import { SankeyResponseDataAttributesNodesItemsAggregatedNodesItems } from "./SankeyResponseDataAttributesNodesItemsAggregatedNodesItems"; import { ScaRequest } from "./ScaRequest"; import { ScaRequestData } from "./ScaRequestData"; import { ScaRequestDataAttributes } from "./ScaRequestDataAttributes"; @@ -2120,6 +2188,18 @@ import { SecurityMonitoringTriageUser } from "./SecurityMonitoringTriageUser"; import { SecurityMonitoringUser } from "./SecurityMonitoringUser"; import { SecurityTrigger } from "./SecurityTrigger"; import { SecurityTriggerWrapper } from "./SecurityTriggerWrapper"; +import { Segment } from "./Segment"; +import { SegmentArray } from "./SegmentArray"; +import { SegmentData } from "./SegmentData"; +import { SegmentDataAttributes } from "./SegmentDataAttributes"; +import { SegmentDataAttributesDataQuery } from "./SegmentDataAttributesDataQuery"; +import { SegmentDataAttributesDataQueryEventPlatformItems } from "./SegmentDataAttributesDataQueryEventPlatformItems"; +import { SegmentDataAttributesDataQueryReferenceTableItems } from "./SegmentDataAttributesDataQueryReferenceTableItems"; +import { SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems } from "./SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems"; +import { SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition } from "./SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition"; +import { SegmentDataAttributesDataQueryStaticItems } from "./SegmentDataAttributesDataQueryStaticItems"; +import { SegmentDataAttributesDataQueryUserStoreItems } from "./SegmentDataAttributesDataQueryUserStoreItems"; +import { SegmentDataSource } from "./SegmentDataSource"; import { Selectors } from "./Selectors"; import { SelfServiceTriggerWrapper } from "./SelfServiceTriggerWrapper"; import { SendSlackMessageAction } from "./SendSlackMessageAction"; @@ -3039,6 +3119,10 @@ const enumsMap: { [key: string]: any[] } = { FleetDeploymentResourceType: ["deployment"], FreshserviceAPIKeyType: ["FreshserviceAPIKey"], FreshserviceIntegrationType: ["Freshservice"], + FunnelRequestDataType: ["funnel_request"], + FunnelResponseDataType: ["funnel_response"], + FunnelSuggestionRequestDataType: ["funnel_suggestion_request"], + FunnelSuggestionResponseDataType: ["funnel_suggestion_response"], GCPIntegrationType: ["GCP"], GCPMonitoredResourceConfigType: [ "cloud_function", @@ -3056,6 +3140,10 @@ const enumsMap: { [key: string]: any[] } = { GcpUcConfigResponseDataType: ["gcp_uc_config"], GeminiAPIKeyType: ["GeminiAPIKey"], GeminiIntegrationType: ["Gemini"], + GetCohortRequestDataType: ["cohort_request"], + GetCohortResponseDataType: ["cohort_response"], + GetCohortUsersRequestDataType: ["cohort_users_request"], + GetCohortUsersResponseDataType: ["cohort_users_response"], GetIssueIncludeQueryParameterItem: ["assignee", "case", "team_owners"], GetMultipleRulesetsRequestDataType: ["get_multiple_rulesets_request"], GetMultipleRulesetsResponseDataAttributesRulesetsItemsDataType: ["rulesets"], @@ -3745,6 +3833,8 @@ const enumsMap: { [key: string]: any[] } = { "completed_with_errors", "failed", ], + SankeyRequestDataType: ["sankey_request"], + SankeyResponseDataType: ["sankey_response"], ScaRequestDataType: ["scarequests"], ScalarColumnTypeGroup: ["group"], ScalarColumnTypeNumber: ["number"], @@ -3856,6 +3946,7 @@ const enumsMap: { [key: string]: any[] } = { "events", ], SecurityMonitoringSuppressionType: ["suppressions"], + SegmentDataType: ["segment"], SendSlackMessageActionType: ["send_slack_message"], SendTeamsMessageActionType: ["send_teams_message"], SensitiveDataScannerConfigurationType: [ @@ -5229,6 +5320,38 @@ const typeMap: { [index: string]: any } = { FullApplicationKeyAttributes: FullApplicationKeyAttributes, FullCustomFrameworkData: FullCustomFrameworkData, FullCustomFrameworkDataAttributes: FullCustomFrameworkDataAttributes, + FunnelRequest: FunnelRequest, + FunnelRequestData: FunnelRequestData, + FunnelRequestDataAttributes: FunnelRequestDataAttributes, + FunnelRequestDataAttributesSearch: FunnelRequestDataAttributesSearch, + FunnelRequestDataAttributesSearchStepsItems: + FunnelRequestDataAttributesSearchStepsItems, + FunnelRequestDataAttributesTime: FunnelRequestDataAttributesTime, + FunnelResponse: FunnelResponse, + FunnelResponseData: FunnelResponseData, + FunnelResponseDataAttributes: FunnelResponseDataAttributes, + FunnelResponseDataAttributesFunnelStepsItems: + FunnelResponseDataAttributesFunnelStepsItems, + FunnelResponseElapsedTime: FunnelResponseElapsedTime, + FunnelSuggestionRequest: FunnelSuggestionRequest, + FunnelSuggestionRequestData: FunnelSuggestionRequestData, + FunnelSuggestionRequestDataAttributes: FunnelSuggestionRequestDataAttributes, + FunnelSuggestionRequestDataAttributesSearch: + FunnelSuggestionRequestDataAttributesSearch, + FunnelSuggestionRequestDataAttributesSearchStepsItems: + FunnelSuggestionRequestDataAttributesSearchStepsItems, + FunnelSuggestionRequestDataAttributesTermSearch: + FunnelSuggestionRequestDataAttributesTermSearch, + FunnelSuggestionRequestDataAttributesTime: + FunnelSuggestionRequestDataAttributesTime, + FunnelSuggestionResponse: FunnelSuggestionResponse, + FunnelSuggestionResponseData: FunnelSuggestionResponseData, + FunnelSuggestionResponseDataAttributes: + FunnelSuggestionResponseDataAttributes, + FunnelSuggestionResponseDataAttributesActionsItems: + FunnelSuggestionResponseDataAttributesActionsItems, + FunnelSuggestionResponseDataAttributesViewsItems: + FunnelSuggestionResponseDataAttributesViewsItems, GCPIntegration: GCPIntegration, GCPIntegrationUpdate: GCPIntegrationUpdate, GCPMetricNamespaceConfig: GCPMetricNamespaceConfig, @@ -5279,6 +5402,47 @@ const typeMap: { [index: string]: any } = { GetAppResponse: GetAppResponse, GetAppResponseData: GetAppResponseData, GetAppResponseDataAttributes: GetAppResponseDataAttributes, + GetCohortRequest: GetCohortRequest, + GetCohortRequestData: GetCohortRequestData, + GetCohortRequestDataAttributes: GetCohortRequestDataAttributes, + GetCohortRequestDataAttributesDefinition: + GetCohortRequestDataAttributesDefinition, + GetCohortRequestDataAttributesDefinitionAudienceFilters: + GetCohortRequestDataAttributesDefinitionAudienceFilters, + GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems: + GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems, + GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems: + GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems, + GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems: + GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems, + GetCohortRequestDataAttributesTime: GetCohortRequestDataAttributesTime, + GetCohortResponse: GetCohortResponse, + GetCohortResponseData: GetCohortResponseData, + GetCohortResponseDataAttributes: GetCohortResponseDataAttributes, + GetCohortResponseDataAttributesCohortsItems: + GetCohortResponseDataAttributesCohortsItems, + GetCohortResponseDataAttributesCohortsItemsValuesItems: + GetCohortResponseDataAttributesCohortsItemsValuesItems, + GetCohortUsersRequest: GetCohortUsersRequest, + GetCohortUsersRequestData: GetCohortUsersRequestData, + GetCohortUsersRequestDataAttributes: GetCohortUsersRequestDataAttributes, + GetCohortUsersRequestDataAttributesDefinition: + GetCohortUsersRequestDataAttributesDefinition, + GetCohortUsersRequestDataAttributesDefinitionAudienceFilters: + GetCohortUsersRequestDataAttributesDefinitionAudienceFilters, + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems: + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems, + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems: + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems, + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems: + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems, + GetCohortUsersRequestDataAttributesTime: + GetCohortUsersRequestDataAttributesTime, + GetCohortUsersResponse: GetCohortUsersResponse, + GetCohortUsersResponseData: GetCohortUsersResponseData, + GetCohortUsersResponseDataAttributes: GetCohortUsersResponseDataAttributes, + GetCohortUsersResponseDataAttributesUsersItems: + GetCohortUsersResponseDataAttributesUsersItems, GetCustomFrameworkResponse: GetCustomFrameworkResponse, GetDataDeletionsResponseBody: GetDataDeletionsResponseBody, GetDeviceAttributes: GetDeviceAttributes, @@ -6468,6 +6632,32 @@ const typeMap: { [index: string]: any } = { SLOReportStatusGetResponse: SLOReportStatusGetResponse, SLOReportStatusGetResponseAttributes: SLOReportStatusGetResponseAttributes, SLOReportStatusGetResponseData: SLOReportStatusGetResponseData, + SankeyRequest: SankeyRequest, + SankeyRequestData: SankeyRequestData, + SankeyRequestDataAttributes: SankeyRequestDataAttributes, + SankeyRequestDataAttributesDefinition: SankeyRequestDataAttributesDefinition, + SankeyRequestDataAttributesSampling: SankeyRequestDataAttributesSampling, + SankeyRequestDataAttributesSearch: SankeyRequestDataAttributesSearch, + SankeyRequestDataAttributesSearchAudienceFilters: + SankeyRequestDataAttributesSearchAudienceFilters, + SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems: + SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems, + SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems: + SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems, + SankeyRequestDataAttributesSearchAudienceFiltersUsersItems: + SankeyRequestDataAttributesSearchAudienceFiltersUsersItems, + SankeyRequestDataAttributesSearchOccurrences: + SankeyRequestDataAttributesSearchOccurrences, + SankeyRequestDataAttributesTime: SankeyRequestDataAttributesTime, + SankeyResponse: SankeyResponse, + SankeyResponseData: SankeyResponseData, + SankeyResponseDataAttributes: SankeyResponseDataAttributes, + SankeyResponseDataAttributesLinksItems: + SankeyResponseDataAttributesLinksItems, + SankeyResponseDataAttributesNodesItems: + SankeyResponseDataAttributesNodesItems, + SankeyResponseDataAttributesNodesItemsAggregatedNodesItems: + SankeyResponseDataAttributesNodesItemsAggregatedNodesItems, ScaRequest: ScaRequest, ScaRequestData: ScaRequestData, ScaRequestDataAttributes: ScaRequestDataAttributes, @@ -6666,6 +6856,24 @@ const typeMap: { [index: string]: any } = { SecurityMonitoringUser: SecurityMonitoringUser, SecurityTrigger: SecurityTrigger, SecurityTriggerWrapper: SecurityTriggerWrapper, + Segment: Segment, + SegmentArray: SegmentArray, + SegmentData: SegmentData, + SegmentDataAttributes: SegmentDataAttributes, + SegmentDataAttributesDataQuery: SegmentDataAttributesDataQuery, + SegmentDataAttributesDataQueryEventPlatformItems: + SegmentDataAttributesDataQueryEventPlatformItems, + SegmentDataAttributesDataQueryReferenceTableItems: + SegmentDataAttributesDataQueryReferenceTableItems, + SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems: + SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems, + SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition: + SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition, + SegmentDataAttributesDataQueryStaticItems: + SegmentDataAttributesDataQueryStaticItems, + SegmentDataAttributesDataQueryUserStoreItems: + SegmentDataAttributesDataQueryUserStoreItems, + SegmentDataSource: SegmentDataSource, Selectors: Selectors, SelfServiceTriggerWrapper: SelfServiceTriggerWrapper, SendSlackMessageAction: SendSlackMessageAction, diff --git a/packages/datadog-api-client-v2/models/SankeyRequest.ts b/packages/datadog-api-client-v2/models/SankeyRequest.ts new file mode 100644 index 000000000000..a4c581491e61 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyRequest.ts @@ -0,0 +1,47 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { SankeyRequestData } from "./SankeyRequestData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SankeyRequest { + "data"?: SankeyRequestData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "SankeyRequestData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SankeyRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SankeyRequestData.ts b/packages/datadog-api-client-v2/models/SankeyRequestData.ts new file mode 100644 index 000000000000..91d1ce163fb8 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyRequestData.ts @@ -0,0 +1,59 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { SankeyRequestDataAttributes } from "./SankeyRequestDataAttributes"; +import { SankeyRequestDataType } from "./SankeyRequestDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SankeyRequestData { + "attributes"?: SankeyRequestDataAttributes; + "id"?: string; + "type": SankeyRequestDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "SankeyRequestDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "SankeyRequestDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SankeyRequestData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SankeyRequestDataAttributes.ts b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributes.ts new file mode 100644 index 000000000000..cb2a66bceaa7 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributes.ts @@ -0,0 +1,80 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { SankeyRequestDataAttributesDefinition } from "./SankeyRequestDataAttributesDefinition"; +import { SankeyRequestDataAttributesSampling } from "./SankeyRequestDataAttributesSampling"; +import { SankeyRequestDataAttributesSearch } from "./SankeyRequestDataAttributesSearch"; +import { SankeyRequestDataAttributesTime } from "./SankeyRequestDataAttributesTime"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SankeyRequestDataAttributes { + "dataSource"?: string; + "definition"?: SankeyRequestDataAttributesDefinition; + "enforcedExecutionType"?: string; + "requestId"?: string; + "sampling"?: SankeyRequestDataAttributesSampling; + "search"?: SankeyRequestDataAttributesSearch; + "time"?: SankeyRequestDataAttributesTime; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + dataSource: { + baseName: "data_source", + type: "string", + }, + definition: { + baseName: "definition", + type: "SankeyRequestDataAttributesDefinition", + }, + enforcedExecutionType: { + baseName: "enforced_execution_type", + type: "string", + }, + requestId: { + baseName: "request_id", + type: "string", + }, + sampling: { + baseName: "sampling", + type: "SankeyRequestDataAttributesSampling", + }, + search: { + baseName: "search", + type: "SankeyRequestDataAttributesSearch", + }, + time: { + baseName: "time", + type: "SankeyRequestDataAttributesTime", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SankeyRequestDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesDefinition.ts b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesDefinition.ts new file mode 100644 index 000000000000..d99171af3732 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesDefinition.ts @@ -0,0 +1,63 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SankeyRequestDataAttributesDefinition { + "entriesPerStep"?: number; + "numberOfSteps"?: number; + "source"?: string; + "target"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + entriesPerStep: { + baseName: "entries_per_step", + type: "number", + format: "int64", + }, + numberOfSteps: { + baseName: "number_of_steps", + type: "number", + format: "int64", + }, + source: { + baseName: "source", + type: "string", + }, + target: { + baseName: "target", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SankeyRequestDataAttributesDefinition.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSampling.ts b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSampling.ts new file mode 100644 index 000000000000..00fa3bc84447 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSampling.ts @@ -0,0 +1,49 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SankeyRequestDataAttributesSampling { + /** + * The `sampling` `enabled`. + */ + "enabled"?: boolean; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + enabled: { + baseName: "enabled", + type: "boolean", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SankeyRequestDataAttributesSampling.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearch.ts b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearch.ts new file mode 100644 index 000000000000..c1fc08ced2a8 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearch.ts @@ -0,0 +1,63 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { SankeyRequestDataAttributesSearchAudienceFilters } from "./SankeyRequestDataAttributesSearchAudienceFilters"; +import { SankeyRequestDataAttributesSearchOccurrences } from "./SankeyRequestDataAttributesSearchOccurrences"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SankeyRequestDataAttributesSearch { + "audienceFilters"?: SankeyRequestDataAttributesSearchAudienceFilters; + "occurrences"?: SankeyRequestDataAttributesSearchOccurrences; + "query"?: string; + "subqueryId"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + audienceFilters: { + baseName: "audience_filters", + type: "SankeyRequestDataAttributesSearchAudienceFilters", + }, + occurrences: { + baseName: "occurrences", + type: "SankeyRequestDataAttributesSearchOccurrences", + }, + query: { + baseName: "query", + type: "string", + }, + subqueryId: { + baseName: "subquery_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SankeyRequestDataAttributesSearch.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchAudienceFilters.ts b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchAudienceFilters.ts new file mode 100644 index 000000000000..6efdbed3cf73 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchAudienceFilters.ts @@ -0,0 +1,64 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems } from "./SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems"; +import { SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems } from "./SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems"; +import { SankeyRequestDataAttributesSearchAudienceFiltersUsersItems } from "./SankeyRequestDataAttributesSearchAudienceFiltersUsersItems"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SankeyRequestDataAttributesSearchAudienceFilters { + "accounts"?: Array; + "formula"?: string; + "segments"?: Array; + "users"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + accounts: { + baseName: "accounts", + type: "Array", + }, + formula: { + baseName: "formula", + type: "string", + }, + segments: { + baseName: "segments", + type: "Array", + }, + users: { + baseName: "users", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SankeyRequestDataAttributesSearchAudienceFilters.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems.ts b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems.ts new file mode 100644 index 000000000000..f34096479764 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems.ts @@ -0,0 +1,52 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems { + "name": string; + "query"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + name: { + baseName: "name", + type: "string", + required: true, + }, + query: { + baseName: "query", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems.ts b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems.ts new file mode 100644 index 000000000000..9ae7b636b7da --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems { + "name": string; + "segmentId": string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + name: { + baseName: "name", + type: "string", + required: true, + }, + segmentId: { + baseName: "segment_id", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchAudienceFiltersUsersItems.ts b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchAudienceFiltersUsersItems.ts new file mode 100644 index 000000000000..31f859f0df5a --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchAudienceFiltersUsersItems.ts @@ -0,0 +1,52 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SankeyRequestDataAttributesSearchAudienceFiltersUsersItems { + "name": string; + "query"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + name: { + baseName: "name", + type: "string", + required: true, + }, + query: { + baseName: "query", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SankeyRequestDataAttributesSearchAudienceFiltersUsersItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchOccurrences.ts b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchOccurrences.ts new file mode 100644 index 000000000000..9954341d5cfb --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesSearchOccurrences.ts @@ -0,0 +1,58 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SankeyRequestDataAttributesSearchOccurrences { + "meta"?: { [key: string]: string }; + "operator": string; + "value": string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + meta: { + baseName: "meta", + type: "{ [key: string]: string; }", + }, + operator: { + baseName: "operator", + type: "string", + required: true, + }, + value: { + baseName: "value", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SankeyRequestDataAttributesSearchOccurrences.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesTime.ts b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesTime.ts new file mode 100644 index 000000000000..e99434f854b9 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyRequestDataAttributesTime.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SankeyRequestDataAttributesTime { + "from"?: number; + "to"?: number; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + from: { + baseName: "from", + type: "number", + format: "int64", + }, + to: { + baseName: "to", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SankeyRequestDataAttributesTime.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SankeyRequestDataType.ts b/packages/datadog-api-client-v2/models/SankeyRequestDataType.ts new file mode 100644 index 000000000000..3fdf9d7e1002 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyRequestDataType.ts @@ -0,0 +1,10 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +export type SankeyRequestDataType = typeof SANKEY_REQUEST | UnparsedObject; +export const SANKEY_REQUEST = "sankey_request"; diff --git a/packages/datadog-api-client-v2/models/SankeyResponse.ts b/packages/datadog-api-client-v2/models/SankeyResponse.ts new file mode 100644 index 000000000000..e963b4059927 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyResponse.ts @@ -0,0 +1,47 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { SankeyResponseData } from "./SankeyResponseData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SankeyResponse { + "data"?: SankeyResponseData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "SankeyResponseData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SankeyResponse.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SankeyResponseData.ts b/packages/datadog-api-client-v2/models/SankeyResponseData.ts new file mode 100644 index 000000000000..c0bb07ee7f41 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyResponseData.ts @@ -0,0 +1,59 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { SankeyResponseDataAttributes } from "./SankeyResponseDataAttributes"; +import { SankeyResponseDataType } from "./SankeyResponseDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SankeyResponseData { + "attributes"?: SankeyResponseDataAttributes; + "id"?: string; + "type": SankeyResponseDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "SankeyResponseDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "SankeyResponseDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SankeyResponseData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SankeyResponseDataAttributes.ts b/packages/datadog-api-client-v2/models/SankeyResponseDataAttributes.ts new file mode 100644 index 000000000000..a31bf464349f --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyResponseDataAttributes.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { SankeyResponseDataAttributesLinksItems } from "./SankeyResponseDataAttributesLinksItems"; +import { SankeyResponseDataAttributesNodesItems } from "./SankeyResponseDataAttributesNodesItems"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SankeyResponseDataAttributes { + "links"?: Array; + "nodes"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + links: { + baseName: "links", + type: "Array", + }, + nodes: { + baseName: "nodes", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SankeyResponseDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SankeyResponseDataAttributesLinksItems.ts b/packages/datadog-api-client-v2/models/SankeyResponseDataAttributesLinksItems.ts new file mode 100644 index 000000000000..d42403e09936 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyResponseDataAttributesLinksItems.ts @@ -0,0 +1,68 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SankeyResponseDataAttributesLinksItems { + "column"?: number; + "id"?: string; + "source"?: string; + "target"?: string; + "value"?: number; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + column: { + baseName: "column", + type: "number", + format: "int64", + }, + id: { + baseName: "id", + type: "string", + }, + source: { + baseName: "source", + type: "string", + }, + target: { + baseName: "target", + type: "string", + }, + value: { + baseName: "value", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SankeyResponseDataAttributesLinksItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SankeyResponseDataAttributesNodesItems.ts b/packages/datadog-api-client-v2/models/SankeyResponseDataAttributesNodesItems.ts new file mode 100644 index 000000000000..b64eaaa73184 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyResponseDataAttributesNodesItems.ts @@ -0,0 +1,86 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { SankeyResponseDataAttributesNodesItemsAggregatedNodesItems } from "./SankeyResponseDataAttributesNodesItemsAggregatedNodesItems"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SankeyResponseDataAttributesNodesItems { + "aggregatedNodes"?: Array; + "column"?: number; + "id"?: string; + "incomingValue"?: number; + "name"?: string; + "outgoingValue"?: number; + "type"?: string; + "value"?: number; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + aggregatedNodes: { + baseName: "aggregated_nodes", + type: "Array", + }, + column: { + baseName: "column", + type: "number", + format: "int64", + }, + id: { + baseName: "id", + type: "string", + }, + incomingValue: { + baseName: "incoming_value", + type: "number", + format: "int64", + }, + name: { + baseName: "name", + type: "string", + }, + outgoingValue: { + baseName: "outgoing_value", + type: "number", + format: "int64", + }, + type: { + baseName: "type", + type: "string", + }, + value: { + baseName: "value", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SankeyResponseDataAttributesNodesItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SankeyResponseDataAttributesNodesItemsAggregatedNodesItems.ts b/packages/datadog-api-client-v2/models/SankeyResponseDataAttributesNodesItemsAggregatedNodesItems.ts new file mode 100644 index 000000000000..df15fcf64126 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyResponseDataAttributesNodesItemsAggregatedNodesItems.ts @@ -0,0 +1,74 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SankeyResponseDataAttributesNodesItemsAggregatedNodesItems { + "id"?: string; + "incomingValue"?: number; + "name"?: string; + "outgoingValue"?: number; + "type"?: string; + "value"?: number; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + id: { + baseName: "id", + type: "string", + }, + incomingValue: { + baseName: "incoming_value", + type: "number", + format: "int64", + }, + name: { + baseName: "name", + type: "string", + }, + outgoingValue: { + baseName: "outgoing_value", + type: "number", + format: "int64", + }, + type: { + baseName: "type", + type: "string", + }, + value: { + baseName: "value", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SankeyResponseDataAttributesNodesItemsAggregatedNodesItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SankeyResponseDataType.ts b/packages/datadog-api-client-v2/models/SankeyResponseDataType.ts new file mode 100644 index 000000000000..a11e44e22369 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SankeyResponseDataType.ts @@ -0,0 +1,10 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +export type SankeyResponseDataType = typeof SANKEY_RESPONSE | UnparsedObject; +export const SANKEY_RESPONSE = "sankey_response"; diff --git a/packages/datadog-api-client-v2/models/Segment.ts b/packages/datadog-api-client-v2/models/Segment.ts new file mode 100644 index 000000000000..ff440c2797bd --- /dev/null +++ b/packages/datadog-api-client-v2/models/Segment.ts @@ -0,0 +1,47 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { SegmentData } from "./SegmentData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class Segment { + "data"?: SegmentData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "SegmentData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return Segment.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SegmentArray.ts b/packages/datadog-api-client-v2/models/SegmentArray.ts new file mode 100644 index 000000000000..8d6430a67eb0 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SegmentArray.ts @@ -0,0 +1,48 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { SegmentData } from "./SegmentData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SegmentArray { + "data": Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SegmentArray.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SegmentData.ts b/packages/datadog-api-client-v2/models/SegmentData.ts new file mode 100644 index 000000000000..0759668c5443 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SegmentData.ts @@ -0,0 +1,59 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { SegmentDataAttributes } from "./SegmentDataAttributes"; +import { SegmentDataType } from "./SegmentDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SegmentData { + "attributes"?: SegmentDataAttributes; + "id"?: string; + "type": SegmentDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "SegmentDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "SegmentDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SegmentData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SegmentDataAttributes.ts b/packages/datadog-api-client-v2/models/SegmentDataAttributes.ts new file mode 100644 index 000000000000..684b7d56f77d --- /dev/null +++ b/packages/datadog-api-client-v2/models/SegmentDataAttributes.ts @@ -0,0 +1,127 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { SegmentDataAttributesDataQuery } from "./SegmentDataAttributesDataQuery"; +import { SegmentDataSource } from "./SegmentDataSource"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SegmentDataAttributes { + "createdAt"?: Date; + "createdBy"?: SegmentDataSource; + "dataQuery": SegmentDataAttributesDataQuery; + "description"?: string; + "disabledAt"?: Date; + "disabledBy"?: SegmentDataSource; + "materializationRowCount"?: number; + "materializedAt"?: string; + "modifiedAt"?: Date; + "modifiedBy"?: SegmentDataSource; + "name": string; + "orgId"?: number; + "source"?: number; + "tags"?: Array; + "version"?: number; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + createdAt: { + baseName: "created_at", + type: "Date", + format: "date-time", + }, + createdBy: { + baseName: "created_by", + type: "SegmentDataSource", + }, + dataQuery: { + baseName: "data_query", + type: "SegmentDataAttributesDataQuery", + required: true, + }, + description: { + baseName: "description", + type: "string", + }, + disabledAt: { + baseName: "disabled_at", + type: "Date", + format: "date-time", + }, + disabledBy: { + baseName: "disabled_by", + type: "SegmentDataSource", + }, + materializationRowCount: { + baseName: "materialization_row_count", + type: "number", + format: "int64", + }, + materializedAt: { + baseName: "materialized_at", + type: "string", + }, + modifiedAt: { + baseName: "modified_at", + type: "Date", + format: "date-time", + }, + modifiedBy: { + baseName: "modified_by", + type: "SegmentDataSource", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + orgId: { + baseName: "org_id", + type: "number", + format: "int64", + }, + source: { + baseName: "source", + type: "number", + format: "int64", + }, + tags: { + baseName: "tags", + type: "Array", + }, + version: { + baseName: "version", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SegmentDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQuery.ts b/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQuery.ts new file mode 100644 index 000000000000..007afba2f0f8 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQuery.ts @@ -0,0 +1,70 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { SegmentDataAttributesDataQueryEventPlatformItems } from "./SegmentDataAttributesDataQueryEventPlatformItems"; +import { SegmentDataAttributesDataQueryReferenceTableItems } from "./SegmentDataAttributesDataQueryReferenceTableItems"; +import { SegmentDataAttributesDataQueryStaticItems } from "./SegmentDataAttributesDataQueryStaticItems"; +import { SegmentDataAttributesDataQueryUserStoreItems } from "./SegmentDataAttributesDataQueryUserStoreItems"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SegmentDataAttributesDataQuery { + "combination"?: string; + "eventPlatform"?: Array; + "referenceTable"?: Array; + "_static"?: Array; + "userStore"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + combination: { + baseName: "combination", + type: "string", + }, + eventPlatform: { + baseName: "event_platform", + type: "Array", + }, + referenceTable: { + baseName: "reference_table", + type: "Array", + }, + _static: { + baseName: "static", + type: "Array", + }, + userStore: { + baseName: "user_store", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SegmentDataAttributesDataQuery.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryEventPlatformItems.ts b/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryEventPlatformItems.ts new file mode 100644 index 000000000000..2b24212c4969 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryEventPlatformItems.ts @@ -0,0 +1,67 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SegmentDataAttributesDataQueryEventPlatformItems { + "facet": string; + "from"?: string; + "name"?: string; + "query"?: string; + "to"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + facet: { + baseName: "facet", + type: "string", + required: true, + }, + from: { + baseName: "from", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + query: { + baseName: "query", + type: "string", + }, + to: { + baseName: "to", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SegmentDataAttributesDataQueryEventPlatformItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryReferenceTableItems.ts b/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryReferenceTableItems.ts new file mode 100644 index 000000000000..dd3194c30be6 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryReferenceTableItems.ts @@ -0,0 +1,70 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems } from "./SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems"; +import { SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition } from "./SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SegmentDataAttributesDataQueryReferenceTableItems { + "columns"?: Array; + "filterQuery"?: string; + "joinCondition": SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition; + "name"?: string; + "tableName": string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + columns: { + baseName: "columns", + type: "Array", + }, + filterQuery: { + baseName: "filter_query", + type: "string", + }, + joinCondition: { + baseName: "join_condition", + type: "SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition", + required: true, + }, + name: { + baseName: "name", + type: "string", + }, + tableName: { + baseName: "table_name", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SegmentDataAttributesDataQueryReferenceTableItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems.ts b/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems.ts new file mode 100644 index 000000000000..5a1804ccc34f --- /dev/null +++ b/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems.ts @@ -0,0 +1,51 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems { + "alias"?: string; + "name"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + alias: { + baseName: "alias", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition.ts b/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition.ts new file mode 100644 index 000000000000..44189c639c4b --- /dev/null +++ b/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition.ts @@ -0,0 +1,52 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition { + "columnName": string; + "facet"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + columnName: { + baseName: "column_name", + type: "string", + required: true, + }, + facet: { + baseName: "facet", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryStaticItems.ts b/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryStaticItems.ts new file mode 100644 index 000000000000..66e1c5c7807f --- /dev/null +++ b/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryStaticItems.ts @@ -0,0 +1,57 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SegmentDataAttributesDataQueryStaticItems { + "id"?: string; + "name"?: string; + "userCount"?: number; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + id: { + baseName: "id", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + userCount: { + baseName: "user_count", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SegmentDataAttributesDataQueryStaticItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryUserStoreItems.ts b/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryUserStoreItems.ts new file mode 100644 index 000000000000..70450351fa88 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SegmentDataAttributesDataQueryUserStoreItems.ts @@ -0,0 +1,56 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SegmentDataAttributesDataQueryUserStoreItems { + "facet"?: string; + "name"?: string; + "query"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + facet: { + baseName: "facet", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + query: { + baseName: "query", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SegmentDataAttributesDataQueryUserStoreItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SegmentDataSource.ts b/packages/datadog-api-client-v2/models/SegmentDataSource.ts new file mode 100644 index 000000000000..2662b91fa0da --- /dev/null +++ b/packages/datadog-api-client-v2/models/SegmentDataSource.ts @@ -0,0 +1,69 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +export class SegmentDataSource { + "handle": string; + "icon"?: string; + "id": string; + "name"?: string; + "uuid": string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + handle: { + baseName: "handle", + type: "string", + required: true, + }, + icon: { + baseName: "icon", + type: "string", + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + name: { + baseName: "name", + type: "string", + }, + uuid: { + baseName: "uuid", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return SegmentDataSource.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/SegmentDataType.ts b/packages/datadog-api-client-v2/models/SegmentDataType.ts new file mode 100644 index 000000000000..4566a179c4c0 --- /dev/null +++ b/packages/datadog-api-client-v2/models/SegmentDataType.ts @@ -0,0 +1,10 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +export type SegmentDataType = typeof SEGMENT | UnparsedObject; +export const SEGMENT = "segment";