Skip to content

Commit

Permalink
Fix enums that were gone after moving to V6 SDK code generator (Azure…
Browse files Browse the repository at this point in the history
…#14067)

Co-authored-by: Jose Manuel Heredia Hidalgo <joheredi@microsoft.com>
  • Loading branch information
KarishmaGhiya and joheredi authored Mar 4, 2021
1 parent 2a96313 commit aeaa3ee
Show file tree
Hide file tree
Showing 7 changed files with 339 additions and 906 deletions.
156 changes: 19 additions & 137 deletions sdk/metricsadvisor/ai-metrics-advisor/review/ai-metrics-advisor.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export interface AnomalyDetectionConfiguration {
}

// @public
export type AnomalyDetectorDirection = string;
export type AnomalyDetectorDirection = "Both" | "Down" | "Up";

// @public
export interface AnomalyIncident {
Expand All @@ -99,7 +99,7 @@ export type AnomalySeverity = "Low" | "Medium" | "High";
export type AnomalyStatus = "Active" | "Resolved";

// @public
export type AnomalyValue = string;
export type AnomalyValue = "AutoDetect" | "Anomaly" | "NotAnomaly";

// @public
export type AzureApplicationInsightsDataFeedSource = {
Expand Down Expand Up @@ -210,13 +210,13 @@ export type DataFeed = {
} & DataFeedOptions;

// @public
export type DataFeedAccessMode = "Private" | "Public" | string;
export type DataFeedAccessMode = "Private" | "Public";

// @public
export type DataFeedDescriptor = Omit<DataFeed, "id" | "metricIds" | "isAdmin" | "status" | "creator" | "createdOn">;

// @public
export type DataFeedDetailStatus = string;
export type DataFeedDetailStatus = "Active" | "Paused";

// @public
export interface DataFeedDimension {
Expand All @@ -226,8 +226,7 @@ export interface DataFeedDimension {

// @public
export type DataFeedGranularity = {
granularityType: "Yearly" | "Monthly" | "Weekly" | "Daily" | "Hourly" | "PerMinute" | "PerSecond" | string;
customGranularityValue?: number;
granularityType: "Yearly" | "Monthly" | "Weekly" | "Daily" | "Hourly" | "PerMinute" | "PerSecond";
} | {
granularityType: "Custom";
customGranularityValue: number;
Expand Down Expand Up @@ -258,8 +257,7 @@ export interface DataFeedMetric {

// @public
export type DataFeedMissingDataPointFillSettings = {
fillType: "SmartFilling" | "PreviousValue" | "NoFilling" | string;
customFillValue?: number;
fillType: "SmartFilling" | "PreviousValue" | "NoFilling";
} | {
fillType: "CustomValue";
customFillValue: number;
Expand Down Expand Up @@ -289,7 +287,7 @@ export type DataFeedPatch = {
};

// @public
export type DataFeedRollupMethod = "None" | "Sum" | "Max" | "Min" | "Avg" | "Count" | string;
export type DataFeedRollupMethod = "None" | "Sum" | "Max" | "Min" | "Avg" | "Count";

// @public
export type DataFeedRollupSettings = {
Expand Down Expand Up @@ -329,7 +327,7 @@ export interface DataFeedsPageResponse extends Array<DataFeed> {
}

// @public (undocumented)
export type DataFeedStatus = "Paused" | "Active" | string;
export type DataFeedStatus = "Paused" | "Active";

// @public
export interface DataPointAnomaly {
Expand All @@ -344,7 +342,7 @@ export interface DataPointAnomaly {
}

// @public
export type DataSourceType = string;
export type DataSourceType = "AzureApplicationInsights" | "AzureBlob" | "AzureCosmosDB" | "AzureDataExplorer" | "AzureDataLakeStorageGen2" | "AzureTable" | "Elasticsearch" | "HttpRequest" | "InfluxDB" | "MongoDB" | "MySql" | "PostgreSql" | "SqlServer";

// @public
export interface DetectionConditionsCommon {
Expand All @@ -355,7 +353,7 @@ export interface DetectionConditionsCommon {
}

// @public
export type DetectionConditionsOperator = "AND" | "OR" | string;
export type DetectionConditionsOperator = "AND" | "OR";

// @public
export interface DetectionConfigurationsPageResponse extends Array<AnomalyDetectionConfiguration> {
Expand Down Expand Up @@ -416,10 +414,10 @@ export interface EnrichmentStatus {
}

// @public
export type FeedbackQueryTimeMode = string;
export type FeedbackQueryTimeMode = "MetricTimestamp" | "FeedbackCreatedTime";

// @public
export type FeedbackType = string;
export type FeedbackType = "Anomaly" | "ChangePoint" | "Period" | "Comment";

// @public
export type GetAnomalyAlertConfigurationResponse = AnomalyAlertConfiguration & {
Expand Down Expand Up @@ -592,123 +590,7 @@ export interface IngestionStatusPageResponse extends Array<IngestionStatus> {
}

// @public
export type IngestionStatusType = string;

// @public
export const enum KnownAnomalyDetectorDirection {
// (undocumented)
Both = "Both",
// (undocumented)
Down = "Down",
// (undocumented)
Up = "Up"
}

// @public
export const enum KnownAnomalyValue {
// (undocumented)
Anomaly = "Anomaly",
// (undocumented)
AutoDetect = "AutoDetect",
// (undocumented)
NotAnomaly = "NotAnomaly"
}

// @public
export const enum KnownDataFeedDetailStatus {
// (undocumented)
Active = "Active",
// (undocumented)
Paused = "Paused"
}

// @public
export const enum KnownDataSourceType {
// (undocumented)
AzureApplicationInsights = "AzureApplicationInsights",
// (undocumented)
AzureBlob = "AzureBlob",
// (undocumented)
AzureCosmosDB = "AzureCosmosDB",
// (undocumented)
AzureDataExplorer = "AzureDataExplorer",
// (undocumented)
AzureDataLakeStorageGen2 = "AzureDataLakeStorageGen2",
// (undocumented)
AzureTable = "AzureTable",
// (undocumented)
Elasticsearch = "Elasticsearch",
// (undocumented)
HttpRequest = "HttpRequest",
// (undocumented)
InfluxDB = "InfluxDB",
// (undocumented)
MongoDB = "MongoDB",
// (undocumented)
MySql = "MySql",
// (undocumented)
PostgreSql = "PostgreSql",
// (undocumented)
SqlServer = "SqlServer"
}

// @public
export const enum KnownFeedbackQueryTimeMode {
// (undocumented)
FeedbackCreatedTime = "FeedbackCreatedTime",
// (undocumented)
MetricTimestamp = "MetricTimestamp"
}

// @public
export const enum KnownFeedbackType {
// (undocumented)
Anomaly = "Anomaly",
// (undocumented)
ChangePoint = "ChangePoint",
// (undocumented)
Comment = "Comment",
// (undocumented)
Period = "Period"
}

// @public
export const enum KnownIngestionStatusType {
// (undocumented)
Error = "Error",
// (undocumented)
Failed = "Failed",
// (undocumented)
NoData = "NoData",
// (undocumented)
NotStarted = "NotStarted",
// (undocumented)
Paused = "Paused",
// (undocumented)
Running = "Running",
// (undocumented)
Scheduled = "Scheduled",
// (undocumented)
Succeeded = "Succeeded"
}

// @public
export const enum KnownSeverity {
// (undocumented)
High = "High",
// (undocumented)
Low = "Low",
// (undocumented)
Medium = "Medium"
}

// @public
export const enum KnownSnoozeScope {
// (undocumented)
Metric = "Metric",
// (undocumented)
Series = "Series"
}
export type IngestionStatusType = "NotStarted" | "Scheduled" | "Running" | "Succeeded" | "Failed" | "NoData" | "Error" | "Paused";

// @public
export type ListAlertsOptions = {
Expand Down Expand Up @@ -811,7 +693,7 @@ export interface MetricAlertConfiguration {
}

// @public
export type MetricAnomalyAlertConfigurationsOperator = "AND" | "OR" | "XOR" | string;
export type MetricAnomalyAlertConfigurationsOperator = "AND" | "OR" | "XOR";

// @public
export type MetricAnomalyAlertScope = {
Expand All @@ -829,7 +711,7 @@ export type MetricAnomalyFeedback = {
feedbackType: "Anomaly";
startTime: Date;
endTime: Date;
value: "AutoDetect" | "Anomaly" | "NotAnomaly" | string;
value: "AutoDetect" | "Anomaly" | "NotAnomaly";
readonly anomalyDetectionConfigurationId?: string;
readonly anomalyDetectionConfigurationSnapshot?: AnomalyDetectionConfiguration;
} & MetricFeedbackCommon;
Expand Down Expand Up @@ -857,7 +739,7 @@ export type MetricBoundaryCondition = {
export type MetricChangePointFeedback = {
feedbackType: "ChangePoint";
startTime: Date;
value: "AutoDetect" | "ChangePoint" | "NotChangePoint" | string;
value: "AutoDetect" | "ChangePoint" | "NotChangePoint";
} & MetricFeedbackCommon;

// @public
Expand Down Expand Up @@ -916,7 +798,7 @@ export type MetricFeedbackUnion = MetricAnomalyFeedback | MetricChangePointFeedb
// @public
export type MetricPeriodFeedback = {
feedbackType: "Period";
periodType: "AutoDetect" | "AssignValue" | string;
periodType: "AutoDetect" | "AssignValue";
periodValue: number;
} & MetricFeedbackCommon;

Expand Down Expand Up @@ -1064,7 +946,7 @@ export type PostgreSqlDataFeedSource = {
};

// @public
export type Severity = string;
export type Severity = "Low" | "Medium" | "High";

// @public (undocumented)
export interface SeverityCondition {
Expand All @@ -1087,7 +969,7 @@ export interface SmartDetectionCondition {
}

// @public
export type SnoozeScope = string;
export type SnoozeScope = "Metric" | "Series";

// @public
export type SQLServerDataFeedSource = {
Expand Down
Loading

0 comments on commit aeaa3ee

Please sign in to comment.