CodeGuruProfiler

Table of Contents

Client

class CodeGuruProfiler.Client

A low-level client representing Amazon CodeGuru Profiler

This section provides documentation for the Amazon CodeGuru Profiler API operations.

Amazon CodeGuru Profiler collects runtime performance data from your live applications, and provides recommendations that can help you fine-tune your application performance. Using machine learning algorithms, CodeGuru Profiler can help you find your most expensive lines of code and suggest ways you can improve efficiency and remove CPU bottlenecks.

Amazon CodeGuru Profiler provides different visualizations of profiling data to help you identify what code is running on the CPU, see how much time is consumed, and suggest ways to reduce CPU utilization.

Note

Amazon CodeGuru Profiler currently supports applications written in all Java virtual machine (JVM) languages and Python. While CodeGuru Profiler supports both visualizations and recommendations for applications written in Java, it can also generate visualizations and a subset of recommendations for applications written in other JVM languages and Python.

For more information, see What is Amazon CodeGuru Profiler in the Amazon CodeGuru Profiler User Guide .

import boto3

client = boto3.client('codeguruprofiler')

These are the available methods:

add_notification_channels(**kwargs)

Add up to 2 anomaly notifications channels for a profiling group.

See also: AWS API Documentation

Request Syntax

response = client.add_notification_channels(
    channels=[
        {
            'eventPublishers': [
                'AnomalyDetection',
            ],
            'id': 'string',
            'uri': 'string'
        },
    ],
    profilingGroupName='string'
)
Parameters
  • channels (list) --

    [REQUIRED]

    One or 2 channels to report to when anomalies are detected.

    • (dict) --

      Notification medium for users to get alerted for events that occur in application profile. We support SNS topic as a notification channel.

      • eventPublishers (list) -- [REQUIRED]

        List of publishers for different type of events that may be detected in an application from the profile. Anomaly detection is the only event publisher in Profiler.

        • (string) --
      • id (string) --

        Unique identifier for each Channel in the notification configuration of a Profiling Group. A random UUID for channelId is used when adding a channel to the notification configuration if not specified in the request.

      • uri (string) -- [REQUIRED]

        Unique arn of the resource to be used for notifications. We support a valid SNS topic arn as a channel uri.

  • profilingGroupName (string) --

    [REQUIRED]

    The name of the profiling group that we are setting up notifications for.

Return type

dict

Returns

Response Syntax

