public class AlertMeta extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
AlertMeta.Key
Keys that may be used for alert metadata
|
| Modifier and Type | Field and Description |
|---|---|
static AlertMeta.Key[] |
IPADDRESS_KEYS
Keys that are known to contain IP address values
|
| Constructor and Description |
|---|
AlertMeta(String key,
String value)
Create new
AlertMeta |
| Modifier and Type | Method and Description |
|---|---|
String |
getKey()
Get metadata key
|
String |
getValue()
Get metadata value
|
static String |
joinListValues(AlertMeta.Key key,
List<String> input)
Join a list of values for a specific metadata key
|
static void |
main(String[] args)
Convert metadata to various formats
|
void |
setValue(String value)
Set metadata value
|
static List<String> |
splitListValues(AlertMeta.Key key,
String input)
Split a list of values for a specific metadata key
|
public static final AlertMeta.Key[] IPADDRESS_KEYS
public static String joinListValues(AlertMeta.Key key, List<String> input) throws IOException
key - Keyinput - List of valuesIOExceptionpublic static List<String> splitListValues(AlertMeta.Key key, String input) throws IOException
key - Keyinput - StringIOExceptionpublic String getKey()
public void setValue(String value)
value - Value to setpublic String getValue()
public static void main(String[] args) throws IOException
This main function can be used to export metadata keys in golang format, and to export a BigQuery view query that is suitable for metrics usage.
args - ArgumentsIOExceptionCopyright © 2022. All rights reserved.