1 | import {Request} from '../lib/request';
|
2 | import {Response} from '../lib/response';
|
3 | import {AWSError} from '../lib/error';
|
4 | import {Service} from '../lib/service';
|
5 | import {ServiceConfigurationOptions} from '../lib/service';
|
6 | import {ConfigBase as Config} from '../lib/config';
|
7 | interface Blob {}
|
8 | declare class ForecastQueryService extends Service {
|
9 | |
10 |
|
11 |
|
12 | constructor(options?: ForecastQueryService.Types.ClientConfiguration)
|
13 | config: Config & ForecastQueryService.Types.ClientConfiguration;
|
14 | /**
|
15 | * Retrieves a forecast filtered by the supplied criteria. The criteria is a key-value pair. The key is either item_id (or the equivalent non-timestamp, non-target field) from the TARGET_TIME_SERIES dataset, or one of the forecast dimensions specified as part of the FeaturizationConfig object. By default, the complete date range of the filtered forecast is returned. Optionally, you can request a specific date range within the forecast. The forecasts generated by Amazon Forecast are in the same timezone as the dataset that was used to create the predictor.
|
16 | */
|
17 | queryForecast(params: ForecastQueryService.Types.QueryForecastRequest, callback?: (err: AWSError, data: ForecastQueryService.Types.QueryForecastResponse) => void): Request<ForecastQueryService.Types.QueryForecastResponse, AWSError>;
|
18 | /**
|
19 | * Retrieves a forecast filtered by the supplied criteria. The criteria is a key-value pair. The key is either item_id (or the equivalent non-timestamp, non-target field) from the TARGET_TIME_SERIES dataset, or one of the forecast dimensions specified as part of the FeaturizationConfig object. By default, the complete date range of the filtered forecast is returned. Optionally, you can request a specific date range within the forecast. The forecasts generated by Amazon Forecast are in the same timezone as the dataset that was used to create the predictor.
|
20 | */
|
21 | queryForecast(callback?: (err: AWSError, data: ForecastQueryService.Types.QueryForecastResponse) => void): Request<ForecastQueryService.Types.QueryForecastResponse, AWSError>;
|
22 | }
|
23 | declare namespace ForecastQueryService {
|
24 | export type Arn = string;
|
25 | export type AttributeName = string;
|
26 | export type AttributeValue = string;
|
27 | export interface DataPoint {
|
28 | |
29 |
|
30 |
|
31 | Timestamp?: Timestamp;
|
32 | |
33 |
|
34 |
|
35 | Value?: Double;
|
36 | }
|
37 | export type DateTime = string;
|
38 | export type Double = number;
|
39 | export type Filters = {[key: string]: AttributeValue};
|
40 | export interface Forecast {
|
41 | |
42 |
|
43 |
|
44 | Predictions?: Predictions;
|
45 | }
|
46 | export type NextToken = string;
|
47 | export type Predictions = {[key: string]: TimeSeries};
|
48 | export interface QueryForecastRequest {
|
49 | |
50 |
|
51 |
|
52 | ForecastArn: Arn;
|
53 | |
54 |
|
55 |
|
56 | StartDate?: DateTime;
|
57 | |
58 |
|
59 |
|
60 | EndDate?: DateTime;
|
61 | |
62 |
|
63 |
|
64 | Filters: Filters;
|
65 | |
66 |
|
67 |
|
68 | NextToken?: NextToken;
|
69 | }
|
70 | export interface QueryForecastResponse {
|
71 | |
72 |
|
73 |
|
74 | Forecast?: Forecast;
|
75 | }
|
76 | export type Statistic = string;
|
77 | export type TimeSeries = DataPoint[];
|
78 | export type Timestamp = string;
|
79 | |
80 |
|
81 |
|
82 | export type apiVersion = "2018-06-26"|"latest"|string;
|
83 | export interface ClientApiVersions {
|
84 | |
85 |
|
86 |
|
87 | apiVersion?: apiVersion;
|
88 | }
|
89 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
90 | |
91 |
|
92 |
|
93 | export import Types = ForecastQueryService;
|
94 | }
|
95 | export = ForecastQueryService;
|