Interface AlertPolicy.DocumentationOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
AlertPolicy.Documentation, AlertPolicy.Documentation.Builder
Enclosing class:
AlertPolicy

public static interface AlertPolicy.DocumentationOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getContent

      String getContent()
       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](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars).
       
      string content = 1;
      Returns:
      The content.
    • getContentBytes

      com.google.protobuf.ByteString getContentBytes()
       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](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars).
       
      string content = 1;
      Returns:
      The bytes for content.
    • getMimeType

      String getMimeType()
       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.
       
      string mime_type = 2;
      Returns:
      The mimeType.
    • getMimeTypeBytes

      com.google.protobuf.ByteString getMimeTypeBytes()
       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.
       
      string mime_type = 2;
      Returns:
      The bytes for mimeType.
    • getSubject

      String getSubject()
       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](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).
      
       The contents of the subject line can be [templatized by using
       variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars).
       If this field is missing or empty, a default subject line will be
       generated.
       
      string subject = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The subject.
    • getSubjectBytes

      com.google.protobuf.ByteString getSubjectBytes()
       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](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).
      
       The contents of the subject line can be [templatized by using
       variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars).
       If this field is missing or empty, a default subject line will be
       generated.
       
      string subject = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for subject.
    • getLinksList

       Optional. Links to content such as playbooks, repositories, and other
       resources. This field can contain up to 3 entries.
       
      repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getLinks

      AlertPolicy.Documentation.Link getLinks(int index)
       Optional. Links to content such as playbooks, repositories, and other
       resources. This field can contain up to 3 entries.
       
      repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getLinksCount

      int getLinksCount()
       Optional. Links to content such as playbooks, repositories, and other
       resources. This field can contain up to 3 entries.
       
      repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getLinksOrBuilderList

      List<? extends AlertPolicy.Documentation.LinkOrBuilder> getLinksOrBuilderList()
       Optional. Links to content such as playbooks, repositories, and other
       resources. This field can contain up to 3 entries.
       
      repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getLinksOrBuilder

      AlertPolicy.Documentation.LinkOrBuilder getLinksOrBuilder(int index)
       Optional. Links to content such as playbooks, repositories, and other
       resources. This field can contain up to 3 entries.
       
      repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL];