# Google Cloud Monitoring v3 API - Class AlertPolicyServiceClientImpl (3.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.16.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [3.15.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.15.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [3.14.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.14.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [3.13.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.13.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [3.12.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.12.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [3.11.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.11.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [3.10.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.10.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [3.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.9.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [3.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.8.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [3.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.7.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [3.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.6.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [3.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.5.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [3.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.4.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [3.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.3.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.2.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [3.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.1.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [3.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.0.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.6.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.5.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.4.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.3.0/Google.Cloud.Monitoring.V3.AlertPolicyServiceClientImpl)

    public sealed class AlertPolicyServiceClientImpl : AlertPolicyServiceClient

Reference documentation and code samples for the Google Cloud Monitoring v3 API class AlertPolicyServiceClientImpl.

AlertPolicyService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [AlertPolicyServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient) \> AlertPolicyServiceClientImpl

## Inherited Members

[AlertPolicyServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_DefaultEndpoint) [AlertPolicyServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_DefaultScopes) [AlertPolicyServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_ServiceMetadata) [AlertPolicyServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_CreateAsync_System_Threading_CancellationToken_) [AlertPolicyServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_Create) [AlertPolicyServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_ShutdownDefaultChannelsAsync) [AlertPolicyServiceClient.ListAlertPolicies(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_ListAlertPolicies_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.ListAlertPoliciesAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_ListAlertPoliciesAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.ListAlertPolicies(ProjectName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_ListAlertPolicies_Google_Api_Gax_ResourceNames_ProjectName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.ListAlertPoliciesAsync(ProjectName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_ListAlertPoliciesAsync_Google_Api_Gax_ResourceNames_ProjectName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.ListAlertPolicies(OrganizationName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_ListAlertPolicies_Google_Api_Gax_ResourceNames_OrganizationName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.ListAlertPoliciesAsync(OrganizationName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_ListAlertPoliciesAsync_Google_Api_Gax_ResourceNames_OrganizationName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.ListAlertPolicies(FolderName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_ListAlertPolicies_Google_Api_Gax_ResourceNames_FolderName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.ListAlertPoliciesAsync(FolderName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_ListAlertPoliciesAsync_Google_Api_Gax_ResourceNames_FolderName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.ListAlertPolicies(IResourceName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_ListAlertPolicies_Google_Api_Gax_IResourceName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.ListAlertPoliciesAsync(IResourceName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_ListAlertPoliciesAsync_Google_Api_Gax_IResourceName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.GetAlertPolicyAsync(GetAlertPolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_GetAlertPolicyAsync_Google_Cloud_Monitoring_V3_GetAlertPolicyRequest_System_Threading_CancellationToken_) [AlertPolicyServiceClient.GetAlertPolicy(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_GetAlertPolicy_System_String_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.GetAlertPolicyAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_GetAlertPolicyAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.GetAlertPolicyAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_GetAlertPolicyAsync_System_String_System_Threading_CancellationToken_) [AlertPolicyServiceClient.GetAlertPolicy(AlertPolicyName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_GetAlertPolicy_Google_Cloud_Monitoring_V3_AlertPolicyName_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.GetAlertPolicyAsync(AlertPolicyName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_GetAlertPolicyAsync_Google_Cloud_Monitoring_V3_AlertPolicyName_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.GetAlertPolicyAsync(AlertPolicyName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_GetAlertPolicyAsync_Google_Cloud_Monitoring_V3_AlertPolicyName_System_Threading_CancellationToken_) [AlertPolicyServiceClient.GetAlertPolicy(IResourceName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_GetAlertPolicy_Google_Api_Gax_IResourceName_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.GetAlertPolicyAsync(IResourceName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_GetAlertPolicyAsync_Google_Api_Gax_IResourceName_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.GetAlertPolicyAsync(IResourceName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_GetAlertPolicyAsync_Google_Api_Gax_IResourceName_System_Threading_CancellationToken_) [AlertPolicyServiceClient.CreateAlertPolicyAsync(CreateAlertPolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_CreateAlertPolicyAsync_Google_Cloud_Monitoring_V3_CreateAlertPolicyRequest_System_Threading_CancellationToken_) [AlertPolicyServiceClient.CreateAlertPolicy(string, AlertPolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_CreateAlertPolicy_System_String_Google_Cloud_Monitoring_V3_AlertPolicy_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.CreateAlertPolicyAsync(string, AlertPolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_CreateAlertPolicyAsync_System_String_Google_Cloud_Monitoring_V3_AlertPolicy_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.CreateAlertPolicyAsync(string, AlertPolicy, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_CreateAlertPolicyAsync_System_String_Google_Cloud_Monitoring_V3_AlertPolicy_System_Threading_CancellationToken_) [AlertPolicyServiceClient.CreateAlertPolicy(ProjectName, AlertPolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_CreateAlertPolicy_Google_Api_Gax_ResourceNames_ProjectName_Google_Cloud_Monitoring_V3_AlertPolicy_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.CreateAlertPolicyAsync(ProjectName, AlertPolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_CreateAlertPolicyAsync_Google_Api_Gax_ResourceNames_ProjectName_Google_Cloud_Monitoring_V3_AlertPolicy_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.CreateAlertPolicyAsync(ProjectName, AlertPolicy, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_CreateAlertPolicyAsync_Google_Api_Gax_ResourceNames_ProjectName_Google_Cloud_Monitoring_V3_AlertPolicy_System_Threading_CancellationToken_) [AlertPolicyServiceClient.CreateAlertPolicy(OrganizationName, AlertPolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_CreateAlertPolicy_Google_Api_Gax_ResourceNames_OrganizationName_Google_Cloud_Monitoring_V3_AlertPolicy_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.CreateAlertPolicyAsync(OrganizationName, AlertPolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_CreateAlertPolicyAsync_Google_Api_Gax_ResourceNames_OrganizationName_Google_Cloud_Monitoring_V3_AlertPolicy_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.CreateAlertPolicyAsync(OrganizationName, AlertPolicy, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_CreateAlertPolicyAsync_Google_Api_Gax_ResourceNames_OrganizationName_Google_Cloud_Monitoring_V3_AlertPolicy_System_Threading_CancellationToken_) [AlertPolicyServiceClient.CreateAlertPolicy(FolderName, AlertPolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_CreateAlertPolicy_Google_Api_Gax_ResourceNames_FolderName_Google_Cloud_Monitoring_V3_AlertPolicy_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.CreateAlertPolicyAsync(FolderName, AlertPolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_CreateAlertPolicyAsync_Google_Api_Gax_ResourceNames_FolderName_Google_Cloud_Monitoring_V3_AlertPolicy_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.CreateAlertPolicyAsync(FolderName, AlertPolicy, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_CreateAlertPolicyAsync_Google_Api_Gax_ResourceNames_FolderName_Google_Cloud_Monitoring_V3_AlertPolicy_System_Threading_CancellationToken_) [AlertPolicyServiceClient.CreateAlertPolicy(IResourceName, AlertPolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_CreateAlertPolicy_Google_Api_Gax_IResourceName_Google_Cloud_Monitoring_V3_AlertPolicy_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.CreateAlertPolicyAsync(IResourceName, AlertPolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_CreateAlertPolicyAsync_Google_Api_Gax_IResourceName_Google_Cloud_Monitoring_V3_AlertPolicy_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.CreateAlertPolicyAsync(IResourceName, AlertPolicy, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_CreateAlertPolicyAsync_Google_Api_Gax_IResourceName_Google_Cloud_Monitoring_V3_AlertPolicy_System_Threading_CancellationToken_) [AlertPolicyServiceClient.DeleteAlertPolicyAsync(DeleteAlertPolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_DeleteAlertPolicyAsync_Google_Cloud_Monitoring_V3_DeleteAlertPolicyRequest_System_Threading_CancellationToken_) [AlertPolicyServiceClient.DeleteAlertPolicy(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_DeleteAlertPolicy_System_String_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.DeleteAlertPolicyAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_DeleteAlertPolicyAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.DeleteAlertPolicyAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_DeleteAlertPolicyAsync_System_String_System_Threading_CancellationToken_) [AlertPolicyServiceClient.DeleteAlertPolicy(AlertPolicyName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_DeleteAlertPolicy_Google_Cloud_Monitoring_V3_AlertPolicyName_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.DeleteAlertPolicyAsync(AlertPolicyName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_DeleteAlertPolicyAsync_Google_Cloud_Monitoring_V3_AlertPolicyName_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.DeleteAlertPolicyAsync(AlertPolicyName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_DeleteAlertPolicyAsync_Google_Cloud_Monitoring_V3_AlertPolicyName_System_Threading_CancellationToken_) [AlertPolicyServiceClient.DeleteAlertPolicy(IResourceName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_DeleteAlertPolicy_Google_Api_Gax_IResourceName_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.DeleteAlertPolicyAsync(IResourceName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_DeleteAlertPolicyAsync_Google_Api_Gax_IResourceName_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.DeleteAlertPolicyAsync(IResourceName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_DeleteAlertPolicyAsync_Google_Api_Gax_IResourceName_System_Threading_CancellationToken_) [AlertPolicyServiceClient.UpdateAlertPolicyAsync(UpdateAlertPolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_UpdateAlertPolicyAsync_Google_Cloud_Monitoring_V3_UpdateAlertPolicyRequest_System_Threading_CancellationToken_) [AlertPolicyServiceClient.UpdateAlertPolicy(FieldMask, AlertPolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_UpdateAlertPolicy_Google_Protobuf_WellKnownTypes_FieldMask_Google_Cloud_Monitoring_V3_AlertPolicy_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.UpdateAlertPolicyAsync(FieldMask, AlertPolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_UpdateAlertPolicyAsync_Google_Protobuf_WellKnownTypes_FieldMask_Google_Cloud_Monitoring_V3_AlertPolicy_Google_Api_Gax_Grpc_CallSettings_) [AlertPolicyServiceClient.UpdateAlertPolicyAsync(FieldMask, AlertPolicy, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_UpdateAlertPolicyAsync_Google_Protobuf_WellKnownTypes_FieldMask_Google_Cloud_Monitoring_V3_AlertPolicy_System_Threading_CancellationToken_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Monitoring.V3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3)

## Assembly

Google.Cloud.Monitoring.V3.dll

## Remarks

The AlertPolicyService API is used to manage (list, create, delete,
edit) alert policies in Cloud Monitoring. An alerting policy is
a description of the conditions under which some aspect of your
system is considered to be "unhealthy" and the ways to notify
people or services about this state. In addition to using this API, alert
policies can also be managed through
[Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
which can be reached by clicking the "Monitoring" tab in
[Cloud console](https://console.cloud.google.com/).

## Constructors

### AlertPolicyServiceClientImpl(AlertPolicyServiceClient, AlertPolicyServiceSettings, ILogger)

    public AlertPolicyServiceClientImpl(AlertPolicyService.AlertPolicyServiceClient grpcClient, AlertPolicyServiceSettings settings, ILogger logger)

Constructs a client wrapper for the AlertPolicyService service, with the specified gRPC client and settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyService.AlertPolicyServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceSettings` The base [AlertPolicyServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override AlertPolicyService.AlertPolicyServiceClient GrpcClient { get; }

The underlying gRPC AlertPolicyService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyService.AlertPolicyServiceClient` |   |

**Overrides** [AlertPolicyServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_GrpcClient)

## Methods

### CreateAlertPolicy(CreateAlertPolicyRequest, CallSettings)

    public override AlertPolicy CreateAlertPolicy(CreateAlertPolicyRequest request, CallSettings callSettings = null)

Creates a new alerting policy.

Design your application to single-thread API calls that modify the state of
alerting policies in a single project. This includes calls to
CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.CreateAlertPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicy` | The RPC response. |

**Overrides** [AlertPolicyServiceClient.CreateAlertPolicy(CreateAlertPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_CreateAlertPolicy_Google_Cloud_Monitoring_V3_CreateAlertPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### CreateAlertPolicyAsync(CreateAlertPolicyRequest, CallSettings)

    public override Task<AlertPolicy> CreateAlertPolicyAsync(CreateAlertPolicyRequest request, CallSettings callSettings = null)

Creates a new alerting policy.

Design your application to single-thread API calls that modify the state of
alerting policies in a single project. This includes calls to
CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.CreateAlertPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicy` | A Task containing the RPC response. |

**Overrides** [AlertPolicyServiceClient.CreateAlertPolicyAsync(CreateAlertPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_CreateAlertPolicyAsync_Google_Cloud_Monitoring_V3_CreateAlertPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteAlertPolicy(DeleteAlertPolicyRequest, CallSettings)

    public override void DeleteAlertPolicy(DeleteAlertPolicyRequest request, CallSettings callSettings = null)

Deletes an alerting policy.

Design your application to single-thread API calls that modify the state of
alerting policies in a single project. This includes calls to
CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.DeleteAlertPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Overrides** [AlertPolicyServiceClient.DeleteAlertPolicy(DeleteAlertPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_DeleteAlertPolicy_Google_Cloud_Monitoring_V3_DeleteAlertPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteAlertPolicyAsync(DeleteAlertPolicyRequest, CallSettings)

    public override Task DeleteAlertPolicyAsync(DeleteAlertPolicyRequest request, CallSettings callSettings = null)

Deletes an alerting policy.

Design your application to single-thread API calls that modify the state of
alerting policies in a single project. This includes calls to
CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.DeleteAlertPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Overrides** [AlertPolicyServiceClient.DeleteAlertPolicyAsync(DeleteAlertPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_DeleteAlertPolicyAsync_Google_Cloud_Monitoring_V3_DeleteAlertPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetAlertPolicy(GetAlertPolicyRequest, CallSettings)

    public override AlertPolicy GetAlertPolicy(GetAlertPolicyRequest request, CallSettings callSettings = null)

Gets a single alerting policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.GetAlertPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicy` | The RPC response. |

**Overrides** [AlertPolicyServiceClient.GetAlertPolicy(GetAlertPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_GetAlertPolicy_Google_Cloud_Monitoring_V3_GetAlertPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetAlertPolicyAsync(GetAlertPolicyRequest, CallSettings)

    public override Task<AlertPolicy> GetAlertPolicyAsync(GetAlertPolicyRequest request, CallSettings callSettings = null)

Gets a single alerting policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.GetAlertPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicy` | A Task containing the RPC response. |

**Overrides** [AlertPolicyServiceClient.GetAlertPolicyAsync(GetAlertPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_GetAlertPolicyAsync_Google_Cloud_Monitoring_V3_GetAlertPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListAlertPolicies(ListAlertPoliciesRequest, CallSettings)

    public override PagedEnumerable<ListAlertPoliciesResponse, AlertPolicy> ListAlertPolicies(ListAlertPoliciesRequest request, CallSettings callSettings = null)

Lists the existing alerting policies for the workspace.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListAlertPoliciesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListAlertPoliciesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicy` | A pageable sequence of [AlertPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicy) resources. |

**Overrides** [AlertPolicyServiceClient.ListAlertPolicies(ListAlertPoliciesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_ListAlertPolicies_Google_Cloud_Monitoring_V3_ListAlertPoliciesRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListAlertPoliciesAsync(ListAlertPoliciesRequest, CallSettings)

    public override PagedAsyncEnumerable<ListAlertPoliciesResponse, AlertPolicy> ListAlertPoliciesAsync(ListAlertPoliciesRequest request, CallSettings callSettings = null)

Lists the existing alerting policies for the workspace.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListAlertPoliciesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListAlertPoliciesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicy` | A pageable asynchronous sequence of [AlertPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicy) resources. |

**Overrides** [AlertPolicyServiceClient.ListAlertPoliciesAsync(ListAlertPoliciesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_ListAlertPoliciesAsync_Google_Cloud_Monitoring_V3_ListAlertPoliciesRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateAlertPolicy(UpdateAlertPolicyRequest, CallSettings)

    public override AlertPolicy UpdateAlertPolicy(UpdateAlertPolicyRequest request, CallSettings callSettings = null)

Updates an alerting policy. You can either replace the entire policy with
a new one or replace only certain fields in the current alerting policy by
specifying the fields to be updated via `updateMask`. Returns the
updated alerting policy.

Design your application to single-thread API calls that modify the state of
alerting policies in a single project. This includes calls to
CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.UpdateAlertPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicy` | The RPC response. |

**Overrides** [AlertPolicyServiceClient.UpdateAlertPolicy(UpdateAlertPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_UpdateAlertPolicy_Google_Cloud_Monitoring_V3_UpdateAlertPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateAlertPolicyAsync(UpdateAlertPolicyRequest, CallSettings)

    public override Task<AlertPolicy> UpdateAlertPolicyAsync(UpdateAlertPolicyRequest request, CallSettings callSettings = null)

Updates an alerting policy. You can either replace the entire policy with
a new one or replace only certain fields in the current alerting policy by
specifying the fields to be updated via `updateMask`. Returns the
updated alerting policy.

Design your application to single-thread API calls that modify the state of
alerting policies in a single project. This includes calls to
CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.UpdateAlertPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicy` | A Task containing the RPC response. |

**Overrides** [AlertPolicyServiceClient.UpdateAlertPolicyAsync(UpdateAlertPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.AlertPolicyServiceClient#Google_Cloud_Monitoring_V3_AlertPolicyServiceClient_UpdateAlertPolicyAsync_Google_Cloud_Monitoring_V3_UpdateAlertPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)