Skip to content
Closed
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
134 changes: 132 additions & 2 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::fmt::{self, Formatter};

/// The `opentelemetry` source receives telemetry data using the OpenTelemetry Protocol (OTLP) over gRPC and HTTP.
///
/// **Supported pipeline types:** logs, metrics
/// **Supported pipeline types:** logs
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
Expand Down
2 changes: 2 additions & 0 deletions src/datadogV2/model/model_playlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ use serde::{Deserialize, Deserializer, Serialize};
use serde_with::skip_serializing_none;
use std::fmt::{self, Formatter};

/// A single RUM replay playlist resource returned by create, update, or get operations.
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct Playlist {
/// Data object representing a RUM replay playlist, including its identifier, type, and attributes.
#[serde(rename = "data")]
pub data: crate::datadogV2::model::PlaylistData,
#[serde(flatten)]
Expand Down
2 changes: 2 additions & 0 deletions src/datadogV2/model/model_playlist_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ use serde::{Deserialize, Deserializer, Serialize};
use serde_with::skip_serializing_none;
use std::fmt::{self, Formatter};

/// A list of RUM replay playlists returned by a list operation.
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct PlaylistArray {
/// Array of playlist data objects.
#[serde(rename = "data")]
pub data: Vec<crate::datadogV2::model::PlaylistData>,
#[serde(flatten)]
Expand Down
3 changes: 3 additions & 0 deletions src/datadogV2/model/model_playlist_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ use serde::{Deserialize, Deserializer, Serialize};
use serde_with::skip_serializing_none;
use std::fmt::{self, Formatter};

/// Data object representing a RUM replay playlist, including its identifier, type, and attributes.
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct PlaylistData {
/// Attributes of a RUM replay playlist, including its name, description, session count, and audit timestamps.
#[serde(rename = "attributes")]
pub attributes: Option<crate::datadogV2::model::PlaylistDataAttributes>,
/// Unique identifier of the playlist.
#[serde(rename = "id")]
pub id: Option<String>,
/// Rum replay playlist resource type.
Expand Down
7 changes: 7 additions & 0 deletions src/datadogV2/model/model_playlist_data_attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,27 @@ use serde::{Deserialize, Deserializer, Serialize};
use serde_with::skip_serializing_none;
use std::fmt::{self, Formatter};

/// Attributes of a RUM replay playlist, including its name, description, session count, and audit timestamps.
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct PlaylistDataAttributes {
/// Timestamp when the playlist was created.
#[serde(rename = "created_at")]
pub created_at: Option<chrono::DateTime<chrono::Utc>>,
/// Information about the user who created the playlist.
#[serde(rename = "created_by")]
pub created_by: Option<crate::datadogV2::model::PlaylistDataAttributesCreatedBy>,
/// Optional human-readable description of the playlist's purpose or contents.
#[serde(rename = "description")]
pub description: Option<String>,
/// Human-readable name of the playlist.
#[serde(rename = "name")]
pub name: String,
/// Number of replay sessions currently in the playlist.
#[serde(rename = "session_count")]
pub session_count: Option<i64>,
/// Timestamp when the playlist was last updated.
#[serde(rename = "updated_at")]
pub updated_at: Option<chrono::DateTime<chrono::Utc>>,
#[serde(flatten)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,24 @@ use serde::{Deserialize, Deserializer, Serialize};
use serde_with::skip_serializing_none;
use std::fmt::{self, Formatter};

/// Information about the user who created the playlist.
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct PlaylistDataAttributesCreatedBy {
/// Email handle of the user who created the playlist.
#[serde(rename = "handle")]
pub handle: String,
/// URL or identifier of the user's avatar icon.
#[serde(rename = "icon")]
pub icon: Option<String>,
/// Unique identifier of the user who created the playlist.
#[serde(rename = "id")]
pub id: String,
/// Display name of the user who created the playlist.
#[serde(rename = "name")]
pub name: Option<String>,
/// UUID of the user who created the playlist.
#[serde(rename = "uuid")]
pub uuid: String,
#[serde(flatten)]
Expand Down
2 changes: 2 additions & 0 deletions src/datadogV2/model/model_playlists_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ use serde::{Deserialize, Deserializer, Serialize};
use serde_with::skip_serializing_none;
use std::fmt::{self, Formatter};

/// A single RUM replay session resource as it appears within a playlist context.
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct PlaylistsSession {
/// Data object representing a session within a playlist, including its identifier, type, and attributes.
#[serde(rename = "data")]
pub data: crate::datadogV2::model::PlaylistsSessionData,
#[serde(flatten)]
Expand Down
2 changes: 2 additions & 0 deletions src/datadogV2/model/model_playlists_session_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ use serde::{Deserialize, Deserializer, Serialize};
use serde_with::skip_serializing_none;
use std::fmt::{self, Formatter};

/// A list of RUM replay sessions belonging to a playlist.
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct PlaylistsSessionArray {
/// Array of playlist session data objects.
#[serde(rename = "data")]
pub data: Vec<crate::datadogV2::model::PlaylistsSessionData>,
#[serde(flatten)]
Expand Down
3 changes: 3 additions & 0 deletions src/datadogV2/model/model_playlists_session_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ use serde::{Deserialize, Deserializer, Serialize};
use serde_with::skip_serializing_none;
use std::fmt::{self, Formatter};

/// Data object representing a session within a playlist, including its identifier, type, and attributes.
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct PlaylistsSessionData {
/// Attributes of a session within a playlist, including the session event data and its replay track.
#[serde(rename = "attributes")]
pub attributes: Option<crate::datadogV2::model::PlaylistsSessionDataAttributes>,
/// Unique identifier of the RUM replay session.
#[serde(rename = "id")]
pub id: Option<String>,
/// Rum replay session resource type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ use serde::{Deserialize, Deserializer, Serialize};
use serde_with::skip_serializing_none;
use std::fmt::{self, Formatter};

/// Attributes of a session within a playlist, including the session event data and its replay track.
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct PlaylistsSessionDataAttributes {
/// Raw event data associated with the replay session.
#[serde(rename = "session_event")]
pub session_event: Option<std::collections::BTreeMap<String, serde_json::Value>>,
/// Replay track identifier indicating which recording track the session belongs to.
#[serde(rename = "track")]
pub track: Option<String>,
#[serde(flatten)]
Expand Down
2 changes: 2 additions & 0 deletions src/datadogV2/model/model_session_id_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ use serde::{Deserialize, Deserializer, Serialize};
use serde_with::skip_serializing_none;
use std::fmt::{self, Formatter};

/// A collection of session identifiers used for bulk add or remove operations on a playlist.
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct SessionIdArray {
/// Array of session identifier data objects.
#[serde(rename = "data")]
pub data: Vec<crate::datadogV2::model::SessionIdData>,
#[serde(flatten)]
Expand Down
2 changes: 2 additions & 0 deletions src/datadogV2/model/model_session_id_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ use serde::{Deserialize, Deserializer, Serialize};
use serde_with::skip_serializing_none;
use std::fmt::{self, Formatter};

/// A session identifier data object used for bulk playlist operations.
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct SessionIdData {
/// Unique identifier of the RUM replay session.
#[serde(rename = "id")]
pub id: Option<String>,
/// Rum replay session resource type.
Expand Down
2 changes: 2 additions & 0 deletions src/datadogV2/model/model_snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ use serde::{Deserialize, Deserializer, Serialize};
use serde_with::skip_serializing_none;
use std::fmt::{self, Formatter};

/// A single heatmap snapshot resource returned by create or update operations.
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct Snapshot {
/// Data object representing a heatmap snapshot, including its identifier, type, and attributes.
#[serde(rename = "data")]
pub data: Option<crate::datadogV2::model::SnapshotData>,
#[serde(flatten)]
Expand Down
2 changes: 2 additions & 0 deletions src/datadogV2/model/model_snapshot_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ use serde::{Deserialize, Deserializer, Serialize};
use serde_with::skip_serializing_none;
use std::fmt::{self, Formatter};

/// A list of heatmap snapshots returned by a list operation.
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct SnapshotArray {
/// Array of heatmap snapshot data objects.
#[serde(rename = "data")]
pub data: Vec<crate::datadogV2::model::SnapshotData>,
#[serde(flatten)]
Expand Down
2 changes: 2 additions & 0 deletions src/datadogV2/model/model_snapshot_create_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ use serde::{Deserialize, Deserializer, Serialize};
use serde_with::skip_serializing_none;
use std::fmt::{self, Formatter};

/// Request body for creating a heatmap snapshot.
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct SnapshotCreateRequest {
/// Data object for a heatmap snapshot creation request, containing the resource type and attributes.
#[serde(rename = "data")]
pub data: crate::datadogV2::model::SnapshotCreateRequestData,
#[serde(flatten)]
Expand Down
2 changes: 2 additions & 0 deletions src/datadogV2/model/model_snapshot_create_request_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ use serde::{Deserialize, Deserializer, Serialize};
use serde_with::skip_serializing_none;
use std::fmt::{self, Formatter};

/// Data object for a heatmap snapshot creation request, containing the resource type and attributes.
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct SnapshotCreateRequestData {
/// Attributes for creating a heatmap snapshot, including the view, session, event, and device context.
#[serde(rename = "attributes")]
pub attributes: Option<crate::datadogV2::model::SnapshotCreateRequestDataAttributes>,
/// Snapshots resource type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,36 @@ use serde::{Deserialize, Deserializer, Serialize};
use serde_with::skip_serializing_none;
use std::fmt::{self, Formatter};

/// Attributes for creating a heatmap snapshot, including the view, session, event, and device context.
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct SnapshotCreateRequestDataAttributes {
/// Unique identifier of the RUM application.
#[serde(rename = "application_id")]
pub application_id: String,
/// Device type used when capturing the snapshot (e.g., desktop, mobile, tablet).
#[serde(rename = "device_type")]
pub device_type: String,
/// Unique identifier of the RUM event associated with the snapshot.
#[serde(rename = "event_id")]
pub event_id: String,
/// Indicates whether the device type was explicitly selected by the user rather than auto-detected.
#[serde(rename = "is_device_type_selected_by_user")]
pub is_device_type_selected_by_user: bool,
/// Unique identifier of the RUM session associated with the snapshot.
#[serde(rename = "session_id")]
pub session_id: Option<String>,
/// Human-readable name for the snapshot.
#[serde(rename = "snapshot_name")]
pub snapshot_name: String,
/// Offset in milliseconds from the start of the session at which the snapshot was captured.
#[serde(rename = "start")]
pub start: i64,
/// Unique identifier of the RUM view associated with the snapshot.
#[serde(rename = "view_id")]
pub view_id: Option<String>,
/// URL path or name of the view where the snapshot was captured.
#[serde(rename = "view_name")]
pub view_name: String,
#[serde(flatten)]
Expand Down
3 changes: 3 additions & 0 deletions src/datadogV2/model/model_snapshot_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ use serde::{Deserialize, Deserializer, Serialize};
use serde_with::skip_serializing_none;
use std::fmt::{self, Formatter};

/// Data object representing a heatmap snapshot, including its identifier, type, and attributes.
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
pub struct SnapshotData {
/// Attributes of a heatmap snapshot, including view context, device information, and audit metadata.
#[serde(rename = "attributes")]
pub attributes: Option<crate::datadogV2::model::SnapshotDataAttributes>,
/// Unique identifier of the heatmap snapshot.
#[serde(rename = "id")]
pub id: Option<String>,
/// Snapshots resource type.
Expand Down
Loading
Loading