Skip to content

Commit

Permalink
Merge pull request #1383 from DataDog/jward/schema-update
Browse files Browse the repository at this point in the history
Update RUM Event Schema
  • Loading branch information
fuzzybinary authored Apr 13, 2023
2 parents ca81ad7 + 82f1dc4 commit d658bdf
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 11 deletions.
20 changes: 15 additions & 5 deletions dd-sdk-android/apiSurface
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ data class com.datadog.android.rum.model.ActionEvent
fun fromJson(kotlin.String): Application
fun fromJsonObject(com.google.gson.JsonObject): Application
data class ActionEventSession
constructor(kotlin.String, ActionEventSessionType, kotlin.Boolean? = null, kotlin.Boolean? = true)
constructor(kotlin.String, ActionEventSessionType, kotlin.Boolean? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): ActionEventSession
Expand Down Expand Up @@ -908,7 +908,7 @@ data class com.datadog.android.rum.model.ErrorEvent
fun fromJson(kotlin.String): Application
fun fromJsonObject(com.google.gson.JsonObject): Application
data class ErrorEventSession
constructor(kotlin.String, ErrorEventSessionType, kotlin.Boolean? = null, kotlin.Boolean? = true)
constructor(kotlin.String, ErrorEventSessionType, kotlin.Boolean? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): ErrorEventSession
Expand Down Expand Up @@ -1157,7 +1157,7 @@ data class com.datadog.android.rum.model.LongTaskEvent
fun fromJson(kotlin.String): Application
fun fromJsonObject(com.google.gson.JsonObject): Application
data class LongTaskEventSession
constructor(kotlin.String, LongTaskEventSessionType, kotlin.Boolean? = null, kotlin.Boolean? = true)
constructor(kotlin.String, LongTaskEventSessionType, kotlin.Boolean? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): LongTaskEventSession
Expand Down Expand Up @@ -1327,7 +1327,7 @@ data class com.datadog.android.rum.model.ResourceEvent
fun fromJson(kotlin.String): Application
fun fromJsonObject(com.google.gson.JsonObject): Application
data class ResourceEventSession
constructor(kotlin.String, ResourceEventSessionType, kotlin.Boolean? = null, kotlin.Boolean? = true)
constructor(kotlin.String, ResourceEventSessionType, kotlin.Boolean? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): ResourceEventSession
Expand Down Expand Up @@ -1591,7 +1591,7 @@ data class com.datadog.android.rum.model.ViewEvent
fun fromJson(kotlin.String): Application
fun fromJsonObject(com.google.gson.JsonObject): Application
data class ViewEventSession
constructor(kotlin.String, ViewEventSessionType, kotlin.Boolean? = null, kotlin.Boolean? = true)
constructor(kotlin.String, ViewEventSessionType, kotlin.Boolean? = null, StartReason? = null, kotlin.Boolean? = true)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): ViewEventSession
Expand Down Expand Up @@ -1754,6 +1754,16 @@ data class com.datadog.android.rum.model.ViewEvent
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): ViewEventSessionType
enum StartReason
constructor(kotlin.String)
- APP_START
- INACTIVITY_TIMEOUT
- MAX_DURATION
- STOP_API
- BACKGROUND_EVENT
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): StartReason
enum LoadingType
constructor(kotlin.String)
- INITIAL_LOAD
Expand Down
6 changes: 0 additions & 6 deletions dd-sdk-android/src/main/json/rum/_common-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@
"type": "boolean",
"description": "Whether this session has a replay",
"readOnly": true
},
"is_active": {
"type": "boolean",
"description": "Whether this session is currently active. Set to false to manually stop a session",
"default": true,
"readOnly": true
}
},
"readOnly": true
Expand Down
20 changes: 20 additions & 0 deletions dd-sdk-android/src/main/json/rum/view-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,26 @@
},
"readOnly": true
},
"session": {
"type": "object",
"description": "Session properties",
"required": [],
"properties": {
"start_reason": {
"type": "string",
"description": "The precondition that led to the creation of the session",
"enum": ["app_start", "inactivity_timeout", "max_duration", "stop_api", "background_event"],
"readOnly": true
},
"is_active": {
"type": "boolean",
"description": "Whether this session is currently active. Set to false to manually stop a session",
"default": true,
"readOnly": true
}
},
"readOnly": true
},
"feature_flags": {
"type": "object",
"description": "Feature flags properties",
Expand Down

0 comments on commit d658bdf

Please sign in to comment.