@@ -40,8 +40,24 @@ defmodule Sentry.CheckIn do
4040 unit: :year | :month | :week | :day | :hour | :minute
4141 }
4242
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+
4357 @ typedoc """
4458 The type for the check-in struct.
59+
60+ `:owner` within `:monitor_config` is available since v10.10.0.
4561 """
4662 @ type t ( ) :: % __MODULE__ {
4763 check_in_id: String . t ( ) ,
@@ -50,16 +66,7 @@ defmodule Sentry.CheckIn do
5066 duration: float ( ) | nil ,
5167 release: String . t ( ) | nil ,
5268 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 ( ) ,
6370 contexts: Interfaces . context ( )
6471 }
6572
@@ -127,6 +134,7 @@ defmodule Sentry.CheckIn do
127134 failure_issue_threshold: number_schema_opts ,
128135 recovery_threshold: number_schema_opts ,
129136 timezone: [ type: :string ] ,
137+ owner: [ type: :string ] ,
130138 schedule: [
131139 type:
132140 { :or ,
0 commit comments