Reference documentation and code samples for the Cloud Monitoring V3 API class Google::Cloud::Monitoring::V3::AlertPolicy::Documentation.
Documentation that is included in the notifications and incidents
pertaining to this policy.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#content
defcontent()->::String
Returns
(::String) — The body of the documentation, interpreted according to mime_type.
The content may not exceed 8,192 Unicode characters and may not exceed
more than 10,240 bytes when encoded in UTF-8 format, whichever is
smaller. This text can be templatized by using
variables.
#content=
defcontent=(value)->::String
Parameter
value (::String) — The body of the documentation, interpreted according to mime_type.
The content may not exceed 8,192 Unicode characters and may not exceed
more than 10,240 bytes when encoded in UTF-8 format, whichever is
smaller. This text can be templatized by using
variables.
Returns
(::String) — The body of the documentation, interpreted according to mime_type.
The content may not exceed 8,192 Unicode characters and may not exceed
more than 10,240 bytes when encoded in UTF-8 format, whichever is
smaller. This text can be templatized by using
variables.
(::String) — The format of the content field. Presently, only the value
"text/markdown" is supported. See
Markdown for more information.
#mime_type=
defmime_type=(value)->::String
Parameter
value (::String) — The format of the content field. Presently, only the value
"text/markdown" is supported. See
Markdown for more information.
Returns
(::String) — The format of the content field. Presently, only the value
"text/markdown" is supported. See
Markdown for more information.
#subject
defsubject()->::String
Returns
(::String) — Optional. The subject line of the notification. The subject line may not
exceed 10,240 bytes. In notifications generated by this policy, the
contents of the subject line after variable expansion will be truncated
to 255 bytes or shorter at the latest UTF-8 character boundary. The
255-byte limit is recommended by this
thread.
It is both the limit imposed by some third-party ticketing products and
it is common to define textual fields in databases as VARCHAR(255).
The contents of the subject line can be templatized by using
variables.
If this field is missing or empty, a default subject line will be
generated.
#subject=
defsubject=(value)->::String
Parameter
value (::String) — Optional. The subject line of the notification. The subject line may not
exceed 10,240 bytes. In notifications generated by this policy, the
contents of the subject line after variable expansion will be truncated
to 255 bytes or shorter at the latest UTF-8 character boundary. The
255-byte limit is recommended by this
thread.
It is both the limit imposed by some third-party ticketing products and
it is common to define textual fields in databases as VARCHAR(255).
The contents of the subject line can be templatized by using
variables.
If this field is missing or empty, a default subject line will be
generated.
Returns
(::String) — Optional. The subject line of the notification. The subject line may not
exceed 10,240 bytes. In notifications generated by this policy, the
contents of the subject line after variable expansion will be truncated
to 255 bytes or shorter at the latest UTF-8 character boundary. The
255-byte limit is recommended by this
thread.
It is both the limit imposed by some third-party ticketing products and
it is common to define textual fields in databases as VARCHAR(255).
The contents of the subject line can be templatized by using
variables.
If this field is missing or empty, a default subject line will be
generated.
[[["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::AlertPolicy::Documentation (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-AlertPolicy-Documentation)\n- [1.6.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.6.0/Google-Cloud-Monitoring-V3-AlertPolicy-Documentation)\n- [1.5.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.5.1/Google-Cloud-Monitoring-V3-AlertPolicy-Documentation)\n- [1.4.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.4.0/Google-Cloud-Monitoring-V3-AlertPolicy-Documentation)\n- [1.3.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.3.0/Google-Cloud-Monitoring-V3-AlertPolicy-Documentation)\n- [1.2.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.2.0/Google-Cloud-Monitoring-V3-AlertPolicy-Documentation)\n- [1.1.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.1.0/Google-Cloud-Monitoring-V3-AlertPolicy-Documentation)\n- [1.0.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.0.1/Google-Cloud-Monitoring-V3-AlertPolicy-Documentation)\n- [0.18.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.18.0/Google-Cloud-Monitoring-V3-AlertPolicy-Documentation)\n- [0.17.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.17.0/Google-Cloud-Monitoring-V3-AlertPolicy-Documentation)\n- [0.16.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.16.0/Google-Cloud-Monitoring-V3-AlertPolicy-Documentation)\n- [0.15.2](/ruby/docs/reference/google-cloud-monitoring-v3/0.15.2/Google-Cloud-Monitoring-V3-AlertPolicy-Documentation)\n- [0.14.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.14.0/Google-Cloud-Monitoring-V3-AlertPolicy-Documentation)\n- [0.13.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.13.0/Google-Cloud-Monitoring-V3-AlertPolicy-Documentation)\n- [0.12.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.12.1/Google-Cloud-Monitoring-V3-AlertPolicy-Documentation)\n- [0.11.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.11.0/Google-Cloud-Monitoring-V3-AlertPolicy-Documentation)\n- [0.10.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.10.0/Google-Cloud-Monitoring-V3-AlertPolicy-Documentation)\n- [0.9.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.9.0/Google-Cloud-Monitoring-V3-AlertPolicy-Documentation)\n- [0.8.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.8.0/Google-Cloud-Monitoring-V3-AlertPolicy-Documentation)\n- [0.7.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.7.1/Google-Cloud-Monitoring-V3-AlertPolicy-Documentation) \nReference documentation and code samples for the Cloud Monitoring V3 API class Google::Cloud::Monitoring::V3::AlertPolicy::Documentation.\n\nDocumentation that is included in the notifications and incidents\npertaining to this policy. \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### #content\n\n def content() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The body of the documentation, interpreted according to `mime_type`. The content may not exceed 8,192 Unicode characters and may not exceed more than 10,240 bytes when encoded in UTF-8 format, whichever is smaller. This text can be [templatized by using\n variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars).\n\n### #content=\n\n def content=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The body of the documentation, interpreted according to `mime_type`. The content may not exceed 8,192 Unicode characters and may not exceed more than 10,240 bytes when encoded in UTF-8 format, whichever is smaller. This text can be [templatized by using\nvariables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). \n**Returns**\n\n- (::String) --- The body of the documentation, interpreted according to `mime_type`. The content may not exceed 8,192 Unicode characters and may not exceed more than 10,240 bytes when encoded in UTF-8 format, whichever is smaller. This text can be [templatized by using\n variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars).\n\n### #links\n\n def links() -\u003e ::Array\u003c::Google::Cloud::Monitoring::V3::AlertPolicy::Documentation::Link\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Monitoring::V3::AlertPolicy::Documentation::Link](./Google-Cloud-Monitoring-V3-AlertPolicy-Documentation-Link)\\\u003e) --- Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.\n\n### #links=\n\n def links=(value) -\u003e ::Array\u003c::Google::Cloud::Monitoring::V3::AlertPolicy::Documentation::Link\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::Monitoring::V3::AlertPolicy::Documentation::Link](./Google-Cloud-Monitoring-V3-AlertPolicy-Documentation-Link)\\\u003e) --- Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Monitoring::V3::AlertPolicy::Documentation::Link](./Google-Cloud-Monitoring-V3-AlertPolicy-Documentation-Link)\\\u003e) --- Optional. Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.\n\n### #mime_type\n\n def mime_type() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The format of the `content` field. Presently, only the value `\"text/markdown\"` is supported. See [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information.\n\n### #mime_type=\n\n def mime_type=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The format of the `content` field. Presently, only the value `\"text/markdown\"` is supported. See [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information. \n**Returns**\n\n- (::String) --- The format of the `content` field. Presently, only the value `\"text/markdown\"` is supported. See [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information.\n\n### #subject\n\n def subject() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The subject line of the notification. The subject line may not exceed 10,240 bytes. In notifications generated by this policy, the contents of the subject line after variable expansion will be truncated to 255 bytes or shorter at the latest UTF-8 character boundary. The 255-byte limit is recommended by [this\n thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit). It is both the limit imposed by some third-party ticketing products and it is common to define textual fields in databases as VARCHAR(255).\n\n\n The contents of the subject line can be [templatized by using\n variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars).\n If this field is missing or empty, a default subject line will be\n generated.\n\n### #subject=\n\n def subject=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The subject line of the notification. The subject line may not exceed 10,240 bytes. In notifications generated by this policy, the contents of the subject line after variable expansion will be truncated to 255 bytes or shorter at the latest UTF-8 character boundary. The 255-byte limit is recommended by [this\n thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit). It is both the limit imposed by some third-party ticketing products and it is common to define textual fields in databases as VARCHAR(255).\n\n\n The contents of the subject line can be [templatized by using\n variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars).\n If this field is missing or empty, a default subject line will be\ngenerated. \n**Returns**\n\n- (::String) --- Optional. The subject line of the notification. The subject line may not exceed 10,240 bytes. In notifications generated by this policy, the contents of the subject line after variable expansion will be truncated to 255 bytes or shorter at the latest UTF-8 character boundary. The 255-byte limit is recommended by [this\n thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit). It is both the limit imposed by some third-party ticketing products and it is common to define textual fields in databases as VARCHAR(255).\n\n\n The contents of the subject line can be [templatized by using\n variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars).\n If this field is missing or empty, a default subject line will be\n generated."]]