@@ -40,8 +40,24 @@ defmodule Sentry.CheckIn do
40
40
unit: :year | :month | :week | :day | :hour | :minute
41
41
}
42
42
43
+ @ typedoc """
44
+ The type for the monitor_config that can be part of the checking
45
+ """
46
+ @ typedoc since: "10.10.0"
47
+ @ type monitor_config ( ) :: % {
48
+ required ( :schedule ) => monitor_config_schedule ( ) ,
49
+ optional ( :checkin_margin ) => number ( ) ,
50
+ optional ( :max_runtime ) => number ( ) ,
51
+ optional ( :failure_issue_threshold ) => number ( ) ,
52
+ optional ( :recovery_threshold ) => number ( ) ,
53
+ optional ( :timezone ) => String . t ( ) ,
54
+ optional ( :owner ) => String . t ( )
55
+ }
56
+
43
57
@ typedoc """
44
58
The type for the check-in struct.
59
+
60
+ `:owner` within `:monitor_config` is available since v10.10.0.
45
61
"""
46
62
@ type t ( ) :: % __MODULE__ {
47
63
check_in_id: String . t ( ) ,
@@ -50,16 +66,7 @@ defmodule Sentry.CheckIn do
50
66
duration: float ( ) | nil ,
51
67
release: String . t ( ) | nil ,
52
68
environment: String . t ( ) | nil ,
53
- monitor_config:
54
- nil
55
- | % {
56
- required ( :schedule ) => monitor_config_schedule ( ) ,
57
- optional ( :checkin_margin ) => number ( ) ,
58
- optional ( :max_runtime ) => number ( ) ,
59
- optional ( :failure_issue_threshold ) => number ( ) ,
60
- optional ( :recovery_threshold ) => number ( ) ,
61
- optional ( :timezone ) => String . t ( )
62
- } ,
69
+ monitor_config: nil | monitor_config ( ) ,
63
70
contexts: Interfaces . context ( )
64
71
}
65
72
@@ -127,6 +134,7 @@ defmodule Sentry.CheckIn do
127
134
failure_issue_threshold: number_schema_opts ,
128
135
recovery_threshold: number_schema_opts ,
129
136
timezone: [ type: :string ] ,
137
+ owner: [ type: :string ] ,
130
138
schedule: [
131
139
type:
132
140
{ :or ,
0 commit comments