CodeGuruProfiler / Client / post_agent_profile
post_agent_profile#
- CodeGuruProfiler.Client.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.
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
andContent-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