Skip to content

Commit

Permalink
Remove orphan model detection (#2478)
Browse files Browse the repository at this point in the history
* Remove orphan model detection

* update openai config

* Fix formatting glob

* Update smoke tests

* Update cadl ranch
  • Loading branch information
joheredi authored Apr 25, 2024
1 parent 8b555e2 commit a8f8ba4
Show file tree
Hide file tree
Showing 44 changed files with 454 additions and 124 deletions.
2 changes: 1 addition & 1 deletion packages/rlc-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"lint:fix": "eslint src --fix --ext .ts",
"format": "npm run -s prettier -- --write",
"check-format": "npm run prettier -- --check",
"prettier": "prettier --config ./.prettierrc src/**/*.ts",
"prettier": "prettier --config ./.prettierrc \"src/**/*.ts\"",
"build": "rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node publishPackage.js",
"build:cjs": "rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig-cjs.json && node publishPackage.js",
"build:esm": "rimraf --glob dist/* dist-esm/* types/* && tsc -p tsconfig.json && node publishPackage.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ export interface MultivariateOperations {
trainMultivariateModel: (modelInfo: MultivariateModelInfo, options?: MultivariateTrainMultivariateModelOptionalParams) => Promise<MultivariateAnomalyDetectionModel>;
}

// @public
export interface MultivariateResponseError {
code: string;
message: string;
}

