Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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 .
Synopsis
- data PostAgentProfile = PostAgentProfile' {}
- newPostAgentProfile :: ByteString -> Text -> Text -> PostAgentProfile
- postAgentProfile_profileToken :: Lens' PostAgentProfile (Maybe Text)
- postAgentProfile_agentProfile :: Lens' PostAgentProfile ByteString
- postAgentProfile_contentType :: Lens' PostAgentProfile Text
- postAgentProfile_profilingGroupName :: Lens' PostAgentProfile Text
- data PostAgentProfileResponse = PostAgentProfileResponse' {
- httpStatus :: Int
- newPostAgentProfileResponse :: Int -> PostAgentProfileResponse
- postAgentProfileResponse_httpStatus :: Lens' PostAgentProfileResponse Int
Creating a Request
data PostAgentProfile Source #
The structure representing the postAgentProfileRequest.
See: newPostAgentProfile
smart constructor.
PostAgentProfile' | |
|
Instances
:: ByteString | |
-> Text | |
-> Text | |
-> PostAgentProfile |
Create a value of PostAgentProfile
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:profileToken:PostAgentProfile'
, postAgentProfile_profileToken
- Amazon CodeGuru Profiler uses this universally unique identifier (UUID)
to prevent the accidental submission of duplicate profiling data if
there are failures and retries.
$sel:agentProfile:PostAgentProfile'
, postAgentProfile_agentProfile
- The submitted profiling data.
$sel:contentType:PostAgentProfile'
, postAgentProfile_contentType
- 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>
$sel:profilingGroupName:PostAgentProfile'
, postAgentProfile_profilingGroupName
- The name of the profiling group with the aggregated profile that
receives the submitted profiling data.
Request Lenses
postAgentProfile_profileToken :: Lens' PostAgentProfile (Maybe Text) Source #
Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to prevent the accidental submission of duplicate profiling data if there are failures and retries.
postAgentProfile_agentProfile :: Lens' PostAgentProfile ByteString Source #
The submitted profiling data.
postAgentProfile_contentType :: Lens' PostAgentProfile Text Source #
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>
postAgentProfile_profilingGroupName :: Lens' PostAgentProfile Text Source #
The name of the profiling group with the aggregated profile that receives the submitted profiling data.
Destructuring the Response
data PostAgentProfileResponse Source #
The structure representing the postAgentProfileResponse.
See: newPostAgentProfileResponse
smart constructor.
PostAgentProfileResponse' | |
|
Instances
newPostAgentProfileResponse Source #
Create a value of PostAgentProfileResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:PostAgentProfileResponse'
, postAgentProfileResponse_httpStatus
- The response's http status code.
Response Lenses
postAgentProfileResponse_httpStatus :: Lens' PostAgentProfileResponse Int Source #
The response's http status code.