Skip to content

Commit

Permalink
Remove unused type
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremymeng committed Nov 3, 2020
1 parent 5aeb6f2 commit bf6c272
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -416,14 +416,6 @@ export type FeedbackQueryTimeMode = "MetricTimestamp" | "FeedbackCreatedTime";
// @public
export type FeedbackType = "Anomaly" | "ChangePoint" | "Period" | "Comment";

// @public
export type GeneratedClientGetIngestionProgressResponse = DataFeedIngestionProgress & {
_response: coreHttp.HttpResponse & {
bodyAsText: string;
parsedBody: DataFeedIngestionProgress;
};
};

// @public
export type GetAnomalyAlertConfigurationResponse = AnomalyAlertConfiguration & {
_response: coreHttp.HttpResponse & {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ import {
AlertConfigurationsPageResponse,
DetectionConfigurationsPageResponse,
HooksPageResponse,
DataFeedStatus
DataFeedStatus,
GetIngestionProgressResponse
} from "./models";
import { DataSourceType, NeedRollupEnum } from "./generated/models";
import {
Expand Down Expand Up @@ -1340,16 +1341,20 @@ export class MetricsAdvisorAdministrationClient {
top: options?.maxPageSize
}
);
const resultArray = Object.defineProperty(segmentResponse.value?.map((s) => {
return {
timestamp: s.timestamp?.getTime(),
status: s.status,
message: s.message
};
}) || [], "continuationToken", {
enumerable: true,
value: segmentResponse.nextLink
});
const resultArray = Object.defineProperty(
segmentResponse.value?.map((s) => {
return {
timestamp: s.timestamp?.getTime(),
status: s.status,
message: s.message
};
}) || [],
"continuationToken",
{
enumerable: true,
value: segmentResponse.nextLink
}
);
yield Object.defineProperty(resultArray, "_response", {
enumerable: false,
value: segmentResponse._response
Expand All @@ -1370,16 +1375,20 @@ export class MetricsAdvisorAdministrationClient {
options
);

const resultArray = Object.defineProperty(segmentResponse.value?.map((s) => {
return {
timestamp: s.timestamp?.getTime(),
status: s.status,
message: s.message
};
}) || [], "continuationToken", {
enumerable: true,
value: segmentResponse.nextLink
});
const resultArray = Object.defineProperty(
segmentResponse.value?.map((s) => {
return {
timestamp: s.timestamp?.getTime(),
status: s.status,
message: s.message
};
}) || [],
"continuationToken",
{
enumerable: true,
value: segmentResponse.nextLink
}
);
yield Object.defineProperty(resultArray, "_response", {
enumerable: false,
value: segmentResponse._response
Expand Down
48 changes: 28 additions & 20 deletions sdk/metricsadvisor/ai-metrics-advisor/src/metricsAdvisorClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2174,16 +2174,20 @@ export class MetricsAdvisorClient {
...options,
top: maxPageSize
});
const resultArray = Object.defineProperty(segmentResponse.value?.map((s) => {
return {
timestamp: s.timestamp?.getTime(),
status: s.status,
message: s.message
};
}) || [], "continuationToken", {
enumerable: true,
value: segmentResponse.nextLink
});
const resultArray = Object.defineProperty(
segmentResponse.value?.map((s) => {
return {
timestamp: s.timestamp?.getTime(),
status: s.status,
message: s.message
};
}) || [],
"continuationToken",
{
enumerable: true,
value: segmentResponse.nextLink
}
);
yield Object.defineProperty(resultArray, "_response", {
enumerable: false,
value: segmentResponse._response
Expand All @@ -2199,16 +2203,20 @@ export class MetricsAdvisorClient {
optionsBody,
options
);
const resultArray = Object.defineProperty(segmentResponse.value?.map((s) => {
return {
timestamp: s.timestamp?.getTime(),
status: s.status,
message: s.message
};
}) || [], "continuationToken", {
enumerable: true,
value: segmentResponse.nextLink
});
const resultArray = Object.defineProperty(
segmentResponse.value?.map((s) => {
return {
timestamp: s.timestamp?.getTime(),
status: s.status,
message: s.message
};
}) || [],
"continuationToken",
{
enumerable: true,
value: segmentResponse.nextLink
}
);
yield Object.defineProperty(resultArray, "_response", {
enumerable: false,
value: segmentResponse._response
Expand Down
3 changes: 1 addition & 2 deletions sdk/metricsadvisor/ai-metrics-advisor/src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export {
export {
AnomalyValue,
DataFeedIngestionProgress,
GeneratedClientGetIngestionProgressResponse,
IngestionStatusType,
DataSourceType,
SeverityFilterCondition,
Expand Down Expand Up @@ -1714,7 +1713,7 @@ export interface HooksPageResponse extends Array<NotificationHookUnion> {
*/
parsedBody: any;
};
};
}

/**
* Contains response data for the getDataFeedIngestionProgress operation.
Expand Down

0 comments on commit bf6c272

Please sign in to comment.