// @public (undocumented)
export interface MultivariateTrainMultivariateModelOptionalParams extends OperationOptions {
}
Expand Down Expand Up @@ -246,6 +252,12 @@ export interface PageSettings {
// @public (undocumented)
export type TimeGranularity = "yearly" | "monthly" | "weekly" | "daily" | "hourly" | "minutely" | "secondly" | "microsecond" | "none";

// @public
export interface UnivariateAnomalyDetectorError {
code?: AnomalyDetectorErrorCodes;
message?: string;
}

// @public (undocumented)
export interface UnivariateDetectUnivariateChangePointOptionalParams extends OperationOptions {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export {
MultivariateAnomalyValue,
MultivariateAnomalyInterpretation,
MultivariateCorrelationChanges,
MultivariateResponseError,
MultivariateModelInfo,
DataSchema,
MultivariateAlignPolicy,
Expand All @@ -34,6 +35,7 @@ export {
TimeGranularity,
ImputeMode,
UnivariateUnivariateEntireDetectionResult,
UnivariateAnomalyDetectorError,
AnomalyDetectorErrorCodes,
UnivariateUnivariateLastDetectionResult,
UnivariateUnivariateChangePointDetectionOptions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export {
MultivariateAnomalyValue,
MultivariateAnomalyInterpretation,
MultivariateCorrelationChanges,
MultivariateResponseError,
MultivariateModelInfo,
DataSchema,
MultivariateAlignPolicy,
Expand All @@ -30,6 +31,7 @@ export {
TimeGranularity,
ImputeMode,
UnivariateUnivariateEntireDetectionResult,
UnivariateAnomalyDetectorError,
AnomalyDetectorErrorCodes,
UnivariateUnivariateLastDetectionResult,
UnivariateUnivariateChangePointDetectionOptions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ export interface MultivariateCorrelationChanges {
changedVariables?: string[];
}

/** Error response */
export interface MultivariateResponseError {
/** The error code. */
code: string;
/** The message explaining the error reported by the service. */
message: string;
}

/**
* Training result of a model including its status, errors and diagnostics
* information.
Expand Down Expand Up @@ -431,6 +439,14 @@ export interface UnivariateUnivariateEntireDetectionResult {
severity?: number[];
}

/** Error information returned by the API. */
export interface UnivariateAnomalyDetectorError {
/** The error code. */
code?: AnomalyDetectorErrorCodes;
/** A message explaining the error reported by the service. */
message?: string;
}

/** */
export type AnomalyDetectorErrorCodes =
| "InvalidCustomInterval"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,27 @@ export interface MetricDefinition {
unit?: MetricUnit;
}

// @public
export interface MetricDefinitionCollection {
value: MetricDefinition[];
}

// @public
export interface MetricNamespace {
description?: string;
name?: string;
}

// @public
export interface MetricNamespaceCollection {
value: MetricNamespace[];
}

// @public
export interface MetricRequestPayload {
filters?: DimensionFilter[];
}

// @public (undocumented)
export type MetricUnit = "NotSpecified" | "Percent" | "Count" | "Seconds" | "Milliseconds" | "Bytes" | "BytesPerSecond" | "CountPerSecond";

Expand Down Expand Up @@ -270,6 +285,12 @@ export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageS
next(): Promise<IteratorResult<TElement>>;
}

// @public
export interface PagedDimensionValueList {
nextLink?: string;
value: DimensionValueList[];
}

// @public
export interface PagedFileInfo {
nextLink?: string;
Expand All @@ -282,6 +303,18 @@ export interface PagedTest {
value: Test[];
}

// @public
export interface PagedTestRun {
nextLink?: string;
value: TestRun[];
}

// @public
export interface PagedTimeSeriesElement {
nextLink?: string;
value: TimeSeriesElement[];
}

// @public
export interface PageSettings {
continuationToken?: string;
Expand Down Expand Up @@ -415,6 +448,16 @@ export interface TestRun {
readonly virtualUsers?: number;
}

// @public
export interface TestRunAppComponents {
components: Record<string, AppComponent>;
readonly createdBy?: string;
readonly createdDateTime?: string;
readonly lastModifiedBy?: string;
readonly lastModifiedDateTime?: string;
readonly testRunId?: string;
}

// @public
export interface TestRunArtifacts {
readonly inputArtifacts?: TestRunInputArtifacts;
Expand All @@ -433,22 +476,17 @@ export interface TestRunInputArtifacts {
// @public (undocumented)
export class TestRunOperationsClient {
constructor(endpointParam: string, credential: TokenCredential, options?: TestRunOperationsClientOptions);
// Warning: (ae-forgotten-export) The symbol "TestRunAppComponents" needs to be exported by the entry point index.d.ts
createOrUpdateAppComponents(testRunId: string, body: TestRunAppComponents, options?: TestRunOperationsClientCreateOrUpdateAppComponentsOptionalParams): Promise<TestRunAppComponents>;
// Warning: (ae-forgotten-export) The symbol "TestRunServerMetricConfig" needs to be exported by the entry point index.d.ts
createOrUpdateServerMetricsConfig(testRunId: string, body: TestRunServerMetricConfig, options?: TestRunOperationsClientCreateOrUpdateServerMetricsConfigOptionalParams): Promise<TestRunServerMetricConfig>;
createOrUpdateAppComponents(testRunId: string, body: TestRunOperationsClientTestRunAppComponents, options?: TestRunOperationsClientCreateOrUpdateAppComponentsOptionalParams): Promise<TestRunOperationsClientTestRunAppComponents>;
createOrUpdateServerMetricsConfig(testRunId: string, body: TestRunOperationsClientTestRunServerMetricConfig, options?: TestRunOperationsClientCreateOrUpdateServerMetricsConfigOptionalParams): Promise<TestRunOperationsClientTestRunServerMetricConfig>;
deleteTestRun(testRunId: string, options?: DeleteTestRunOptionalParams): Promise<void>;
getAppComponents(testRunId: string, options?: TestRunOperationsClientGetAppComponentsOptionalParams): Promise<TestRunAppComponents>;
getServerMetricsConfig(testRunId: string, options?: TestRunOperationsClientGetServerMetricsConfigOptionalParams): Promise<TestRunServerMetricConfig>;
getAppComponents(testRunId: string, options?: TestRunOperationsClientGetAppComponentsOptionalParams): Promise<TestRunOperationsClientTestRunAppComponents>;
getServerMetricsConfig(testRunId: string, options?: TestRunOperationsClientGetServerMetricsConfigOptionalParams): Promise<TestRunOperationsClientTestRunServerMetricConfig>;
getTestRun(testRunId: string, options?: GetTestRunOptionalParams): Promise<TestRunOperationsClientTestRun>;
getTestRunFile(testRunId: string, fileName: string, options?: GetTestRunFileOptionalParams): Promise<TestRunOperationsClientFileInfo>;
// Warning: (ae-forgotten-export) The symbol "MetricDefinitionCollection" needs to be exported by the entry point index.d.ts
listMetricDefinitions(testRunId: string, options?: ListMetricDefinitionsOptionalParams): Promise<MetricDefinitionCollection>;
listMetricDefinitions(testRunId: string, options?: ListMetricDefinitionsOptionalParams): Promise<TestRunOperationsClientMetricDefinitionCollection>;
listMetricDimensionValues(testRunId: string, name: string, metricNamespace: string, options?: ListMetricDimensionValuesOptionalParams): TestRunOperationsClientPagedAsyncIterableIterator<TestRunOperationsClientDimensionValueList>;
// Warning: (ae-forgotten-export) The symbol "MetricNamespaceCollection" needs to be exported by the entry point index.d.ts
listMetricNamespaces(testRunId: string, options?: ListMetricNamespacesOptionalParams): Promise<MetricNamespaceCollection>;
// Warning: (ae-forgotten-export) The symbol "MetricRequestPayload" needs to be exported by the entry point index.d.ts
listMetrics(testRunId: string, body: MetricRequestPayload, options?: ListMetricsOptionalParams): TestRunOperationsClientPagedAsyncIterableIterator<TestRunOperationsClientTimeSeriesElement>;
listMetricNamespaces(testRunId: string, options?: ListMetricNamespacesOptionalParams): Promise<TestRunOperationsClientMetricNamespaceCollection>;
listMetrics(testRunId: string, body: TestRunOperationsClientMetricRequestPayload, options?: ListMetricsOptionalParams): TestRunOperationsClientPagedAsyncIterableIterator<TestRunOperationsClientTimeSeriesElement>;
listTestRuns(options?: ListTestRunsOptionalParams): TestRunOperationsClientPagedAsyncIterableIterator<TestRunOperationsClientTestRun>;
readonly pipeline: Pipeline;
stopTestRun(testRunId: string, options?: StopTestRunOptionalParams): Promise<TestRunOperationsClientTestRun>;
Expand Down Expand Up @@ -574,12 +612,27 @@ export interface TestRunOperationsClientMetricDefinition {
unit?: TestRunOperationsClientMetricUnit;
}

// @public
export interface TestRunOperationsClientMetricDefinitionCollection {
value: TestRunOperationsClientMetricDefinition[];
}

// @public
export interface TestRunOperationsClientMetricNamespace {
description?: string;
name?: string;
}

// @public
export interface TestRunOperationsClientMetricNamespaceCollection {
value: TestRunOperationsClientMetricNamespace[];
}

// @public
export interface TestRunOperationsClientMetricRequestPayload {
filters?: TestRunOperationsClientDimensionFilter[];
}

// @public (undocumented)
export type TestRunOperationsClientMetricUnit = "NotSpecified" | "Percent" | "Count" | "Seconds" | "Milliseconds" | "Bytes" | "BytesPerSecond" | "CountPerSecond";

Expand Down Expand Up @@ -615,6 +668,36 @@ export interface TestRunOperationsClientPagedAsyncIterableIterator<TElement, TPa
next(): Promise<IteratorResult<TElement>>;
}

// @public
export interface TestRunOperationsClientPagedDimensionValueList {
nextLink?: string;
value: TestRunOperationsClientDimensionValueList[];
}

// @public
export interface TestRunOperationsClientPagedFileInfo {
nextLink?: string;
value: TestRunOperationsClientFileInfo[];
}

// @public
export interface TestRunOperationsClientPagedTest {
nextLink?: string;
value: TestRunOperationsClientTest[];
}

// @public
export interface TestRunOperationsClientPagedTestRun {
nextLink?: string;
value: TestRunOperationsClientTestRun[];
}

// @public
export interface TestRunOperationsClientPagedTimeSeriesElement {
nextLink?: string;
value: TestRunOperationsClientTimeSeriesElement[];
}

// @public
export interface TestRunOperationsClientPageSettings {
continuationToken?: string;
Expand Down Expand Up @@ -696,6 +779,16 @@ export interface TestRunOperationsClientTest {
readonly testId?: string;
}

// @public
export interface TestRunOperationsClientTestAppComponents {
components: Record<string, TestRunOperationsClientAppComponent>;
readonly createdBy?: string;
readonly createdDateTime?: string;
readonly lastModifiedBy?: string;
readonly lastModifiedDateTime?: string;
readonly testId?: string;
}

// @public
export interface TestRunOperationsClientTestInputArtifacts {
readonly additionalFileInfo?: TestRunOperationsClientFileInfo[];
Expand Down Expand Up @@ -734,6 +827,16 @@ export interface TestRunOperationsClientTestRun {
readonly virtualUsers?: number;
}

// @public
export interface TestRunOperationsClientTestRunAppComponents {
components: Record<string, TestRunOperationsClientAppComponent>;
readonly createdBy?: string;
readonly createdDateTime?: string;
readonly lastModifiedBy?: string;
readonly lastModifiedDateTime?: string;
readonly testRunId?: string;
}

// @public
export interface TestRunOperationsClientTestRunArtifacts {
readonly inputArtifacts?: TestRunOperationsClientTestRunInputArtifacts;
Expand All @@ -755,6 +858,16 @@ export interface TestRunOperationsClientTestRunOutputArtifacts {
resultFileInfo?: TestRunOperationsClientFileInfo;
}

// @public
export interface TestRunOperationsClientTestRunServerMetricConfig {
readonly createdBy?: string;
readonly createdDateTime?: string;
readonly lastModifiedBy?: string;
readonly lastModifiedDateTime?: string;
metrics?: Record<string, TestRunOperationsClientResourceMetric>;
readonly testRunId?: string;
}

// @public
export interface TestRunOperationsClientTestRunStatistics {
readonly errorCount?: number;
Expand All @@ -773,6 +886,16 @@ export interface TestRunOperationsClientTestRunStatistics {
readonly transaction?: string;
}

// @public
export interface TestRunOperationsClientTestServerMetricConfig {
readonly createdBy?: string;
readonly createdDateTime?: string;
readonly lastModifiedBy?: string;
readonly lastModifiedDateTime?: string;
metrics?: Record<string, TestRunOperationsClientResourceMetric>;
readonly testId?: string;
}

// @public (undocumented)
export type TestRunOperationsClientTimeGrain = "PT5S" | "PT10S" | "PT1M" | "PT5M" | "PT1H";

Expand All @@ -794,6 +917,16 @@ export interface TestRunOutputArtifacts {
resultFileInfo?: FileInfo;
}

// @public
export interface TestRunServerMetricConfig {
readonly createdBy?: string;
readonly createdDateTime?: string;
readonly lastModifiedBy?: string;
readonly lastModifiedDateTime?: string;
metrics?: Record<string, ResourceMetric>;
readonly testRunId?: string;
}

// @public
export interface TestRunStatistics {
readonly errorCount?: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,27 @@ export {
TestRunOutputArtifacts,
PFTestResult,
Status,
TestRunAppComponents,
TestRunServerMetricConfig,
Interval,
DimensionValueList,
MetricDefinitionCollection,
MetricDefinition,
NameAndDesc,
AggregationType,
MetricUnit,
MetricAvailability,
TimeGrain,
MetricNamespaceCollection,
MetricNamespace,
MetricRequestPayload,
DimensionFilter,
PagedTimeSeriesElement,
TimeSeriesElement,
MetricValue,
DimensionValue,
PagedTestRun,
PagedDimensionValueList,
CreateOrUpdateTestOptionalParams,
CreateOrUpdateAppComponentsOptionalParams,
CreateOrUpdateServerMetricsConfigOptionalParams,
Expand Down
Loading

0 comments on commit a8f8ba4

Please sign in to comment.