valueExtractor

@JvmName(name = "egcffapmntgfqmcb")
suspend fun valueExtractor(value: Output<String>)
@JvmName(name = "ctfmajxypsjwqgqv")
suspend fun valueExtractor(value: String?)

Parameters

value

A valueExtractor is required when using a distribution logs-based metric to extract the values to record from a log entry. Two functions are supported for value extraction - EXTRACT(field) or REGEXP_EXTRACT(field, regex). The argument are 1. field - The name of the log entry field from which the value is to be extracted. 2. regex - A regular expression using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax) with a single capture group to extract data from the specified log entry field. The value of the field is converted to a string before applying the regex. It is an error to specify a regex that does not include exactly one capture group.