Interface AlertPolicy.DocumentationOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getContent()
      The body of the documentation, interpreted according to `mime_type`.
      com.google.protobuf.ByteString getContentBytes()
      The body of the documentation, interpreted according to `mime_type`.
      String getMimeType()
      The format of the `content` field.
      com.google.protobuf.ByteString getMimeTypeBytes()
      The format of the `content` field.
      String getSubject()
      Optional.
      com.google.protobuf.ByteString getSubjectBytes()
      Optional.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • 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).
         
        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).
         
        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).
         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).
         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.