From 1e14fb97c7199b30a8d33615dc4a8eb71afd836b Mon Sep 17 00:00:00 2001 From: Savannah Manning Date: Fri, 6 Dec 2024 11:48:49 +0100 Subject: [PATCH] owner added to monitor_config on check_in --- lib/sentry/check_in.ex | 4 +++- test/sentry_test.exs | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/sentry/check_in.ex b/lib/sentry/check_in.ex index f17db67f..188b56b5 100644 --- a/lib/sentry/check_in.ex +++ b/lib/sentry/check_in.ex @@ -58,7 +58,8 @@ defmodule Sentry.CheckIn do optional(:max_runtime) => number(), optional(:failure_issue_threshold) => number(), optional(:recovery_threshold) => number(), - optional(:timezone) => String.t() + optional(:timezone) => String.t(), + optional(:owner) => String.t() }, contexts: Interfaces.context() } @@ -127,6 +128,7 @@ defmodule Sentry.CheckIn do failure_issue_threshold: number_schema_opts, recovery_threshold: number_schema_opts, timezone: [type: :string], + owner: [type: :string], schedule: [ type: {:or, diff --git a/test/sentry_test.exs b/test/sentry_test.exs index 80b452b8..8b88bc69 100644 --- a/test/sentry_test.exs +++ b/test/sentry_test.exs @@ -171,7 +171,8 @@ defmodule SentryTest do "max_runtime" => 30, "failure_issue_threshold" => 2, "recovery_threshold" => 2, - "timezone" => "America/Los_Angeles" + "timezone" => "America/Los_Angeles", + "owner" => "user:john@example.com" } Plug.Conn.send_resp(conn, 200, ~s<{"id": "1923"}>) @@ -191,7 +192,8 @@ defmodule SentryTest do max_runtime: 30, failure_issue_threshold: 2, recovery_threshold: 2, - timezone: "America/Los_Angeles" + timezone: "America/Los_Angeles", + owner: "user:john@example.com" ] ) end