Resource: MetricDefinition
A MetricDefinition represents a specification for a type of aggregated metric value that Google should compute based on logs. The computed values can be used in various Google SecOps features.
| JSON representation |
|---|
{ "name": string, "description": string, "textDefinition": string, "author": string, "createTime": string, "updateTime": string, "lastUpdater": string, "state": enum ( |
| Fields | |
|---|---|
name |
Identifier. The unique resource name of the MetricDefinition. Format: |
description |
Output only. A description of the MetricDefinition as extracted from the |
textDefinition |
Required. Immutable. The full text of this MetricDefinition. For guidelines on writing a metric definition in YARA-L 2.0. |
author |
Output only. The username (e.g: email address) of the author of the MetricDefinition. |
createTime |
Output only. The timestamp at which the MetricDefinition was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. The timestamp at which the MetricDefinition was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
lastUpdater |
Output only. The username (e.g: email address) of the user that most recently updated the MetricDefinition. |
state |
Optional. The state of the MetricDefinition. When a MetricDefinition is created, the state |
computationNotification |
Output only. The most recent notification which arose for this MetricDefinition during computation, if there is one. Notifications may be errors or warnings. |
matchVariables[] |
Output only. The match variables of this MetricDefinition. This will be extracted from the |
matchWindowLength |
Output only. The duration over which values for this MetricDefinition will be computed. This will be extracted from the A duration in seconds with up to nine fractional digits, ending with ' |
outcomeVariables[] |
Output only. The names of the outcomes of this Metric. These outcome variables can be used in rules, searches, and dashboards in Google SecOps. This will be extracted from the |
MetricDefinitionState
The state of a MetricDefinition.
| Enums | |
|---|---|
METRIC_DEFINITION_STATE_UNSPECIFIED |
The MetricDefinition state is unspecified. |
ENABLED |
The MetricDefinition is enabled and can be used in other Google SecOps features. |
DISABLED |
The MetricDefinition is disabled and cannot be used in other Google SecOps features. |
PAUSED |
The MetricDefinition had a problem and had to be paused by Google. Paused metric definitions will be un-paused by Google once the issue is resolved, and cannot leave this state in any other way. |
Methods |
|
|---|---|
|
Creates a new MetricDefinition. |
|
Get a MetricDefinition for a given instance and metric definition resourcename. |
|
List all MetricDefinitions for a given instance. |
|
Updates a MetricDefinition. |