Class Alert
An alert is the representation of a violation of an alert policy. It is a read-only resource that cannot be modified by the accompanied API.
Implements
Inherited Members
Namespace: Google.Apis.Monitoring.v3.Data
Assembly: Google.Apis.Monitoring.v3.dll
Syntax
public class Alert : IDirectResponseSchema
Properties
CloseTime
object representation of CloseTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CloseTimeDateTimeOffset instead.")]
public virtual object CloseTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
CloseTimeDateTimeOffset
DateTimeOffset representation of CloseTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CloseTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
CloseTimeRaw
The time when the alert was closed.
Declaration
[JsonProperty("closeTime")]
public virtual string CloseTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Log
The log information associated with the alert. This field is only populated for log-based alerts.
Declaration
[JsonProperty("log")]
public virtual LogMetadata Log { get; set; }
Property Value
| Type | Description |
|---|---|
| LogMetadata |
Metadata
The metadata of the monitored resource.
Declaration
[JsonProperty("metadata")]
public virtual MonitoredResourceMetadata Metadata { get; set; }
Property Value
| Type | Description |
|---|---|
| MonitoredResourceMetadata |
Metric
The metric type and any metric labels preserved from the incident's generating condition.
Declaration
[JsonProperty("metric")]
public virtual Metric Metric { get; set; }
Property Value
| Type | Description |
|---|---|
| Metric |
Name
Identifier. The name of the alert.The format is: projects/[PROJECT_ID_OR_NUMBER]/alerts/[ALERT_ID] The [ALERT_ID] is a system-assigned unique identifier for the alert.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OpenTime
object representation of OpenTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use OpenTimeDateTimeOffset instead.")]
public virtual object OpenTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
OpenTimeDateTimeOffset
DateTimeOffset representation of OpenTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? OpenTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
OpenTimeRaw
The time when the alert was opened.
Declaration
[JsonProperty("openTime")]
public virtual string OpenTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Policy
The snapshot of the alert policy that generated this alert.
Declaration
[JsonProperty("policy")]
public virtual PolicySnapshot Policy { get; set; }
Property Value
| Type | Description |
|---|---|
| PolicySnapshot |
Resource
The monitored resource type and any monitored resource labels preserved from the incident's generating condition.
Declaration
[JsonProperty("resource")]
public virtual MonitoredResource Resource { get; set; }
Property Value
| Type | Description |
|---|---|
| MonitoredResource |
State
Output only. The current state of the alert.
Declaration
[JsonProperty("state")]
public virtual string State { get; set; }
Property Value
| Type | Description |
|---|---|
| string |