(::String) — Required. The
project whose
alert policies are to be listed. The format is:
projects/[PROJECT_ID_OR_NUMBER]
Note that this field names the parent container in which the alerting
policies to be listed are stored. To retrieve a single alerting policy
by name, use the
GetAlertPolicy
operation, instead.
#name=
defname=(value)->::String
Parameter
value (::String) — Required. The
project whose
alert policies are to be listed. The format is:
projects/[PROJECT_ID_OR_NUMBER]
Note that this field names the parent container in which the alerting
policies to be listed are stored. To retrieve a single alerting policy
by name, use the
GetAlertPolicy
operation, instead.
Returns
(::String) — Required. The
project whose
alert policies are to be listed. The format is:
projects/[PROJECT_ID_OR_NUMBER]
Note that this field names the parent container in which the alerting
policies to be listed are stored. To retrieve a single alerting policy
by name, use the
GetAlertPolicy
operation, instead.
#order_by
deforder_by()->::String
Returns
(::String) — Optional. A comma-separated list of fields by which to sort the result.
Supports the same set of field references as the filter field. Entries
can be prefixed with a minus sign to sort by the field in descending order.
value (::String) — Optional. A comma-separated list of fields by which to sort the result.
Supports the same set of field references as the filter field. Entries
can be prefixed with a minus sign to sort by the field in descending order.
(::String) — Optional. A comma-separated list of fields by which to sort the result.
Supports the same set of field references as the filter field. Entries
can be prefixed with a minus sign to sort by the field in descending order.
(::Integer) — Optional. The maximum number of results to return in a single response.
#page_size=
defpage_size=(value)->::Integer
Parameter
value (::Integer) — Optional. The maximum number of results to return in a single response.
Returns
(::Integer) — Optional. The maximum number of results to return in a single response.
#page_token
defpage_token()->::String
Returns
(::String) — Optional. If this field is not empty then it must contain the
nextPageToken value returned by a previous call to this method. Using
this field causes the method to return more results from the previous
method call.
#page_token=
defpage_token=(value)->::String
Parameter
value (::String) — Optional. If this field is not empty then it must contain the
nextPageToken value returned by a previous call to this method. Using
this field causes the method to return more results from the previous
method call.
Returns
(::String) — Optional. If this field is not empty then it must contain the
nextPageToken value returned by a previous call to this method. Using
this field causes the method to return more results from the previous
method call.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Monitoring V3 API - Class Google::Cloud::Monitoring::V3::ListAlertPoliciesRequest (v1.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.1 (latest)](/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest)\n- [1.6.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.6.0/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest)\n- [1.5.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.5.1/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest)\n- [1.4.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.4.0/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest)\n- [1.3.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.3.0/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.2.0/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.1.0/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.0.1/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest)\n- [0.18.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.18.0/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest)\n- [0.17.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.17.0/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest)\n- [0.16.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.16.0/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest)\n- [0.15.2](/ruby/docs/reference/google-cloud-monitoring-v3/0.15.2/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest)\n- [0.14.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.14.0/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest)\n- [0.13.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.13.0/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest)\n- [0.12.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.12.1/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest)\n- [0.11.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.11.0/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.10.0/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.9.0/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.8.0/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest)\n- [0.7.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.7.1/Google-Cloud-Monitoring-V3-ListAlertPoliciesRequest) \nReference documentation and code samples for the Cloud Monitoring V3 API class Google::Cloud::Monitoring::V3::ListAlertPoliciesRequest.\n\nThe protocol for the `ListAlertPolicies` request. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #filter\n\n def filter() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. If provided, this field specifies the criteria that must be met by alert policies to be included in the response.\n\n For more details, see [sorting and\n filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).\n\n### #filter=\n\n def filter=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. If provided, this field specifies the criteria that must be met by alert policies to be included in the response.\n\n\n For more details, see [sorting and\nfiltering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering). \n**Returns**\n\n- (::String) --- Optional. If provided, this field specifies the criteria that must be met by alert policies to be included in the response.\n\n For more details, see [sorting and\n filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) whose alert policies are to be listed. The format is:\n\n\n projects/[PROJECT_ID_OR_NUMBER]\n\n Note that this field names the parent container in which the alerting\n policies to be listed are stored. To retrieve a single alerting policy\n by name, use the\n [GetAlertPolicy](/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-AlertPolicyService-Client#Google__Cloud__Monitoring__V3__AlertPolicyService__Client_get_alert_policy_instance_ \"Google::Cloud::Monitoring::V3::AlertPolicyService::Client#get_alert_policy (method)\")\n operation, instead.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) whose alert policies are to be listed. The format is:\n\n\n projects/[PROJECT_ID_OR_NUMBER]\n\n Note that this field names the parent container in which the alerting\n policies to be listed are stored. To retrieve a single alerting policy\n by name, use the\n [GetAlertPolicy](/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-AlertPolicyService-Client#Google__Cloud__Monitoring__V3__AlertPolicyService__Client_get_alert_policy_instance_ \"Google::Cloud::Monitoring::V3::AlertPolicyService::Client#get_alert_policy (method)\")\noperation, instead. \n**Returns**\n\n- (::String) --- Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) whose alert policies are to be listed. The format is:\n\n\n projects/[PROJECT_ID_OR_NUMBER]\n\n Note that this field names the parent container in which the alerting\n policies to be listed are stored. To retrieve a single alerting policy\n by name, use the\n [GetAlertPolicy](/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-AlertPolicyService-Client#Google__Cloud__Monitoring__V3__AlertPolicyService__Client_get_alert_policy_instance_ \"Google::Cloud::Monitoring::V3::AlertPolicyService::Client#get_alert_policy (method)\")\n operation, instead.\n\n### #order_by\n\n def order_by() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. A comma-separated list of fields by which to sort the result. Supports the same set of field references as the `filter` field. Entries can be prefixed with a minus sign to sort by the field in descending order.\n\n\n For more details, see [sorting and\n filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).\n\n### #order_by=\n\n def order_by=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. A comma-separated list of fields by which to sort the result. Supports the same set of field references as the `filter` field. Entries can be prefixed with a minus sign to sort by the field in descending order.\n\n\n For more details, see [sorting and\nfiltering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering). \n**Returns**\n\n- (::String) --- Optional. A comma-separated list of fields by which to sort the result. Supports the same set of field references as the `filter` field. Entries can be prefixed with a minus sign to sort by the field in descending order.\n\n\n For more details, see [sorting and\n filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).\n\n### #page_size\n\n def page_size() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Optional. The maximum number of results to return in a single response.\n\n### #page_size=\n\n def page_size=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Optional. The maximum number of results to return in a single response. \n**Returns**\n\n- (::Integer) --- Optional. The maximum number of results to return in a single response.\n\n### #page_token\n\n def page_token() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. If this field is not empty then it must contain the `nextPageToken` value returned by a previous call to this method. Using this field causes the method to return more results from the previous method call.\n\n### #page_token=\n\n def page_token=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. If this field is not empty then it must contain the `nextPageToken` value returned by a previous call to this method. Using this field causes the method to return more results from the previous method call. \n**Returns**\n\n- (::String) --- Optional. If this field is not empty then it must contain the `nextPageToken` value returned by a previous call to this method. Using this field causes the method to return more results from the previous method call."]]