uk
.
gov
.
hmrc
.
alertconfig
.
builders
AlertConfigBuilder
Related Doc:
package builders
case class
AlertConfigBuilder
(
serviceName:
String
,
handlers:
Seq
[
String
] =
Seq("noop")
,
errorsLoggedThreshold:
Int
=
Int.MaxValue
,
exceptionThreshold:
Int
=
2
,
http5xxThreshold:
Http5xxThreshold
=
Http5xxThreshold()
,
http5xxPercentThreshold:
Double
=
100.0
,
httpAbsolutePercentSplitThresholds:
Seq
[
HttpAbsolutePercentSplitThreshold
] =
Nil
,
httpAbsolutePercentSplitDownstreamServiceThresholds:
Seq
[
HttpAbsolutePercentSplitDownstreamServiceThreshold
] =
Nil
,
httpAbsolutePercentSplitDownstreamHodThresholds:
Seq
[
HttpAbsolutePercentSplitDownstreamHodThreshold
] =
Nil
,
containerKillThreshold:
Int
=
1
,
httpStatusThresholds:
Seq
[
HttpStatusThreshold
] =
Nil
,
httpStatusPercentThresholds:
Seq
[
HttpStatusPercentThreshold
] =
Nil
,
metricsThresholds:
Seq
[
MetricsThreshold
] =
Nil
,
logMessageThresholds:
Seq
[
LogMessageThreshold
] =
Nil
,
totalHttpRequestThreshold:
Int
=
Int.MaxValue
,
averageCPUThreshold:
Int
=
Int.MaxValue
,
platformService:
Boolean
=
false
)
extends
Builder
[
Option
[
String
]] with
Product
with
Serializable
Linear Supertypes
Serializable
,
Serializable
,
Product
,
Equals
,
Builder
[
Option
[
String
]],
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
AlertConfigBuilder
Serializable
Serializable
Product
Equals
Builder
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Instance Constructors
new
AlertConfigBuilder
(
serviceName:
String
,
handlers:
Seq
[
String
] =
Seq("noop")
,
errorsLoggedThreshold:
Int
=
Int.MaxValue
,
exceptionThreshold:
Int
=
2
,
http5xxThreshold:
Http5xxThreshold
=
Http5xxThreshold()
,
http5xxPercentThreshold:
Double
=
100.0
,
httpAbsolutePercentSplitThresholds:
Seq
[
HttpAbsolutePercentSplitThreshold
] =
Nil
,
httpAbsolutePercentSplitDownstreamServiceThresholds:
Seq
[
HttpAbsolutePercentSplitDownstreamServiceThreshold
] =
Nil
,
httpAbsolutePercentSplitDownstreamHodThresholds:
Seq
[
HttpAbsolutePercentSplitDownstreamHodThreshold
] =
Nil
,
containerKillThreshold:
Int
=
1
,
httpStatusThresholds:
Seq
[
HttpStatusThreshold
] =
Nil
,
httpStatusPercentThresholds:
Seq
[
HttpStatusPercentThreshold
] =
Nil
,
metricsThresholds:
Seq
[
MetricsThreshold
] =
Nil
,
logMessageThresholds:
Seq
[
LogMessageThreshold
] =
Nil
,
totalHttpRequestThreshold:
Int
=
Int.MaxValue
,
averageCPUThreshold:
Int
=
Int.MaxValue
,
platformService:
Boolean
=
false
)
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
val
averageCPUThreshold
:
Int
def
build
:
Option
[
String
]
Definition Classes
AlertConfigBuilder
→
Builder
def
buildLogMessageThresholdsJson
:
String
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
val
containerKillThreshold
:
Int
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
val
errorsLoggedThreshold
:
Int
val
exceptionThreshold
:
Int
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
getZone
(
appConfigFile:
File
,
platformService:
Boolean
=
false
)
:
Option
[
String
]
val
handlers
:
Seq
[
String
]
val
http5xxPercentThreshold
:
Double
val
http5xxThreshold
:
Http5xxThreshold
val
httpAbsolutePercentSplitDownstreamHodThresholds
:
Seq
[
HttpAbsolutePercentSplitDownstreamHodThreshold
]
val
httpAbsolutePercentSplitDownstreamServiceThresholds
:
Seq
[
HttpAbsolutePercentSplitDownstreamServiceThreshold
]
val
httpAbsolutePercentSplitThresholds
:
Seq
[
HttpAbsolutePercentSplitThreshold
]
val
httpStatusPercentThresholds
:
Seq
[
HttpStatusPercentThreshold
]
val
httpStatusThresholds
:
Seq
[
HttpStatusThreshold
]
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
isPlatformService
(
platformService:
Boolean
)
:
AlertConfigBuilder
val
logMessageThresholds
:
Seq
[
LogMessageThreshold
]
val
logger
:
Logger
val
metricsThresholds
:
Seq
[
MetricsThreshold
]
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
val
platformService
:
Boolean
val
serviceName
:
String
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
val
totalHttpRequestThreshold
:
Int
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
withAverageCPUThreshold
(
averageCPUThreshold:
Int
)
:
AlertConfigBuilder
def
withContainerKillThreshold
(
containerCrashThreshold:
Int
)
:
AlertConfigBuilder
def
withErrorsLoggedThreshold
(
errorsLoggedThreshold:
Int
)
:
AlertConfigBuilder
def
withExceptionThreshold
(
exceptionThreshold:
Int
)
:
AlertConfigBuilder
def
withHandlers
(
handlers:
String
*
)
:
AlertConfigBuilder
def
withHttp5xxPercentThreshold
(
http5xxPercentThreshold:
Double
)
:
AlertConfigBuilder
def
withHttp5xxThreshold
(
http5xxThreshold:
Int
,
severity:
AlertSeverityType
=
AlertSeverity.critical
)
:
AlertConfigBuilder
def
withHttpAbsolutePercentSplitDownstreamHodThreshold
(
threshold:
HttpAbsolutePercentSplitDownstreamHodThreshold
)
:
AlertConfigBuilder
def
withHttpAbsolutePercentSplitDownstreamServiceThreshold
(
threshold:
HttpAbsolutePercentSplitDownstreamServiceThreshold
)
:
AlertConfigBuilder
def
withHttpAbsolutePercentSplitThreshold
(
threshold:
HttpAbsolutePercentSplitThreshold
)
:
AlertConfigBuilder
def
withHttpStatusPercentThreshold
(
threshold:
HttpStatusPercentThreshold
)
:
AlertConfigBuilder
def
withHttpStatusThreshold
(
threshold:
HttpStatusThreshold
)
:
AlertConfigBuilder
def
withLogMessageThreshold
(
message:
String
,
threshold:
Int
,
lessThanMode:
Boolean
=
false
)
:
AlertConfigBuilder
def
withMetricsThreshold
(
threshold:
MetricsThreshold
)
:
AlertConfigBuilder
Inherited from
Serializable
Inherited from
Serializable
Inherited from
Product
Inherited from
Equals
Inherited from
Builder
[
Option
[
String
]]
Inherited from
AnyRef
Inherited from
Any
Ungrouped