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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
214 changes: 214 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6335,6 +6335,219 @@ components:
example: ok
type: string
type: object
JourneyMapConversionType:
description: Whether to show the paths that convert to the end step or drop off before it.
enum:
- conversion
- drop-off
example: conversion
type: string
x-enum-varnames:
- CONVERSION
- DROP_OFF
JourneyMapCountingMethod:
description: Whether to count unique journeys or all journeys.
enum:
- uniques
- totals
example: uniques
type: string
x-enum-varnames:
- UNIQUES
- TOTALS
JourneyMapExpandedPrefix:
additionalProperties: false
description: A path expanded to show the events that follow it.
properties:
events:
description: Events of the expanded path, in order.
example:
- "@view.name:/cart"
items:
description: An event of the expanded path.
type: string
minItems: 1
type: array
path_limit:
description: Maximum number of paths shown after the expanded path.
example: 5
format: int64
maximum: 10
minimum: 1
type: integer
required:
- events
type: object
JourneyMapGroupBy:
additionalProperties: false
description: Group by configuration for the Journey Paths widget.
properties:
facet:
description: Facet to group by. Must be a valid tag name.
example: "@geo.country"
pattern: '^[@_a-zA-Z]?[a-zA-Z0-9_\-:.\/\\]*$'
type: string
source:
$ref: "#/components/schemas/JourneyMapGroupByAudience"
value_filters:
description: Facet values to keep.
example:
- France
items:
description: A facet value.
type: string
minItems: 1
type: array
required:
- facet
- value_filters
type: object
JourneyMapGroupByAudience:
description: Audience the group by facet is read from.
enum:
- product_analytics_audience_filters.users
- product_analytics_audience_filters.accounts
example: product_analytics_audience_filters.users
type: string
x-enum-varnames:
- USERS
- ACCOUNTS
JourneyMapQuery:
description: Journey Paths query definition.
properties:
conversion_type:
$ref: "#/components/schemas/JourneyMapConversionType"
counting_method:
$ref: "#/components/schemas/JourneyMapCountingMethod"
data_source:
$ref: "#/components/schemas/ProductAnalyticsFunnelDataSource"
entries_per_step:
description: Maximum number of paths shown per step.
example: 5
format: int64
maximum: 10
minimum: 1
type: integer
event_filter:
description: Filter applied to the events shown along the paths.
example: "@type:view"
type: string
expanded_prefixes:
description: Paths expanded to show the events that follow them.
items:
$ref: "#/components/schemas/JourneyMapExpandedPrefix"
description: An expanded path.
type: array
uniqueItems: true
group_by:
description: Group by configuration.
items:
$ref: "#/components/schemas/JourneyMapGroupBy"
description: A Journey Paths group by configuration.
type: array
search:
$ref: "#/components/schemas/UserJourneySearch"
target:
$ref: "#/components/schemas/JourneyMapTarget"
required:
- data_source
- search
- target
type: object
JourneyMapRequestType:
description: Request type for the Journey Paths widget.
enum:
- journey_map
example: journey_map
type: string
x-enum-varnames:
- JOURNEY_MAP
JourneyMapTarget:
additionalProperties: false
description: The pair of journey steps the paths are visualized between.
properties:
end:
description: Key of the end step in `search.node_objects`.
example: node_1
type: string
start:
description: Key of the start step in `search.node_objects`.
example: node_0
type: string
required:
- start
- end
type: object
JourneyMapWidgetDefinition:
additionalProperties: false
description: The Journey Paths widget visualizes the paths users take between two steps of a Product Analytics journey.
properties:
description:
description: The description of the widget.
type: string
requests:
description: List of Journey Paths widget requests. Exactly one request is supported.
example:
- query:
data_source: product_analytics_journey
search:
expression: "node_0 -> node_1"
node_objects:
node_0:
data_source: product_analytics
search:
query: "@type:view @view.name:/cart"
node_1:
data_source: product_analytics
search:
query: "@type:view @view.name:/checkout"
target:
end: node_1
start: node_0
request_type: journey_map
items:
$ref: "#/components/schemas/JourneyMapWidgetRequest"
description: A Journey Paths widget request.
maxItems: 1
minItems: 1
type: array
time:
$ref: "#/components/schemas/WidgetTime"
title:
description: Title of your widget.
type: string
title_align:
$ref: "#/components/schemas/WidgetTextAlign"
title_size:
description: Size of the title.
type: string
type:
$ref: "#/components/schemas/JourneyMapWidgetDefinitionType"
required:
- type
- requests
type: object
JourneyMapWidgetDefinitionType:
default: journey_map
description: Type of the Journey Paths widget.
enum:
- journey_map
example: journey_map
type: string
x-enum-varnames:
- JOURNEY_MAP
JourneyMapWidgetRequest:
additionalProperties: false
description: Journey Paths widget request.
properties:
query:
$ref: "#/components/schemas/JourneyMapQuery"
request_type:
$ref: "#/components/schemas/JourneyMapRequestType"
required:
- request_type
- query
type: object
ListStreamColumn:
description: Widget column.
example: {"field": "timestamp", "width": "auto"}
Expand Down Expand Up @@ -28705,6 +28918,7 @@ components:
- $ref: "#/components/schemas/HostMapWidgetDefinition"
- $ref: "#/components/schemas/IFrameWidgetDefinition"
- $ref: "#/components/schemas/ImageWidgetDefinition"
- $ref: "#/components/schemas/JourneyMapWidgetDefinition"
- $ref: "#/components/schemas/ListStreamWidgetDefinition"
- $ref: "#/components/schemas/LogStreamWidgetDefinition"
- $ref: "#/components/schemas/MonitorSummaryWidgetDefinition"
Expand Down
38 changes: 38 additions & 0 deletions src/datadog_api_client/v1/model/journey_map_conversion_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 2019-Present Datadog, Inc.
from __future__ import annotations


