MessageDetails

class oci.ons.models.MessageDetails(**kwargs)

Bases: object

The content of the message to be published.

__init__(**kwargs)

Initializes a new MessageDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • title (str) -- The value to assign to the title property of this MessageDetails.
  • body (str) -- The value to assign to the body property of this MessageDetails.
body

[Required] Gets the body of this MessageDetails. The body of the message to be published. For messageType of JSON, a default key-value pair is required. Example: {"default": "Alarm breached", "Email": "Alarm breached: <url>"}. Avoid entering confidential information.

Returns:The body of this MessageDetails.
Return type:str
title

Gets the title of this MessageDetails. The title of the message to be published. Avoid entering confidential information.

Returns:The title of this MessageDetails.
Return type:str