Skip to main content

profile_times

Creates, updates, deletes, gets or lists a profile_times resource.

Overview

Nameprofile_times
TypeResource
Idaws.codeguruprofiler.profile_times

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
startstring (date-time)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.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_profile_timesselectendTime, period, profiling_group_name, startTime, regionmaxResults, nextToken, orderByLists the start times of the available aggregated profiles of a profiling group for an aggregation period within the specified time range.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endTimestring (date-time)The end time of the time range from which to list the profiles.
periodstringThe 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
profiling_group_namestringThe name of the profiling group.
regionstringAWS region (default: us-east-1)
startTimestring (date-time)The start time of the time range from which to list the profiles.
maxResultsintegerThe 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.
nextTokenstringThe 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. 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.
orderBystringThe order (ascending or descending by start time of the profile) to use when listing profiles. Defaults to TIMESTAMP_DESCENDING.

SELECT examples

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

SELECT
start
FROM aws.codeguruprofiler.profile_times
WHERE endTime = '{{ endTime }}' -- required
AND period = '{{ period }}' -- required
AND profiling_group_name = '{{ profiling_group_name }}' -- required
AND startTime = '{{ startTime }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
AND orderBy = '{{ orderBy }}'
;