SignalType Class

public final class SignalType
extends ExpandableStringEnum<SignalType>

The type of signal the alert is based on, which could be metrics, logs or activity logs.

Field Summary

Modifier and Type Field and Description
static final SignalType LOG

Static value Log for SignalType.

static final SignalType METRIC

Static value Metric for SignalType.

static final SignalType UNKNOWN

Static value Unknown for SignalType.

Constructor Summary

Constructor Description
SignalType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SignalType value.

Method Summary

Modifier and Type Method and Description
static SignalType fromString(String name)

Creates or finds a SignalType from its string representation.

static Collection<SignalType> values()

Gets known SignalType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

LOG

public static final SignalType LOG

Static value Log for SignalType.

METRIC

public static final SignalType METRIC

Static value Metric for SignalType.

UNKNOWN

public static final SignalType UNKNOWN

Static value Unknown for SignalType.

Constructor Details

SignalType

@Deprecated
public SignalType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SignalType value.

Method Details

fromString

public static SignalType fromString(String name)

Creates or finds a SignalType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding SignalType.

values

public static Collection<SignalType> values()

Gets known SignalType values.

Returns:

known SignalType values.

Applies to