Class ProjectsResource.AlertPoliciesResource.CreateRequest
Creates a new alerting policy.
Inheritance
System.Object
ProjectsResource.AlertPoliciesResource.CreateRequest
Inherited Members
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: Google.Apis.Monitoring.v3
Assembly: Google.Apis.Monitoring.v3.dll
Syntax
public class CreateRequest : MonitoringBaseServiceRequest<AlertPolicy>, IClientServiceRequest<AlertPolicy>, IClientServiceRequest
Constructors
CreateRequest(IClientService, AlertPolicy, String)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, AlertPolicy body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| AlertPolicy | body | |
| System.String | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Monitoring.v3.Data.AlertPolicy>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Monitoring.v3.Data.AlertPolicy>.MethodName
Name
Required. The project in which to create the alerting policy. The format is: projects/[PROJECT_ID_OR_NUMBER] Note that this field names the parent container in which the alerting policy will be written, not the name of the created policy. |name| must be a host project of a workspace, otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned will have a name that contains a normalized representation of this name as a prefix but adds a suffix of the form /alertPolicies/[ALERT_POLICY_ID], identifying the policy in the container.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Monitoring.v3.Data.AlertPolicy>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| System.Object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Monitoring.v3.Data.AlertPolicy>.GetBody()
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.Monitoring.v3.MonitoringBaseServiceRequest<Google.Apis.Monitoring.v3.Data.AlertPolicy>.InitParameters()