Show / Hide Table of Contents

Class ProjectAlertRule

Inheritance
System.Object
Resource
CustomResource
ProjectAlertRule
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Rancher2
Assembly: Pulumi.Rancher2.dll
Syntax
public class ProjectAlertRule : CustomResource

Constructors

View Source

ProjectAlertRule(String, ProjectAlertRuleArgs, CustomResourceOptions)

Create a ProjectAlertRule resource with the given unique name, arguments, and options.

Declaration
public ProjectAlertRule(string name, ProjectAlertRuleArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ProjectAlertRuleArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Annotations

The project alert rule annotations (map)

Declaration
public Output<ImmutableDictionary<string, object>> Annotations { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>
View Source

GroupId

The project alert rule alert group ID (string)

Declaration
public Output<string> GroupId { get; }
Property Value
Type Description
Output<System.String>
View Source

GroupIntervalSeconds

The project alert rule group interval seconds. Default: 180 (int)

Declaration
public Output<int?> GroupIntervalSeconds { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

GroupWaitSeconds

The project alert rule group wait seconds. Default: 180 (int)

Declaration
public Output<int?> GroupWaitSeconds { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

Inherited

The project alert rule inherited. Default: true (bool)

Declaration
public Output<bool?> Inherited { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

Labels

The project alert rule labels (map)

Declaration
public Output<ImmutableDictionary<string, object>> Labels { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>
View Source

MetricRule

The project alert rule metric rule. ConflictsWith: `"pod_rule", "workload_rule"`` (list Maxitems:1)

Declaration
public Output<ProjectAlertRuleMetricRule> MetricRule { get; }
Property Value
Type Description
Output<ProjectAlertRuleMetricRule>
View Source

Name

The project alert rule name (string)

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

PodRule

The project alert rule pod rule. ConflictsWith: `"metric_rule", "workload_rule"`` (list Maxitems:1)

Declaration
public Output<ProjectAlertRulePodRule> PodRule { get; }
Property Value
Type Description
Output<ProjectAlertRulePodRule>
View Source

ProjectId

The project id where create project alert rule (string)

Declaration
public Output<string> ProjectId { get; }
Property Value
Type Description
Output<System.String>
View Source

RepeatIntervalSeconds

The project alert rule wait seconds. Default: 3600 (int)

Declaration
public Output<int?> RepeatIntervalSeconds { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

Severity

The project alert rule severity. Supported values : &quot;critical&quot; | &quot;info&quot; | &quot;warning&quot;. Default: critical (string)

Declaration
public Output<string> Severity { get; }
Property Value
Type Description
Output<System.String>
View Source

WorkloadRule

The project alert rule workload rule. ConflictsWith: `"metric_rule", "pod_rule"`` (list Maxitems:1)

Declaration
public Output<ProjectAlertRuleWorkloadRule> WorkloadRule { get; }
Property Value
Type Description
Output<ProjectAlertRuleWorkloadRule>

Methods

View Source

Get(String, Input<String>, ProjectAlertRuleState, CustomResourceOptions)

Get an existing ProjectAlertRule resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static ProjectAlertRule Get(string name, Input<string> id, ProjectAlertRuleState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ProjectAlertRuleState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
ProjectAlertRule
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.