| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CodeGuruProfiler.PostAgentProfile
Description
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.
Constructors
| PostAgentProfile' | |
Fields
| |
Instances
Arguments
| :: 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>
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.
Constructors
| PostAgentProfileResponse' | |
Fields
| |
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.