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 |
Returns a list of Recommendation objects that contain recommendations for a profiling group for a given time period. A list of Anomaly objects that contains details about anomalies detected in the profiling group for the same time period is also returned.
Synopsis
- data GetRecommendations = GetRecommendations' {}
- newGetRecommendations :: UTCTime -> Text -> UTCTime -> GetRecommendations
- getRecommendations_locale :: Lens' GetRecommendations (Maybe Text)
- getRecommendations_endTime :: Lens' GetRecommendations UTCTime
- getRecommendations_profilingGroupName :: Lens' GetRecommendations Text
- getRecommendations_startTime :: Lens' GetRecommendations UTCTime
- data GetRecommendationsResponse = GetRecommendationsResponse' {}
- newGetRecommendationsResponse :: Int -> UTCTime -> UTCTime -> Text -> GetRecommendationsResponse
- getRecommendationsResponse_httpStatus :: Lens' GetRecommendationsResponse Int
- getRecommendationsResponse_anomalies :: Lens' GetRecommendationsResponse [Anomaly]
- getRecommendationsResponse_profileEndTime :: Lens' GetRecommendationsResponse UTCTime
- getRecommendationsResponse_profileStartTime :: Lens' GetRecommendationsResponse UTCTime
- getRecommendationsResponse_profilingGroupName :: Lens' GetRecommendationsResponse Text
- getRecommendationsResponse_recommendations :: Lens' GetRecommendationsResponse [Recommendation]
Creating a Request
data GetRecommendations Source #
The structure representing the GetRecommendationsRequest.
See: newGetRecommendations
smart constructor.
GetRecommendations' | |
|
Instances
newGetRecommendations Source #
:: UTCTime | |
-> Text | |
-> UTCTime | |
-> GetRecommendations |
Create a value of GetRecommendations
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:locale:GetRecommendations'
, getRecommendations_locale
- The language used to provide analysis. Specify using a string that is
one of the following BCP 47
language codes.
de-DE
- German, Germanyen-GB
- English, United Kingdomen-US
- English, United Stateses-ES
- Spanish, Spainfr-FR
- French, Franceit-IT
- Italian, Italyja-JP
- Japanese, Japanko-KR
- Korean, Republic of Koreapt-BR
- Portugese, Brazilzh-CN
- Chinese, Chinazh-TW
- Chinese, Taiwan
$sel:endTime:GetRecommendations'
, getRecommendations_endTime
- 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.
$sel:profilingGroupName:GetRecommendations'
, getRecommendations_profilingGroupName
- The name of the profiling group to get analysis data about.
$sel:startTime:GetRecommendations'
, getRecommendations_startTime
- 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.
Request Lenses
getRecommendations_locale :: Lens' GetRecommendations (Maybe Text) Source #
The language used to provide analysis. Specify using a string that is
one of the following BCP 47
language codes.
de-DE
- German, Germanyen-GB
- English, United Kingdomen-US
- English, United Stateses-ES
- Spanish, Spainfr-FR
- French, Franceit-IT
- Italian, Italyja-JP
- Japanese, Japanko-KR
- Korean, Republic of Koreapt-BR
- Portugese, Brazilzh-CN
- Chinese, Chinazh-TW
- Chinese, Taiwan
getRecommendations_endTime :: Lens' GetRecommendations UTCTime Source #
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.
getRecommendations_profilingGroupName :: Lens' GetRecommendations Text Source #
The name of the profiling group to get analysis data about.
getRecommendations_startTime :: Lens' GetRecommendations UTCTime Source #
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.
Destructuring the Response
data GetRecommendationsResponse Source #
The structure representing the GetRecommendationsResponse.
See: newGetRecommendationsResponse
smart constructor.
GetRecommendationsResponse' | |
|
Instances
newGetRecommendationsResponse Source #
:: Int | |
-> UTCTime | |
-> UTCTime | |
-> Text | |
-> GetRecommendationsResponse |
Create a value of GetRecommendationsResponse
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:GetRecommendationsResponse'
, getRecommendationsResponse_httpStatus
- The response's http status code.
$sel:anomalies:GetRecommendationsResponse'
, getRecommendationsResponse_anomalies
- The list of anomalies that the analysis has found for this profile.
$sel:profileEndTime:GetRecommendationsResponse'
, getRecommendationsResponse_profileEndTime
- 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.
$sel:profileStartTime:GetRecommendationsResponse'
, getRecommendationsResponse_profileStartTime
- 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.
$sel:profilingGroupName:GetRecommendations'
, getRecommendationsResponse_profilingGroupName
- The name of the profiling group the analysis data is about.
$sel:recommendations:GetRecommendationsResponse'
, getRecommendationsResponse_recommendations
- The list of recommendations that the analysis found for this profile.
Response Lenses
getRecommendationsResponse_httpStatus :: Lens' GetRecommendationsResponse Int Source #
The response's http status code.
getRecommendationsResponse_anomalies :: Lens' GetRecommendationsResponse [Anomaly] Source #
The list of anomalies that the analysis has found for this profile.
getRecommendationsResponse_profileEndTime :: Lens' GetRecommendationsResponse UTCTime Source #
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.
getRecommendationsResponse_profileStartTime :: Lens' GetRecommendationsResponse UTCTime Source #
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.
getRecommendationsResponse_profilingGroupName :: Lens' GetRecommendationsResponse Text Source #
The name of the profiling group the analysis data is about.
getRecommendationsResponse_recommendations :: Lens' GetRecommendationsResponse [Recommendation] Source #
The list of recommendations that the analysis found for this profile.