{
    'notificationConfiguration': {
        'channels': [
            {
                'eventPublishers': [
                    'AnomalyDetection',
                ],
                'id': 'string',
                'uri': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) --

    The structure representing the AddNotificationChannelsResponse.

    • notificationConfiguration (dict) --

      The new notification configuration for this profiling group.

      • channels (list) --

        List of up to two channels to be used for sending notifications for events detected from the application profile.

        • (dict) --

          Notification medium for users to get alerted for events that occur in application profile. We support SNS topic as a notification channel.

          • eventPublishers (list) --

            List of publishers for different type of events that may be detected in an application from the profile. Anomaly detection is the only event publisher in Profiler.

            • (string) --
          • id (string) --

            Unique identifier for each Channel in the notification configuration of a Profiling Group. A random UUID for channelId is used when adding a channel to the notification configuration if not specified in the request.

          • uri (string) --

            Unique arn of the resource to be used for notifications. We support a valid SNS topic arn as a channel uri.

Exceptions

  • CodeGuruProfiler.Client.exceptions.ServiceQuotaExceededException
  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ConflictException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException
batch_get_frame_metric_data(**kwargs)

Returns the time series of values for a requested list of frame metrics from a time period.

See also: AWS API Documentation

Request Syntax

response = client.batch_get_frame_metric_data(
    endTime=datetime(2015, 1, 1),
    frameMetrics=[
        {
            'frameName': 'string',
            'threadStates': [
                'string',
            ],
            'type': 'AggregatedRelativeTotalTime'
        },
    ],
    period='string',
    profilingGroupName='string',
    startTime=datetime(2015, 1, 1),
    targetResolution='PT5M'|'PT1H'|'P1D'
)
Parameters
  • endTime (datetime) -- The end time of the time period for the returned time series values. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
  • frameMetrics (list) --

    The details of the metrics that are used to request a time series of values. The metric includes the name of the frame, the aggregation type to calculate the metric value for the frame, and the thread states to use to get the count for the metric value of the frame.

    • (dict) --

      The frame name, metric type, and thread states. These are used to derive the value of the metric for the frame.

      • frameName (string) -- [REQUIRED]

        Name of the method common across the multiple occurrences of a frame in an application profile.

      • threadStates (list) -- [REQUIRED]

        List of application runtime thread states used to get the counts for a frame a derive a metric value.

        • (string) --
      • type (string) -- [REQUIRED]

        A type of aggregation that specifies how a metric for a frame is analyzed. The supported value AggregatedRelativeTotalTime is an aggregation of the metric value for one frame that is calculated across the occurrences of all frames in a profile.

  • period (string) -- The duration of the frame metrics used to return the time series values. Specify using the ISO 8601 format. The maximum period duration is one day (PT24H or P1D ).
  • profilingGroupName (string) --

    [REQUIRED]

    The name of the profiling group associated with the the frame metrics used to return the time series values.

  • startTime (datetime) -- The start time of the time period for the frame metrics used to return the time series values. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
  • targetResolution (string) --

    The requested resolution of time steps for the returned time series of values. If the requested target resolution is not available due to data not being retained we provide a best effort result by falling back to the most granular available resolution after the target resolution. There are 3 valid values.

    • P1D — 1 day
    • PT1H — 1 hour
    • PT5M — 5 minutes
Return type

dict

Returns

Response Syntax

{
    'endTime': datetime(2015, 1, 1),
    'endTimes': [
        {
            'value': datetime(2015, 1, 1)
        },
    ],
    'frameMetricData': [
        {
            'frameMetric': {
                'frameName': 'string',
                'threadStates': [
                    'string',
                ],
                'type': 'AggregatedRelativeTotalTime'
            },
            'values': [
                123.0,
            ]
        },
    ],
    'resolution': 'PT5M'|'PT1H'|'P1D',
    'startTime': datetime(2015, 1, 1),
    'unprocessedEndTimes': {
        'string': [
            {
                'value': datetime(2015, 1, 1)
            },
        ]
    }
}

Response Structure

  • (dict) --

    The structure representing the BatchGetFrameMetricDataResponse.

    • endTime (datetime) --

      The end time of the time period for the returned time series values. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

    • endTimes (list) --

      List of instances, or time steps, in the time series. For example, if the period is one day (PT24H) ), and the resolution is five minutes (PT5M ), then there are 288 endTimes in the list that are each five minutes appart.

      • (dict) --

        A data type that contains a Timestamp object. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

        • value (datetime) --

          A Timestamp . This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

    • frameMetricData (list) --

      Details of the metrics to request a time series of values. The metric includes the name of the frame, the aggregation type to calculate the metric value for the frame, and the thread states to use to get the count for the metric value of the frame.

      • (dict) --

        Information about a frame metric and its values.

        • frameMetric (dict) --

          The frame name, metric type, and thread states. These are used to derive the value of the metric for the frame.

          • frameName (string) --

            Name of the method common across the multiple occurrences of a frame in an application profile.

          • threadStates (list) --

            List of application runtime thread states used to get the counts for a frame a derive a metric value.

            • (string) --
          • type (string) --

            A type of aggregation that specifies how a metric for a frame is analyzed. The supported value AggregatedRelativeTotalTime is an aggregation of the metric value for one frame that is calculated across the occurrences of all frames in a profile.

        • values (list) --

          A list of values that are associated with a frame metric.

          • (float) --
    • resolution (string) --

      Resolution or granularity of the profile data used to generate the time series. This is the value used to jump through time steps in a time series. There are 3 valid values.

      • P1D — 1 day
      • PT1H — 1 hour
      • PT5M — 5 minutes
    • startTime (datetime) --

      The start time of the time period for the returned time series values. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

    • unprocessedEndTimes (dict) --

      List of instances which remained unprocessed. This will create a missing time step in the list of end times.

      • (string) --

        • (list) --

          • (dict) --

            A data type that contains a Timestamp object. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

            • value (datetime) --

              A Timestamp . This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException
can_paginate(operation_name)

Check if an operation can be paginated.

Parameters
operation_name (string) -- The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator("create_foo").
Returns
True if the operation can be paginated, False otherwise.
configure_agent(**kwargs)

Used by profiler agents to report their current state and to receive remote configuration updates. For example, ConfigureAgent can be used to tell an agent whether to profile or not and for how long to return profiling data.

See also: AWS API Documentation

Request Syntax

response = client.configure_agent(
    fleetInstanceId='string',
    metadata={
        'string': 'string'
    },
    profilingGroupName='string'
)
Parameters
  • fleetInstanceId (string) -- A universally unique identifier (UUID) for a profiling instance. For example, if the profiling instance is an Amazon EC2 instance, it is the instance ID. If it is an AWS Fargate container, it is the container's task ID.
  • metadata (dict) --

    Metadata captured about the compute platform the agent is running on. It includes information about sampling and reporting. The valid fields are:

    • COMPUTE_PLATFORM - The compute platform on which the agent is running
    • AGENT_ID - The ID for an agent instance.
    • AWS_REQUEST_ID - The AWS request ID of a Lambda invocation.
    • EXECUTION_ENVIRONMENT - The execution environment a Lambda function is running on.
    • LAMBDA_FUNCTION_ARN - The Amazon Resource Name (ARN) that is used to invoke a Lambda function.
    • LAMBDA_MEMORY_LIMIT_IN_MB - The memory allocated to a Lambda function.
    • LAMBDA_REMAINING_TIME_IN_MILLISECONDS - The time in milliseconds before execution of a Lambda function times out.
    • LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS - The time in milliseconds between two invocations of a Lambda function.
    • LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS - The time in milliseconds for the previous Lambda invocation.
    • (string) --
      • (string) --
  • profilingGroupName (string) --

    [REQUIRED]

    The name of the profiling group for which the configured agent is collecting profiling data.

Return type

dict

Returns

Response Syntax

{
    'configuration': {
        'agentParameters': {
            'string': 'string'
        },
        'periodInSeconds': 123,
        'shouldProfile': True|False
    }
}

Response Structure

  • (dict) --

    The structure representing the configureAgentResponse.

    • configuration (dict) --

      An ` AgentConfiguration https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AgentConfiguration.html`__ object that specifies if an agent profiles or not and for how long to return profiling data.

      • agentParameters (dict) --

        Parameters used by the profiler. The valid parameters are:

        • MaxStackDepth - The maximum depth of the stacks in the code that is represented in the profile. For example, if CodeGuru Profiler finds a method A , which calls method B , which calls method C , which calls method D , then the depth is 4. If the maxDepth is set to 2, then the profiler evaluates A and B .
        • MemoryUsageLimitPercent - The percentage of memory that is used by the profiler.
        • MinimumTimeForReportingInMilliseconds - The minimum time in milliseconds between sending reports.
        • ReportingIntervalInMilliseconds - The reporting interval in milliseconds used to report profiles.
        • SamplingIntervalInMilliseconds - The sampling interval in milliseconds that is used to profile samples.
        • (string) --
          • (string) --
      • periodInSeconds (integer) --

        How long a profiling agent should send profiling data using ` ConfigureAgent https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ConfigureAgent.html`__ . For example, if this is set to 300, the profiling agent calls ` ConfigureAgent https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ConfigureAgent.html`__ every 5 minutes to submit the profiled data collected during that period.

      • shouldProfile (boolean) --

        A Boolean that specifies whether the profiling agent collects profiling data or not. Set to true to enable profiling.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException
create_profiling_group(**kwargs)

Creates a profiling group.

See also: AWS API Documentation

Request Syntax

response = client.create_profiling_group(
    agentOrchestrationConfig={
        'profilingEnabled': True|False
    },
    clientToken='string',
    computePlatform='Default'|'AWSLambda',
    profilingGroupName='string',
    tags={
        'string': 'string'
    }
)
Parameters
  • agentOrchestrationConfig (dict) --

    Specifies whether profiling is enabled or disabled for the created profiling group.

    • profilingEnabled (boolean) -- [REQUIRED]

      A Boolean that specifies whether the profiling agent collects profiling data or not. Set to true to enable profiling.

  • clientToken (string) --

    [REQUIRED]

    Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to prevent the accidental creation of duplicate profiling groups if there are failures and retries.

    This field is autopopulated if not provided.

  • computePlatform (string) -- The compute platform of the profiling group. Use AWSLambda if your application runs on AWS Lambda. Use Default if your application runs on a compute platform that is not AWS Lambda, such an Amazon EC2 instance, an on-premises server, or a different platform. If not specified, Default is used.
  • profilingGroupName (string) --

    [REQUIRED]

    The name of the profiling group to create.

  • tags (dict) --

    A list of tags to add to the created profiling group.

    • (string) --
      • (string) --
Return type

dict

Returns

Response Syntax

{
    'profilingGroup': {
        'agentOrchestrationConfig': {
            'profilingEnabled': True|False
        },
        'arn': 'string',
        'computePlatform': 'Default'|'AWSLambda',
        'createdAt': datetime(2015, 1, 1),
        'name': 'string',
        'profilingStatus': {
            'latestAgentOrchestratedAt': datetime(2015, 1, 1),
            'latestAgentProfileReportedAt': datetime(2015, 1, 1),
            'latestAggregatedProfile': {
                'period': 'PT5M'|'PT1H'|'P1D',
                'start': datetime(2015, 1, 1)
            }
        },
        'tags': {
            'string': 'string'
        },
        'updatedAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    The structure representing the createProfilingGroupResponse.

    • profilingGroup (dict) --

      The returned ` ProfilingGroupDescription https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ProfilingGroupDescription.html`__ object that contains information about the created profiling group.

      • agentOrchestrationConfig (dict) --

        An ` AgentOrchestrationConfig https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AgentOrchestrationConfig.html`__ object that indicates if the profiling group is enabled for profiled or not.

        • profilingEnabled (boolean) --

          A Boolean that specifies whether the profiling agent collects profiling data or not. Set to true to enable profiling.

      • arn (string) --

        The Amazon Resource Name (ARN) identifying the profiling group resource.

      • computePlatform (string) --

        The compute platform of the profiling group. If it is set to AWSLambda , then the profiled application runs on AWS Lambda. If it is set to Default , then the profiled application runs on a compute platform that is not AWS Lambda, such an Amazon EC2 instance, an on-premises server, or a different platform. The default is Default .

      • createdAt (datetime) --

        The time when the profiling group was created. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

      • name (string) --

        The name of the profiling group.

      • profilingStatus (dict) --

        A ` ProfilingStatus https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ProfilingStatus.html`__ object that includes information about the last time a profile agent pinged back, the last time a profile was received, and the aggregation period and start time for the most recent aggregated profile.

        • latestAgentOrchestratedAt (datetime) --

          The date and time when the profiling agent most recently pinged back. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

        • latestAgentProfileReportedAt (datetime) --

          The date and time when the most recent profile was received. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

        • latestAggregatedProfile (dict) --

          An ` AggregatedProfileTime https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AggregatedProfileTime.html`__ object that contains the aggregation period and start time for an aggregated profile.

          • period (string) --

            The aggregation period. This indicates the period during which an aggregation profile collects posted agent profiles for a profiling group. Use one of three valid durations that are specified using the ISO 8601 format.

            • P1D — 1 day
            • PT1H — 1 hour
            • PT5M — 5 minutes
          • start (datetime) --

            The time that aggregation of posted agent profiles for a profiling group starts. The aggregation profile contains profiles posted by the agent starting at this time for an aggregation period specified by the period property of the AggregatedProfileTime object.

            Specify start using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

      • tags (dict) --

        A list of the tags that belong to this profiling group.

        • (string) --
          • (string) --
      • updatedAt (datetime) --

        The date and time when the profiling group was last updated. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

Exceptions

  • CodeGuruProfiler.Client.exceptions.ServiceQuotaExceededException
  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ConflictException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
delete_profiling_group(**kwargs)

Deletes a profiling group.

See also: AWS API Documentation

Request Syntax

response = client.delete_profiling_group(
    profilingGroupName='string'
)
Parameters
profilingGroupName (string) --

[REQUIRED]

The name of the profiling group to delete.

Return type
dict
Returns
Response Syntax
{}

Response Structure

  • (dict) --

    The structure representing the deleteProfilingGroupResponse.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ConflictException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException
describe_profiling_group(**kwargs)

Returns a ` ProfilingGroupDescription https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ProfilingGroupDescription.html`__ object that contains information about the requested profiling group.

See also: AWS API Documentation

Request Syntax

response = client.describe_profiling_group(
    profilingGroupName='string'
)
Parameters
profilingGroupName (string) --

[REQUIRED]

The name of the profiling group to get information about.

Return type
dict
Returns
Response Syntax
{
    'profilingGroup': {
        'agentOrchestrationConfig': {
            'profilingEnabled': True|False
        },
        'arn': 'string',
        'computePlatform': 'Default'|'AWSLambda',
        'createdAt': datetime(2015, 1, 1),
        'name': 'string',
        'profilingStatus': {
            'latestAgentOrchestratedAt': datetime(2015, 1, 1),
            'latestAgentProfileReportedAt': datetime(2015, 1, 1),
            'latestAggregatedProfile': {
                'period': 'PT5M'|'PT1H'|'P1D',
                'start': datetime(2015, 1, 1)
            }
        },
        'tags': {
            'string': 'string'
        },
        'updatedAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    The structure representing the describeProfilingGroupResponse.

    • profilingGroup (dict) --

      The returned ` ProfilingGroupDescription https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ProfilingGroupDescription.html`__ object that contains information about the requested profiling group.

      • agentOrchestrationConfig (dict) --

        An ` AgentOrchestrationConfig https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AgentOrchestrationConfig.html`__ object that indicates if the profiling group is enabled for profiled or not.

        • profilingEnabled (boolean) --

          A Boolean that specifies whether the profiling agent collects profiling data or not. Set to true to enable profiling.

      • arn (string) --

        The Amazon Resource Name (ARN) identifying the profiling group resource.

      • computePlatform (string) --

        The compute platform of the profiling group. If it is set to AWSLambda , then the profiled application runs on AWS Lambda. If it is set to Default , then the profiled application runs on a compute platform that is not AWS Lambda, such an Amazon EC2 instance, an on-premises server, or a different platform. The default is Default .

      • createdAt (datetime) --

        The time when the profiling group was created. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

      • name (string) --

        The name of the profiling group.

      • profilingStatus (dict) --

        A ` ProfilingStatus https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ProfilingStatus.html`__ object that includes information about the last time a profile agent pinged back, the last time a profile was received, and the aggregation period and start time for the most recent aggregated profile.

        • latestAgentOrchestratedAt (datetime) --

          The date and time when the profiling agent most recently pinged back. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

        • latestAgentProfileReportedAt (datetime) --

          The date and time when the most recent profile was received. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

        • latestAggregatedProfile (dict) --

          An ` AggregatedProfileTime https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AggregatedProfileTime.html`__ object that contains the aggregation period and start time for an aggregated profile.

          • period (string) --

            The aggregation period. This indicates the period during which an aggregation profile collects posted agent profiles for a profiling group. Use one of three valid durations that are specified using the ISO 8601 format.

            • P1D — 1 day
            • PT1H — 1 hour
            • PT5M — 5 minutes
          • start (datetime) --

            The time that aggregation of posted agent profiles for a profiling group starts. The aggregation profile contains profiles posted by the agent starting at this time for an aggregation period specified by the period property of the AggregatedProfileTime object.

            Specify start using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

      • tags (dict) --

        A list of the tags that belong to this profiling group.

        • (string) --
          • (string) --
      • updatedAt (datetime) --

        The date and time when the profiling group was last updated. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException
get_findings_report_account_summary(**kwargs)

Returns a list of ` FindingsReportSummary https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_FindingsReportSummary.html`__ objects that contain analysis results for all profiling groups in your AWS account.

See also: AWS API Documentation

Request Syntax

response = client.get_findings_report_account_summary(
    dailyReportsOnly=True|False,
    maxResults=123,
    nextToken='string'
)
Parameters
  • dailyReportsOnly (boolean) -- A Boolean value indicating whether to only return reports from daily profiles. If set to True , only analysis data from daily profiles is returned. If set to False , analysis data is returned from smaller time windows (for example, one hour).
  • maxResults (integer) -- The maximum number of results returned by GetFindingsReportAccountSummary in paginated output. When this parameter is used, GetFindingsReportAccountSummary only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another GetFindingsReportAccountSummary request with the returned nextToken value.
  • nextToken (string) --

    The nextToken value returned from a previous paginated GetFindingsReportAccountSummary request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value.

    Note

    This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

Return type

dict

Returns

Response Syntax

{
    'nextToken': 'string',
    'reportSummaries': [
        {
            'id': 'string',
            'profileEndTime': datetime(2015, 1, 1),
            'profileStartTime': datetime(2015, 1, 1),
            'profilingGroupName': 'string',
            'totalNumberOfFindings': 123
        },
    ]
}

Response Structure

  • (dict) --

    The structure representing the GetFindingsReportAccountSummaryResponse.

    • nextToken (string) --

      The nextToken value to include in a future GetFindingsReportAccountSummary request. When the results of a GetFindingsReportAccountSummary request exceed maxResults , this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

    • reportSummaries (list) --

      The return list of ` FindingsReportSummary https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_FindingsReportSummary.html`__ objects taht contain summaries of analysis results for all profiling groups in your AWS account.

      • (dict) --

        Information about potential recommendations that might be created from the analysis of profiling data.

        • id (string) --

          The universally unique identifier (UUID) of the recommendation report.

        • profileEndTime (datetime) --

          The end time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

        • profileStartTime (datetime) --

          The start time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

        • profilingGroupName (string) --

          The name of the profiling group that is associated with the analysis data.

        • totalNumberOfFindings (integer) --

          The total number of different recommendations that were found by the analysis.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
get_notification_configuration(**kwargs)

Get the current configuration for anomaly notifications for a profiling group.

See also: AWS API Documentation

Request Syntax

response = client.get_notification_configuration(
    profilingGroupName='string'
)
Parameters
profilingGroupName (string) --

[REQUIRED]

The name of the profiling group we want to get the notification configuration for.

Return type
dict
Returns
Response Syntax
{
    'notificationConfiguration': {
        'channels': [
            {
                'eventPublishers': [
                    'AnomalyDetection',
                ],
                'id': 'string',
                'uri': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) --

    The structure representing the GetNotificationConfigurationResponse.

    • notificationConfiguration (dict) --

      The current notification configuration for this profiling group.

      • channels (list) --

        List of up to two channels to be used for sending notifications for events detected from the application profile.

        • (dict) --

          Notification medium for users to get alerted for events that occur in application profile. We support SNS topic as a notification channel.

          • eventPublishers (list) --

            List of publishers for different type of events that may be detected in an application from the profile. Anomaly detection is the only event publisher in Profiler.

            • (string) --
          • id (string) --

            Unique identifier for each Channel in the notification configuration of a Profiling Group. A random UUID for channelId is used when adding a channel to the notification configuration if not specified in the request.

          • uri (string) --

            Unique arn of the resource to be used for notifications. We support a valid SNS topic arn as a channel uri.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException
get_paginator(operation_name)

Create a paginator for an operation.

Parameters
operation_name (string) -- The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator("create_foo").
Raises OperationNotPageableError
Raised if the operation is not pageable. You can use the client.can_paginate method to check if an operation is pageable.
Return type
L{botocore.paginate.Paginator}
Returns
A paginator object.
get_policy(**kwargs)

Returns the JSON-formatted resource-based policy on a profiling group.

See also: AWS API Documentation

Request Syntax

response = client.get_policy(
    profilingGroupName='string'
)
Parameters
profilingGroupName (string) --

[REQUIRED]

The name of the profiling group.

Return type
dict
Returns
Response Syntax
{
    'policy': 'string',
    'revisionId': 'string'
}

Response Structure

  • (dict) --

    The structure representing the getPolicyResponse .

    • policy (string) --

      The JSON-formatted resource-based policy attached to the ProfilingGroup .

    • revisionId (string) --

      A unique identifier for the current revision of the returned policy.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException
get_profile(**kwargs)

Gets the aggregated profile of a profiling group for a specified time range. Amazon CodeGuru Profiler collects posted agent profiles for a profiling group into aggregated profiles.

<note> <p> Because aggregated profiles expire over time <code>GetProfile</code> is not idempotent. </p> </note> <p> Specify the time range for the requested aggregated profile using 1 or 2 of the following parameters: <code>startTime</code>, <code>endTime</code>, <code>period</code>. The maximum time range allowed is 7 days. If you specify all 3 parameters, an exception is thrown. If you specify only <code>period</code>, the latest aggregated profile is returned. </p> <p> Aggregated profiles are available with aggregation periods of 5 minutes, 1 hour, and 1 day, aligned to UTC. The aggregation period of an aggregated profile determines how long it is retained. For more information, see <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AggregatedProfileTime.html"> <code>AggregatedProfileTime</code> </a>. The aggregated profile's aggregation period determines how long it is retained by CodeGuru Profiler. </p> <ul> <li> <p> If the aggregation period is 5 minutes, the aggregated profile is retained for 15 days. </p> </li> <li> <p> If the aggregation period is 1 hour, the aggregated profile is retained for 60 days. </p> </li> <li> <p> If the aggregation period is 1 day, the aggregated profile is retained for 3 years. </p> </li> </ul> <p>There are two use cases for calling <code>GetProfile</code>.</p> <ol> <li> <p> If you want to return an aggregated profile that already exists, use <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ListProfileTimes.html"> <code>ListProfileTimes</code> </a> to view the time ranges of existing aggregated profiles. Use them in a <code>GetProfile</code> request to return a specific, existing aggregated profile. </p> </li> <li> <p> If you want to return an aggregated profile for a time range that doesn't align with an existing aggregated profile, then CodeGuru Profiler makes a best effort to combine existing aggregated profiles from the requested time range and return them as one aggregated profile. </p> <p> If aggregated profiles do not exist for the full time range requested, then aggregated profiles for a smaller time range are returned. For example, if the requested time range is from 00:00 to 00:20, and the existing aggregated profiles are from 00:15 and 00:25, then the aggregated profiles from 00:15 to 00:20 are returned. </p> </li> </ol>

See also: AWS API Documentation

Request Syntax

response = client.get_profile(
    accept='string',
    endTime=datetime(2015, 1, 1),
    maxDepth=123,
    period='string',
    profilingGroupName='string',
    startTime=datetime(2015, 1, 1)
)
Parameters
  • accept (string) --

    The format of the returned profiling data. The format maps to the Accept and Content-Type headers of the HTTP request. You can specify one of the following: or the default .

    <ul> <li> <p> <code>application/json</code> standard JSON format </p> </li> <li> <p> <code>application/x-amzn-ion</code> the Amazon Ion data format. For more information, see <a href="http://amzn.github.io/ion-docs/">Amazon Ion</a>. </p> </li> </ul>
  • endTime (datetime) --

    The end time of the requested profile. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

    If you specify endTime , then you must also specify period or startTime , but not both.

  • maxDepth (integer) -- The maximum depth of the stacks in the code that is represented in the aggregated profile. For example, if CodeGuru Profiler finds a method A , which calls method B , which calls method C , which calls method D , then the depth is 4. If the maxDepth is set to 2, then the aggregated profile contains representations of methods A and B .
  • period (string) --

    Used with startTime or endTime to specify the time range for the returned aggregated profile. Specify using the ISO 8601 format. For example, P1DT1H1M1S .

    <p> To get the latest aggregated profile, specify only <code>period</code>. </p>
  • profilingGroupName (string) --

    [REQUIRED]

    The name of the profiling group to get.

  • startTime (datetime) --

    The start time of the profile to get. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

    <p> If you specify <code>startTime</code>, then you must also specify <code>period</code> or <code>endTime</code>, but not both. </p>
Return type

dict

Returns

Response Syntax

{
    'contentEncoding': 'string',
    'contentType': 'string',
    'profile': StreamingBody()
}

Response Structure

  • (dict) --

    The structure representing the getProfileResponse.

    • contentEncoding (string) --

      The content encoding of the profile.

    • contentType (string) --

      The content type of the profile in the payload. It is either application/json or the default application/x-amzn-ion .

    • profile (StreamingBody) --

      Information about the profile.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException
get_recommendations(**kwargs)

Returns a list of ` Recommendation https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_Recommendation.html`__ objects that contain recommendations for a profiling group for a given time period. A list of ` Anomaly https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_Anomaly.html`__ objects that contains details about anomalies detected in the profiling group for the same time period is also returned.

See also: AWS API Documentation

Request Syntax

response = client.get_recommendations(
    endTime=datetime(2015, 1, 1),
    locale='string',
    profilingGroupName='string',
    startTime=datetime(2015, 1, 1)
)
Parameters
  • endTime (datetime) --

    [REQUIRED]

    The start time of the profile to get analysis data about. You must specify startTime and endTime . This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

  • locale (string) --

    The language used to provide analysis. Specify using a string that is one of the following BCP 47 language codes.

    • de-DE - German, Germany
    • en-GB - English, United Kingdom
    • en-US - English, United States
    • es-ES - Spanish, Spain
    • fr-FR - French, France
    • it-IT - Italian, Italy
    • ja-JP - Japanese, Japan
    • ko-KR - Korean, Republic of Korea
    • pt-BR - Portugese, Brazil
    • zh-CN - Chinese, China
    • zh-TW - Chinese, Taiwan
  • profilingGroupName (string) --

    [REQUIRED]

    The name of the profiling group to get analysis data about.

  • startTime (datetime) --

    [REQUIRED]

    The end time of the profile to get analysis data about. You must specify startTime and endTime . This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

Return type

dict

Returns

Response Syntax

{
    'anomalies': [
        {
            'instances': [
                {
                    'endTime': datetime(2015, 1, 1),
                    'id': 'string',
                    'startTime': datetime(2015, 1, 1),
                    'userFeedback': {
                        'type': 'Positive'|'Negative'
                    }
                },
            ],
            'metric': {
                'frameName': 'string',
                'threadStates': [
                    'string',
                ],
                'type': 'AggregatedRelativeTotalTime'
            },
            'reason': 'string'
        },
    ],
    'profileEndTime': datetime(2015, 1, 1),
    'profileStartTime': datetime(2015, 1, 1),
    'profilingGroupName': 'string',
    'recommendations': [
        {
            'allMatchesCount': 123,
            'allMatchesSum': 123.0,
            'endTime': datetime(2015, 1, 1),
            'pattern': {
                'countersToAggregate': [
                    'string',
                ],
                'description': 'string',
                'id': 'string',
                'name': 'string',
                'resolutionSteps': 'string',
                'targetFrames': [
                    [
                        'string',
                    ],
                ],
                'thresholdPercent': 123.0
            },
            'startTime': datetime(2015, 1, 1),
            'topMatches': [
                {
                    'frameAddress': 'string',
                    'targetFramesIndex': 123,
                    'thresholdBreachValue': 123.0
                },
            ]
        },
    ]
}

Response Structure

  • (dict) --

    The structure representing the GetRecommendationsResponse.

    • anomalies (list) --

      The list of anomalies that the analysis has found for this profile.

      • (dict) --

        Details about an anomaly in a specific metric of application profile. The anomaly is detected using analysis of the metric data over a period of time.

        • instances (list) --

          A list of the instances of the detected anomalies during the requested period.

          • (dict) --

            The specific duration in which the metric is flagged as anomalous.

            • endTime (datetime) --

              The end time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

            • id (string) --

              The universally unique identifier (UUID) of an instance of an anomaly in a metric.

            • startTime (datetime) --

              The start time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

            • userFeedback (dict) --

              Feedback type on a specific instance of anomaly submitted by the user.

              • type (string) --

                Optional Positive or Negative feedback submitted by the user about whether the recommendation is useful or not.

        • metric (dict) --

          Details about the metric that the analysis used when it detected the anomaly. The metric includes the name of the frame that was analyzed with the type and thread states used to derive the metric value for that frame.

          • frameName (string) --

            The name of the method that appears as a frame in any stack in a profile.

          • threadStates (list) --

            The list of application runtime thread states that is used to calculate the metric value for the frame.

            • (string) --
          • type (string) --

            A type that specifies how a metric for a frame is analyzed. The supported value AggregatedRelativeTotalTime is an aggregation of the metric value for one frame that is calculated across the occurences of all frames in a profile.

        • reason (string) --

          The reason for which metric was flagged as anomalous.

    • profileEndTime (datetime) --

      The end time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

    • profileStartTime (datetime) --

      The start time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

    • profilingGroupName (string) --

      The name of the profiling group the analysis data is about.

    • recommendations (list) --

      The list of recommendations that the analysis found for this profile.

      • (dict) --

        A potential improvement that was found from analyzing the profiling data.

        • allMatchesCount (integer) --

          How many different places in the profile graph triggered a match.

        • allMatchesSum (float) --

          How much of the total sample count is potentially affected.

        • endTime (datetime) --

          End time of the profile that was used by this analysis. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

        • pattern (dict) --

          The pattern that analysis recognized in the profile to make this recommendation.

          • countersToAggregate (list) --

            A list of the different counters used to determine if there is a match.

            • (string) --
          • description (string) --

            The description of the recommendation. This explains a potential inefficiency in a profiled application.

          • id (string) --

            The universally unique identifier (UUID) of this pattern.

          • name (string) --

            The name for this pattern.

          • resolutionSteps (string) --

            A string that contains the steps recommended to address the potential inefficiency.

          • targetFrames (list) --

            A list of frame names that were searched during the analysis that generated a recommendation.

            • (list) --
              • (string) --
          • thresholdPercent (float) --

            The percentage of time an application spends in one method that triggers a recommendation. The percentage of time is the same as the percentage of the total gathered sample counts during analysis.

        • startTime (datetime) --

          The start time of the profile that was used by this analysis. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

        • topMatches (list) --

          List of the matches with most impact.

          • (dict) --

            The part of a profile that contains a recommendation found during analysis.

            • frameAddress (string) --

              The location in the profiling graph that contains a recommendation found during analysis.

            • targetFramesIndex (integer) --

              The target frame that triggered a match.

            • thresholdBreachValue (float) --

              The value in the profile data that exceeded the recommendation threshold.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException
get_waiter(waiter_name)

Returns an object that can wait for some condition.

Parameters
waiter_name (str) -- The name of the waiter to get. See the waiters section of the service docs for a list of available waiters.
Returns
The specified waiter object.
Return type
botocore.waiter.Waiter
list_findings_reports(**kwargs)

List the available reports for a given profiling group and time range.

See also: AWS API Documentation

Request Syntax

response = client.list_findings_reports(
    dailyReportsOnly=True|False,
    endTime=datetime(2015, 1, 1),
    maxResults=123,
    nextToken='string',
    profilingGroupName='string',
    startTime=datetime(2015, 1, 1)
)
Parameters
  • dailyReportsOnly (boolean) -- A Boolean value indicating whether to only return reports from daily profiles. If set to True , only analysis data from daily profiles is returned. If set to False , analysis data is returned from smaller time windows (for example, one hour).
  • endTime (datetime) --

    [REQUIRED]

    The end time of the profile to get analysis data about. You must specify startTime and endTime . This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

  • maxResults (integer) -- The maximum number of report results returned by ListFindingsReports in paginated output. When this parameter is used, ListFindingsReports only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListFindingsReports request with the returned nextToken value.
  • nextToken (string) --

    The nextToken value returned from a previous paginated ListFindingsReportsRequest request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value.

    Note

    This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

  • profilingGroupName (string) --

    [REQUIRED]

    The name of the profiling group from which to search for analysis data.

  • startTime (datetime) --

    [REQUIRED]

    The start time of the profile to get analysis data about. You must specify startTime and endTime . This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

Return type

dict

Returns

Response Syntax

{
    'findingsReportSummaries': [
        {
            'id': 'string',
            'profileEndTime': datetime(2015, 1, 1),
            'profileStartTime': datetime(2015, 1, 1),
            'profilingGroupName': 'string',
            'totalNumberOfFindings': 123
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    The structure representing the ListFindingsReportsResponse.

    • findingsReportSummaries (list) --

      The list of analysis results summaries.

      • (dict) --

        Information about potential recommendations that might be created from the analysis of profiling data.

        • id (string) --

          The universally unique identifier (UUID) of the recommendation report.

        • profileEndTime (datetime) --

          The end time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

        • profileStartTime (datetime) --

          The start time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

        • profilingGroupName (string) --

          The name of the profiling group that is associated with the analysis data.

        • totalNumberOfFindings (integer) --

          The total number of different recommendations that were found by the analysis.

    • nextToken (string) --

      The nextToken value to include in a future ListFindingsReports request. When the results of a ListFindingsReports request exceed maxResults , this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException
list_profile_times(**kwargs)

Lists the start times of the available aggregated profiles of a profiling group for an aggregation period within the specified time range.

See also: AWS API Documentation

Request Syntax

response = client.list_profile_times(
    endTime=datetime(2015, 1, 1),
    maxResults=123,
    nextToken='string',
    orderBy='TimestampDescending'|'TimestampAscending',
    period='PT5M'|'PT1H'|'P1D',
    profilingGroupName='string',
    startTime=datetime(2015, 1, 1)
)
Parameters
  • endTime (datetime) --

    [REQUIRED]

    The end time of the time range from which to list the profiles.

  • maxResults (integer) -- The maximum number of profile time results returned by ListProfileTimes in paginated output. When this parameter is used, ListProfileTimes only returns maxResults results in a single page with a nextToken response element. The remaining results of the initial request can be seen by sending another ListProfileTimes request with the returned nextToken value.
  • nextToken (string) --

    The nextToken value returned from a previous paginated ListProfileTimes request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value.

    Note

    This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

  • orderBy (string) -- The order (ascending or descending by start time of the profile) to use when listing profiles. Defaults to TIMESTAMP_DESCENDING .
  • period (string) --

    [REQUIRED]

    The aggregation period. This specifies the period during which an aggregation profile collects posted agent profiles for a profiling group. There are 3 valid values.

    • P1D — 1 day
    • PT1H — 1 hour
    • PT5M — 5 minutes
  • profilingGroupName (string) --

    [REQUIRED]

    The name of the profiling group.

  • startTime (datetime) --

    [REQUIRED]

    The start time of the time range from which to list the profiles.

Return type

dict

Returns

Response Syntax

{
    'nextToken': 'string',
    'profileTimes': [
        {
            'start': datetime(2015, 1, 1)
        },
    ]
}

Response Structure

  • (dict) --

    The structure representing the listProfileTimesResponse.

    • nextToken (string) --

      The nextToken value to include in a future ListProfileTimes request. When the results of a ListProfileTimes request exceed maxResults , this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

    • profileTimes (list) --

      The list of start times of the available profiles for the aggregation period in the specified time range.

      • (dict) --

        Contains the start time of a profile.

        • start (datetime) --

          The start time of a profile. It is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException
list_profiling_groups(**kwargs)

Returns a list of profiling groups. The profiling groups are returned as ` ProfilingGroupDescription https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ProfilingGroupDescription.html`__ objects.

See also: AWS API Documentation

Request Syntax

response = client.list_profiling_groups(
    includeDescription=True|False,
    maxResults=123,
    nextToken='string'
)
Parameters
  • includeDescription (boolean) -- A Boolean value indicating whether to include a description. If true , then a list of ` ProfilingGroupDescription https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ProfilingGroupDescription.html`__ objects that contain detailed information about profiling groups is returned. If false , then a list of profiling group names is returned.
  • maxResults (integer) -- The maximum number of profiling groups results returned by ListProfilingGroups in paginated output. When this parameter is used, ListProfilingGroups only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListProfilingGroups request with the returned nextToken value.
  • nextToken (string) --

    The nextToken value returned from a previous paginated ListProfilingGroups request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value.

    Note

    This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

Return type

dict

Returns

Response Syntax

{
    'nextToken': 'string',
    'profilingGroupNames': [
        'string',
    ],
    'profilingGroups': [
        {
            'agentOrchestrationConfig': {
                'profilingEnabled': True|False
            },
            'arn': 'string',
            'computePlatform': 'Default'|'AWSLambda',
            'createdAt': datetime(2015, 1, 1),
            'name': 'string',
            'profilingStatus': {
                'latestAgentOrchestratedAt': datetime(2015, 1, 1),
                'latestAgentProfileReportedAt': datetime(2015, 1, 1),
                'latestAggregatedProfile': {
                    'period': 'PT5M'|'PT1H'|'P1D',
                    'start': datetime(2015, 1, 1)
                }
            },
            'tags': {
                'string': 'string'
            },
            'updatedAt': datetime(2015, 1, 1)
        },
    ]
}

Response Structure

  • (dict) --

    The structure representing the listProfilingGroupsResponse.

    • nextToken (string) --

      The nextToken value to include in a future ListProfilingGroups request. When the results of a ListProfilingGroups request exceed maxResults , this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

    • profilingGroupNames (list) --

      A returned list of profiling group names. A list of the names is returned only if includeDescription is false , otherwise a list of ` ProfilingGroupDescription https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ProfilingGroupDescription.html`__ objects is returned.

      • (string) --
    • profilingGroups (list) --

      A returned list ` ProfilingGroupDescription https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ProfilingGroupDescription.html`__ objects. A list of ` ProfilingGroupDescription https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ProfilingGroupDescription.html`__ objects is returned only if includeDescription is true , otherwise a list of profiling group names is returned.

      • (dict) --

        Contains information about a profiling group.

        • agentOrchestrationConfig (dict) --

          An ` AgentOrchestrationConfig https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AgentOrchestrationConfig.html`__ object that indicates if the profiling group is enabled for profiled or not.

          • profilingEnabled (boolean) --

            A Boolean that specifies whether the profiling agent collects profiling data or not. Set to true to enable profiling.

        • arn (string) --

          The Amazon Resource Name (ARN) identifying the profiling group resource.

        • computePlatform (string) --

          The compute platform of the profiling group. If it is set to AWSLambda , then the profiled application runs on AWS Lambda. If it is set to Default , then the profiled application runs on a compute platform that is not AWS Lambda, such an Amazon EC2 instance, an on-premises server, or a different platform. The default is Default .

        • createdAt (datetime) --

          The time when the profiling group was created. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

        • name (string) --

          The name of the profiling group.

        • profilingStatus (dict) --

          A ` ProfilingStatus https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ProfilingStatus.html`__ object that includes information about the last time a profile agent pinged back, the last time a profile was received, and the aggregation period and start time for the most recent aggregated profile.

          • latestAgentOrchestratedAt (datetime) --

            The date and time when the profiling agent most recently pinged back. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

          • latestAgentProfileReportedAt (datetime) --

            The date and time when the most recent profile was received. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

          • latestAggregatedProfile (dict) --

            An ` AggregatedProfileTime https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AggregatedProfileTime.html`__ object that contains the aggregation period and start time for an aggregated profile.

            • period (string) --

              The aggregation period. This indicates the period during which an aggregation profile collects posted agent profiles for a profiling group. Use one of three valid durations that are specified using the ISO 8601 format.

              • P1D — 1 day
              • PT1H — 1 hour
              • PT5M — 5 minutes
            • start (datetime) --

              The time that aggregation of posted agent profiles for a profiling group starts. The aggregation profile contains profiles posted by the agent starting at this time for an aggregation period specified by the period property of the AggregatedProfileTime object.

              Specify start using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

        • tags (dict) --

          A list of the tags that belong to this profiling group.

          • (string) --
            • (string) --
        • updatedAt (datetime) --

          The date and time when the profiling group was last updated. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
list_tags_for_resource(**kwargs)

Returns a list of the tags that are assigned to a specified resource.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(
    resourceArn='string'
)
Parameters
resourceArn (string) --

[REQUIRED]

The Amazon Resource Name (ARN) of the resource that contains the tags to return.

Return type
dict
Returns
Response Syntax
{
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --
    • tags (dict) --

      The list of tags assigned to the specified resource. This is the list of tags returned in the response.

      • (string) --
        • (string) --

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException
post_agent_profile(**kwargs)

Submits profiling data to an aggregated profile of a profiling group. To get an aggregated profile that is created with this profiling data, use ` GetProfile https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_GetProfile.html`__ .

See also: AWS API Documentation

Request Syntax

response = client.post_agent_profile(
    agentProfile=b'bytes'|file,
    contentType='string',
    profileToken='string',
    profilingGroupName='string'
)
Parameters
  • agentProfile (bytes or seekable file-like object) --

    [REQUIRED]

    The submitted profiling data.

  • contentType (string) --

    [REQUIRED]

    The format of the submitted profiling data. The format maps to the Accept and Content-Type headers of the HTTP request. You can specify one of the following: or the default .

    <ul> <li> <p> <code>application/json</code> standard JSON format </p> </li> <li> <p> <code>application/x-amzn-ion</code> the Amazon Ion data format. For more information, see <a href="http://amzn.github.io/ion-docs/">Amazon Ion</a>. </p> </li> </ul>
  • profileToken (string) --

    Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to prevent the accidental submission of duplicate profiling data if there are failures and retries.

    This field is autopopulated if not provided.

  • profilingGroupName (string) --

    [REQUIRED]

    The name of the profiling group with the aggregated profile that receives the submitted profiling data.

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

    The structure representing the postAgentProfileResponse.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException
put_permission(**kwargs)

Adds permissions to a profiling group's resource-based policy that are provided using an action group. If a profiling group doesn't have a resource-based policy, one is created for it using the permissions in the action group and the roles and users in the principals parameter.

<p> The one supported action group that can be added is <code>agentPermission</code> which grants <code>ConfigureAgent</code> and <code>PostAgent</code> permissions. For more information, see <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-ug/resource-based-policies.html">Resource-based policies in CodeGuru Profiler</a> in the <i>Amazon CodeGuru Profiler User Guide</i>, <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ConfigureAgent.html"> <code>ConfigureAgent</code> </a>, and <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_PostAgentProfile.html"> <code>PostAgentProfile</code> </a>. </p> <p> The first time you call <code>PutPermission</code> on a profiling group, do not specify a <code>revisionId</code> because it doesn't have a resource-based policy. Subsequent calls must provide a <code>revisionId</code> to specify which revision of the resource-based policy to add the permissions to. </p> <p> The response contains the profiling group's JSON-formatted resource policy. </p>

See also: AWS API Documentation

Request Syntax

response = client.put_permission(
    actionGroup='agentPermissions',
    principals=[
        'string',
    ],
    profilingGroupName='string',
    revisionId='string'
)
Parameters
  • actionGroup (string) --

    [REQUIRED]

    Specifies an action group that contains permissions to add to a profiling group resource. One action group is supported, agentPermissions , which grants permission to perform actions required by the profiling agent, ConfigureAgent and PostAgentProfile permissions.

  • principals (list) --

    [REQUIRED]

    A list ARNs for the roles and users you want to grant access to the profiling group. Wildcards are not are supported in the ARNs.

    • (string) --
  • profilingGroupName (string) --

    [REQUIRED]

    The name of the profiling group to grant access to.

  • revisionId (string) -- A universally unique identifier (UUID) for the revision of the policy you are adding to the profiling group. Do not specify this when you add permissions to a profiling group for the first time. If a policy already exists on the profiling group, you must specify the revisionId .
Return type

dict

Returns

Response Syntax

{
    'policy': 'string',
    'revisionId': 'string'
}

Response Structure

  • (dict) --

    The structure representing the putPermissionResponse .

    • policy (string) --

      The JSON-formatted resource-based policy on the profiling group that includes the added permissions.

    • revisionId (string) --

      A universally unique identifier (UUID) for the revision of the resource-based policy that includes the added permissions. The JSON-formatted policy is in the policy element of the response.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ConflictException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException
remove_notification_channel(**kwargs)

Remove one anomaly notifications channel for a profiling group.

See also: AWS API Documentation

Request Syntax

response = client.remove_notification_channel(
    channelId='string',
    profilingGroupName='string'
)
Parameters
  • channelId (string) --

    [REQUIRED]

    The id of the channel that we want to stop receiving notifications.

  • profilingGroupName (string) --

    [REQUIRED]

    The name of the profiling group we want to change notification configuration for.

Return type

dict

Returns

Response Syntax

{
    'notificationConfiguration': {
        'channels': [
            {
                'eventPublishers': [
                    'AnomalyDetection',
                ],
                'id': 'string',
                'uri': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) --

    The structure representing the RemoveNotificationChannelResponse.

    • notificationConfiguration (dict) --

      The new notification configuration for this profiling group.

      • channels (list) --

        List of up to two channels to be used for sending notifications for events detected from the application profile.

        • (dict) --

          Notification medium for users to get alerted for events that occur in application profile. We support SNS topic as a notification channel.

          • eventPublishers (list) --

            List of publishers for different type of events that may be detected in an application from the profile. Anomaly detection is the only event publisher in Profiler.

            • (string) --
          • id (string) --

            Unique identifier for each Channel in the notification configuration of a Profiling Group. A random UUID for channelId is used when adding a channel to the notification configuration if not specified in the request.

          • uri (string) --

            Unique arn of the resource to be used for notifications. We support a valid SNS topic arn as a channel uri.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException
remove_permission(**kwargs)

Removes permissions from a profiling group's resource-based policy that are provided using an action group. The one supported action group that can be removed is agentPermission which grants ConfigureAgent and PostAgent permissions. For more information, see Resource-based policies in CodeGuru Profiler in the Amazon CodeGuru Profiler User Guide , ` ConfigureAgent https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ConfigureAgent.html`__ , and ` PostAgentProfile https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_PostAgentProfile.html`__ .

See also: AWS API Documentation

Request Syntax

response = client.remove_permission(
    actionGroup='agentPermissions',
    profilingGroupName='string',
    revisionId='string'
)
Parameters
  • actionGroup (string) --

    [REQUIRED]

    Specifies an action group that contains the permissions to remove from a profiling group's resource-based policy. One action group is supported, agentPermissions , which grants ConfigureAgent and PostAgentProfile permissions.

  • profilingGroupName (string) --

    [REQUIRED]

    The name of the profiling group.

  • revisionId (string) --

    [REQUIRED]

    A universally unique identifier (UUID) for the revision of the resource-based policy from which you want to remove permissions.

Return type

dict

Returns

Response Syntax

{
    'policy': 'string',
    'revisionId': 'string'
}

Response Structure

  • (dict) --

    The structure representing the removePermissionResponse .

    • policy (string) --

      The JSON-formatted resource-based policy on the profiling group after the specified permissions were removed.

    • revisionId (string) --

      A universally unique identifier (UUID) for the revision of the resource-based policy after the specified permissions were removed. The updated JSON-formatted policy is in the policy element of the response.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ConflictException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException
submit_feedback(**kwargs)

Sends feedback to CodeGuru Profiler about whether the anomaly detected by the analysis is useful or not.

See also: AWS API Documentation

Request Syntax

response = client.submit_feedback(
    anomalyInstanceId='string',
    comment='string',
    profilingGroupName='string',
    type='Positive'|'Negative'
)
Parameters
  • anomalyInstanceId (string) --

    [REQUIRED]

    The universally unique identifier (UUID) of the ` AnomalyInstance https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AnomalyInstance.html`__ object that is included in the analysis data.

  • comment (string) -- Optional feedback about this anomaly.
  • profilingGroupName (string) --

    [REQUIRED]

    The name of the profiling group that is associated with the analysis data.

  • type (string) --

    [REQUIRED]

    The feedback tpye. Thee are two valid values, Positive and Negative .

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

    The structure representing the SubmitFeedbackResponse.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException
tag_resource(**kwargs)

Use to assign one or more tags to a resource.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    resourceArn='string',
    tags={
        'string': 'string'
    }
)
Parameters
  • resourceArn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the resource that the tags are added to.

  • tags (dict) --

    [REQUIRED]

    The list of tags that are added to the specified resource.

    • (string) --
      • (string) --
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException
untag_resource(**kwargs)

Use to remove one or more tags from a resource.

See also: AWS API Documentation

Request Syntax

response = client.untag_resource(
    resourceArn='string',
    tagKeys=[
        'string',
    ]
)
Parameters
  • resourceArn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the resource that contains the tags to remove.

  • tagKeys (list) --

    [REQUIRED]

    A list of tag keys. Existing tags of resources with keys in this list are removed from the specified resource.

    • (string) --
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException
update_profiling_group(**kwargs)

Updates a profiling group.

See also: AWS API Documentation

Request Syntax

response = client.update_profiling_group(
    agentOrchestrationConfig={
        'profilingEnabled': True|False
    },
    profilingGroupName='string'
)
Parameters
  • agentOrchestrationConfig (dict) --

    [REQUIRED]

    Specifies whether profiling is enabled or disabled for a profiling group.

    • profilingEnabled (boolean) -- [REQUIRED]

      A Boolean that specifies whether the profiling agent collects profiling data or not. Set to true to enable profiling.

  • profilingGroupName (string) --

    [REQUIRED]

    The name of the profiling group to update.

Return type

dict

Returns

Response Syntax

{
    'profilingGroup': {
        'agentOrchestrationConfig': {
            'profilingEnabled': True|False
        },
        'arn': 'string',
        'computePlatform': 'Default'|'AWSLambda',
        'createdAt': datetime(2015, 1, 1),
        'name': 'string',
        'profilingStatus': {
            'latestAgentOrchestratedAt': datetime(2015, 1, 1),
            'latestAgentProfileReportedAt': datetime(2015, 1, 1),
            'latestAggregatedProfile': {
                'period': 'PT5M'|'PT1H'|'P1D',
                'start': datetime(2015, 1, 1)
            }
        },
        'tags': {
            'string': 'string'
        },
        'updatedAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    The structure representing the updateProfilingGroupResponse.

    • profilingGroup (dict) --

      A ` ProfilingGroupDescription https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ProfilingGroupDescription.html`__ that contains information about the returned updated profiling group.

      • agentOrchestrationConfig (dict) --

        An ` AgentOrchestrationConfig https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AgentOrchestrationConfig.html`__ object that indicates if the profiling group is enabled for profiled or not.

        • profilingEnabled (boolean) --

          A Boolean that specifies whether the profiling agent collects profiling data or not. Set to true to enable profiling.

      • arn (string) --

        The Amazon Resource Name (ARN) identifying the profiling group resource.

      • computePlatform (string) --

        The compute platform of the profiling group. If it is set to AWSLambda , then the profiled application runs on AWS Lambda. If it is set to Default , then the profiled application runs on a compute platform that is not AWS Lambda, such an Amazon EC2 instance, an on-premises server, or a different platform. The default is Default .

      • createdAt (datetime) --

        The time when the profiling group was created. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

      • name (string) --

        The name of the profiling group.

      • profilingStatus (dict) --

        A ` ProfilingStatus https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ProfilingStatus.html`__ object that includes information about the last time a profile agent pinged back, the last time a profile was received, and the aggregation period and start time for the most recent aggregated profile.

        • latestAgentOrchestratedAt (datetime) --

          The date and time when the profiling agent most recently pinged back. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

        • latestAgentProfileReportedAt (datetime) --

          The date and time when the most recent profile was received. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

        • latestAggregatedProfile (dict) --

          An ` AggregatedProfileTime https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AggregatedProfileTime.html`__ object that contains the aggregation period and start time for an aggregated profile.

          • period (string) --

            The aggregation period. This indicates the period during which an aggregation profile collects posted agent profiles for a profiling group. Use one of three valid durations that are specified using the ISO 8601 format.

            • P1D — 1 day
            • PT1H — 1 hour
            • PT5M — 5 minutes
          • start (datetime) --

            The time that aggregation of posted agent profiles for a profiling group starts. The aggregation profile contains profiles posted by the agent starting at this time for an aggregation period specified by the period property of the AggregatedProfileTime object.

            Specify start using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

      • tags (dict) --

        A list of the tags that belong to this profiling group.

        • (string) --
          • (string) --
      • updatedAt (datetime) --

        The date and time when the profiling group was last updated. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ConflictException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException

Paginators

The available paginators are:

class CodeGuruProfiler.Paginator.ListProfileTimes
paginator = client.get_paginator('list_profile_times')
paginate(**kwargs)

Creates an iterator that will paginate through responses from CodeGuruProfiler.Client.list_profile_times().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    endTime=datetime(2015, 1, 1),
    orderBy='TimestampDescending'|'TimestampAscending',
    period='PT5M'|'PT1H'|'P1D',
    profilingGroupName='string',
    startTime=datetime(2015, 1, 1),
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • endTime (datetime) --

    [REQUIRED]

    The end time of the time range from which to list the profiles.

  • orderBy (string) -- The order (ascending or descending by start time of the profile) to use when listing profiles. Defaults to TIMESTAMP_DESCENDING .
  • period (string) --

    [REQUIRED]

    The aggregation period. This specifies the period during which an aggregation profile collects posted agent profiles for a profiling group. There are 3 valid values.

    • P1D — 1 day
    • PT1H — 1 hour
    • PT5M — 5 minutes
  • profilingGroupName (string) --

    [REQUIRED]

    The name of the profiling group.

  • startTime (datetime) --

    [REQUIRED]

    The start time of the time range from which to list the profiles.

  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'profileTimes': [
        {
            'start': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    The structure representing the listProfileTimesResponse.

    • profileTimes (list) --

      The list of start times of the available profiles for the aggregation period in the specified time range.

      • (dict) --

        Contains the start time of a profile.

        • start (datetime) --

          The start time of a profile. It is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

    • NextToken (string) --

      A token to resume pagination.