from datadog_api_client.model_utils import (
ModelSimple,
cached_property,
)

from typing import ClassVar


class JourneyMapConversionType(ModelSimple):
"""
Whether to show the paths that convert to the end step or drop off before it.

:param value: Must be one of ["conversion", "drop-off"].
:type value: str
"""

allowed_values = {
"conversion",
"drop-off",
}
CONVERSION: ClassVar["JourneyMapConversionType"]
DROP_OFF: ClassVar["JourneyMapConversionType"]

@cached_property
def openapi_types(_):
return {
"value": (str,),
}


JourneyMapConversionType.CONVERSION = JourneyMapConversionType("conversion")
JourneyMapConversionType.DROP_OFF = JourneyMapConversionType("drop-off")
38 changes: 38 additions & 0 deletions src/datadog_api_client/v1/model/journey_map_counting_method.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 2019-Present Datadog, Inc.
from __future__ import annotations


from datadog_api_client.model_utils import (
ModelSimple,
cached_property,
)

from typing import ClassVar


class JourneyMapCountingMethod(ModelSimple):
"""
Whether to count unique journeys or all journeys.

:param value: Must be one of ["uniques", "totals"].
:type value: str
"""

allowed_values = {
"uniques",
"totals",
}
UNIQUES: ClassVar["JourneyMapCountingMethod"]
TOTALS: ClassVar["JourneyMapCountingMethod"]

@cached_property
def openapi_types(_):
return {
"value": (str,),
}


JourneyMapCountingMethod.UNIQUES = JourneyMapCountingMethod("uniques")
JourneyMapCountingMethod.TOTALS = JourneyMapCountingMethod("totals")
57 changes: 57 additions & 0 deletions src/datadog_api_client/v1/model/journey_map_expanded_prefix.py
Original file line number Diff line number Diff line change
@@ -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 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import List, Union

from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
)


class JourneyMapExpandedPrefix(ModelNormal):
validations = {
"events": {
"min_items": 1,
},
"path_limit": {
"inclusive_maximum": 10,
"inclusive_minimum": 1,
},
}

@cached_property
def additional_properties_type(_):
return None

@cached_property
def openapi_types(_):
return {
"events": ([str],),
"path_limit": (int,),
}

attribute_map = {
"events": "events",
"path_limit": "path_limit",
}

def __init__(self_, events: List[str], path_limit: Union[int, UnsetType] = unset, **kwargs):
"""
A path expanded to show the events that follow it.

:param events: Events of the expanded path, in order.
:type events: [str]

:param path_limit: Maximum number of paths shown after the expanded path.
:type path_limit: int, optional
"""
if path_limit is not unset:
kwargs["path_limit"] = path_limit
super().__init__(kwargs)

self_.events = events
Loading
Loading