FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sentry-php/src/MonitorConfig.php at sensitive-data-scrubber · getsentry/sentry-php · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
getsentry
/
sentry-php
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
475
Star
1.9k
Code
Issues
20
Pull requests
10
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
sentry-php
/
src
/
MonitorConfig.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
141 lines (113 loc) · 3.16 KB
Breadcrumbs
sentry-php
/
src
/
MonitorConfig.php
Copy path
File metadata and controls
141 lines (113 loc) · 3.16 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<?php
declare
(strict_types=
1
);
namespace
Sentry
;
final
class
MonitorConfig
{
/**
* @var MonitorSchedule The schedule of the monitor
*/
private
$
schedule
;
/**
* @var int|null The check-in margin in minutes
*/
private
$
checkinMargin
;
/**
* @var int|null The maximum runtime in minutes
*/
private
$
maxRuntime
;
/**
* @var string|null The timezone
*/
private
$
timezone
;
/**
* @var int|null The number of consecutive failed check-ins it takes before an issue is created
*/
private
$
failureIssueThreshold
;
/**
* @var int|null The number of consecutive OK check-ins it takes before an issue is resolved
*/
private
$
recoveryThreshold
;
public
function
__construct
(
MonitorSchedule
$
schedule
,
?
int
$
checkinMargin
=
null
,
?
int
$
maxRuntime
=
null
,
?
string
$
timezone
=
null
,
?
int
$
failureIssueThreshold
=
null
,
?
int
$
recoveryThreshold
=
null
) {
$
this
->
schedule
=
$
schedule
;
$
this
->
checkinMargin
=
$
checkinMargin
;
$
this
->
maxRuntime
=
$
maxRuntime
;
$
this
->
timezone
=
$
timezone
;
$
this
->
failureIssueThreshold
=
$
failureIssueThreshold
;
$
this
->
recoveryThreshold
=
$
recoveryThreshold
;
}
public
function
getSchedule
():
MonitorSchedule
{
return
$
this
->
schedule
;
}
public
function
setSchedule
(
MonitorSchedule
$
schedule
):
self
{
$
this
->
schedule
=
$
schedule
;
return
$
this
;
}
public
function
getCheckinMargin
(): ?
int
{
return
$
this
->
checkinMargin
;
}
public
function
setCheckinMargin
(?
int
$
checkinMargin
):
self
{
$
this
->
checkinMargin
=
$
checkinMargin
;
return
$
this
;
}
public
function
getMaxRuntime
(): ?
int
{
return
$
this
->
maxRuntime
;
}
public
function
setMaxRuntime
(?
int
$
maxRuntime
):
self
{
$
this
->
maxRuntime
=
$
maxRuntime
;
return
$
this
;
}
public
function
getTimezone
(): ?
string
{
return
$
this
->
timezone
;
}
public
function
setTimezone
(?
string
$
timezone
):
self
{
$
this
->
timezone
=
$
timezone
;
return
$
this
;
}
public
function
getFailureRecoveryThreshold
(): ?
int
{
return
$
this
->
failureIssueThreshold
;
}
public
function
setFailureRecoveryThreshold
(?
int
$
failureIssueThreshold
):
self
{
$
this
->
failureIssueThreshold
=
$
failureIssueThreshold
;
return
$
this
;
}
public
function
getRecoveryThreshold
(): ?
int
{
return
$
this
->
recoveryThreshold
;
}
public
function
setRecoveryThreshold
(?
int
$
recoveryThreshold
):
self
{
$
this
->
recoveryThreshold
=
$
recoveryThreshold
;
return
$
this
;
}
/**
* @return array<string, mixed>
*/
public
function
toArray
():
array
{
return
[
'
schedule
'
=>
$
this
->
schedule
->
toArray
(),
'
checkin_margin
'
=>
$
this
->
checkinMargin
,
'
max_runtime
'
=>
$
this
->
maxRuntime
,
'
timezone
'
=>
$
this
->
timezone
,
'
failure_issue_threshold
'
=>
$
this
->
failureIssueThreshold
,
'
recovery_threshold
'
=>
$
this
->
recoveryThreshold
,
];
}
}
Back
|
FazBrowse Home
|
New Git URL