Amazon OpenSearch Service

2026/03/30 - Amazon OpenSearch Service - 2 new api methods

Changes  Added Cluster Insights API's In OpenSearch Service SDK.

DescribeInsightDetails (new) Link ¶

Describes the details of an existing insight for an Amazon OpenSearch Service domain. Returns detailed fields associated with the specified insight, such as text descriptions and metric data.

See also: AWS API Documentation

Request Syntax

client.describe_insight_details(
    Entity={
        'Type': 'Account'|'DomainName',
        'Value': 'string'
    },
    InsightId='string',
    ShowHtmlContent=True|False
)
type Entity:

dict

param Entity:

[REQUIRED]

The entity for which to retrieve insight details. Specifies the type and value of the entity, such as a domain name or Amazon Web Services account ID.

  • Type (string) -- [REQUIRED]

    The type of the entity. Possible values are Account and DomainName.

  • Value (string) --

    The value of the entity. For DomainName, this is the domain name. For Account, this is the Amazon Web Services account ID.

type InsightId:

string

param InsightId:

[REQUIRED]

The unique identifier of the insight to describe.

type ShowHtmlContent:

boolean

param ShowHtmlContent:

Specifies whether to show response with HTML content in response or not.

rtype:

dict

returns:

Response Syntax

{
    'Fields': [
        {
            'Name': 'string',
            'Type': 'text'|'metric',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    The result of a DescribeInsightDetails request. Contains the detailed fields associated with the specified insight.

    • Fields (list) --

      The list of fields that contain detailed information about the insight.

      • (dict) --

        Represents a field in the detailed view of an insight, returned by the DescribeInsightDetails operation.

        • Name (string) --

          The name of the insight field.

        • Type (string) --

          The type of the insight field. Possible values are text and metric.

        • Value (string) --

          The value of the insight field.

ListInsights (new) Link ¶

Lists insights for an Amazon OpenSearch Service domain or Amazon Web Services account. Returns a paginated list of insights based on the specified entity, filters, time range, and sort order.

See also: AWS API Documentation

Request Syntax

client.list_insights(
    Entity={
        'Type': 'Account'|'DomainName',
        'Value': 'string'
    },
    TimeRange={
        'From': 123,
        'To': 123
    },
    SortOrder='ASC'|'DESC',
    MaxResults=123,
    NextToken='string'
)
type Entity:

dict

param Entity:

[REQUIRED]

The entity for which to list insights. Specifies the type and value of the entity, such as a domain name or Amazon Web Services account ID.

  • Type (string) -- [REQUIRED]

    The type of the entity. Possible values are Account and DomainName.

  • Value (string) --

    The value of the entity. For DomainName, this is the domain name. For Account, this is the Amazon Web Services account ID.

type TimeRange:

dict

param TimeRange:

The time range for filtering insights, specified as epoch millisecond timestamps.

  • From (integer) -- [REQUIRED]

    The start of the time range, in epoch milliseconds.

  • To (integer) -- [REQUIRED]

    The end of the time range, in epoch milliseconds.

type SortOrder:

string

param SortOrder:

The sort order for the results. Possible values are ASC (ascending) and DESC (descending).

type MaxResults:

integer

param MaxResults:

An optional parameter that specifies the maximum number of results to return. You can use NextToken to get the next page of results. Valid values are 1 to 500.

type NextToken:

string

param NextToken:

If your initial ListInsights operation returns a NextToken, include the returned NextToken in subsequent ListInsights operations to retrieve the next page of results.

rtype:

dict

returns:

Response Syntax

{
    'Insights': [
        {
            'InsightId': 'string',
            'DisplayName': 'string',
            'Type': 'EVENT'|'RECOMMENDATION',
            'Priority': 'CRITICAL'|'HIGH'|'MEDIUM'|'LOW',
            'Status': 'ACTIVE'|'RESOLVED'|'DISMISSED',
            'CreationTime': datetime(2015, 1, 1),
            'UpdateTime': datetime(2015, 1, 1),
            'IsExperimental': True|False
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    The result of a ListInsights request. Contains the list of insights and a pagination token for retrieving the next page of results.

    • Insights (list) --

      The list of insights returned for the specified entity.

      • (dict) --

        Represents an insight returned by the ListInsights operation. An insight is a notification about a domain event or recommendation that helps you optimize your Amazon OpenSearch Service domain.

        • InsightId (string) --

          The unique identifier of the insight.

        • DisplayName (string) --

          The display name of the insight.

        • Type (string) --

          The type of the insight. Possible values are EVENT and RECOMMENDATION.

        • Priority (string) --

          The priority level of the insight. Possible values are CRITICAL, HIGH, MEDIUM, and LOW.

        • Status (string) --

          The current status of the insight. Possible values are ACTIVE, RESOLVED, and DISMISSED.

        • CreationTime (datetime) --

          The timestamp when the insight was created, in epoch milliseconds.

        • UpdateTime (datetime) --

          The timestamp when the insight was last updated, in epoch milliseconds.

        • IsExperimental (boolean) --

          Indicates whether the insight is experimental.

    • NextToken (string) --

      When NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Send the request again using the returned token to retrieve the next page.