Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

280 changes: 33 additions & 247 deletions sdk/anomalydetector/ai-anomaly-detector-rest/README.md

Large diffs are not rendered by default.

25 changes: 19 additions & 6 deletions sdk/anomalydetector/ai-anomaly-detector-rest/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./types/src/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/ai-anomaly-detector.d.ts"
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"tsdocMessageReporting": {
"default": {
"logLevel": "none"
}
},
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-unresolved-link": {
"logLevel": "none"
}
}
}
}
}
7 changes: 5 additions & 2 deletions sdk/anomalydetector/ai-anomaly-detector-rest/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ module.exports = function (config) {

envPreprocessor: [
"TEST_MODE",
"ANOMALY_DETECTOR_API_KEY",
"ANOMALY_DETECTOR_ENDPOINT",
"ENDPOINT",
"AZURE_CLIENT_SECRET",
"AZURE_CLIENT_ID",
"AZURE_TENANT_ID",
"SUBSCRIPTION_ID",
"RECORDINGS_RELATIVE_PATH",
],

Expand Down
36 changes: 13 additions & 23 deletions sdk/anomalydetector/ai-anomaly-detector-rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@azure-rest/ai-anomaly-detector",
"sdk-type": "client",
"author": "Microsoft Corporation",
"version": "1.0.0-beta.2",
"description": "A generated SDK for AnomalyDetectorRest.",
"version": "1.0.0-beta.1",
"description": "undefined",
"keywords": [
"node",
"azure",
Expand Down Expand Up @@ -38,12 +38,12 @@
"build:samples": "echo skipped.",
"build:test": "tsc -p . && dev-tool run bundle",
"build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local",
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"",
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"execute:samples": "dev-tool samples run samples-dev",
"execute:samples": "echo skipped",
"extract-api": "rimraf review && mkdirp ./review && api-extractor run --local",
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
"generate:client": "autorest --typescript swagger/README.md && npm run format",
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"",
"generate:client": "echo skipped",
"integration-test:browser": "dev-tool run test:browser",
"integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
Expand All @@ -62,20 +62,19 @@
"autoPublish": false,
"dependencies": {
"@azure/core-auth": "^1.3.0",
"@azure-rest/core-client": "^1.0.0",
"@azure-rest/core-client": "^1.1.3",
"@azure/core-rest-pipeline": "^1.8.0",
"@azure/logger": "^1.0.0",
"tslib": "^2.2.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-lro": "^2.2.0"
"@azure/core-paging": "^1.5.0"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"autorest": "latest",
"@types/node": "^14.0.0",
"dotenv": "^16.0.0",
"eslint": "^8.0.0",
"mkdirp": "^1.0.4",
"mkdirp": "^2.1.2",
"prettier": "^2.5.1",
"rimraf": "^3.0.0",
"source-map-support": "^0.5.9",
Expand All @@ -101,27 +100,18 @@
"karma-source-map-support": "~1.4.0",
"karma-sourcemap-loader": "^0.3.8",
"karma": "^6.2.0",
"nyc": "^15.0.0",
"csv-parse": "^5.0.3"
"nyc": "^15.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/anomalydetector/ai-anomaly-detector-rest/README.md",
"//metadata": {
"constantPaths": [
{
"path": "swagger/README.md",
"prefix": "package-version"
"path": "src/anomalyDetectorClient.ts",
"prefix": "userAgentInfo"
}
]
},
"browser": {
"./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js"
},
"//sampleConfiguration": {
"productName": "AnomalyDetectorRest",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure-rest/ai-anomaly-detector?view=azure-node-preview"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ import { StreamableMethod } from '@azure-rest/core-client';

// @public
export interface AlignPolicy {
alignMode?: "Inner" | "Outer";
alignMode?: string;
fillNAMethod?: string;
paddingValue?: number;
}

// @public
export interface AlignPolicyOutput {
alignMode?: "Inner" | "Outer";
alignMode?: string;
fillNAMethod?: string;
paddingValue?: number;
}
Expand All @@ -36,21 +36,21 @@ export interface AnomalyDetectionModelOutput {
modelInfo?: ModelInfoOutput;
}

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

// @public (undocumented)
export type AnomalyDetectorRestClient = Client & {
export type AnomalyDetectorClient = Client & {
path: Routes;
};

// @public (undocumented)
export interface AnomalyDetectorRestClientOptions extends ClientOptions {
export interface AnomalyDetectorClientOptions extends ClientOptions {
// (undocumented)
ApiVersion?: string;
apiVersion?: string;
}

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

// @public
Expand Down Expand Up @@ -81,7 +81,7 @@ export interface CorrelationChangesOutput {
}

// @public
function createClient(Endpoint: string, credentials: KeyCredential, options?: AnomalyDetectorRestClientOptions): AnomalyDetectorRestClient;
function createClient(endpoint: string, credentials: KeyCredential, options?: AnomalyDetectorClientOptions): AnomalyDetectorClient;
export default createClient;

// @public (undocumented)
Expand Down Expand Up @@ -214,7 +214,7 @@ export interface DetectUnivariateChangePointBodyParam {

// @public (undocumented)
export interface DetectUnivariateChangePointDefaultHeaders {
"x-ms-error-code"?: string;
"x-ms-error-code": string;
}

// @public (undocumented)
Expand Down Expand Up @@ -250,7 +250,7 @@ export interface DetectUnivariateEntireSeriesBodyParam {

// @public (undocumented)
export interface DetectUnivariateEntireSeriesDefaultHeaders {
"x-ms-error-code"?: string;
"x-ms-error-code": string;
}

// @public (undocumented)
Expand Down Expand Up @@ -286,7 +286,7 @@ export interface DetectUnivariateLastPointBodyParam {

// @public (undocumented)
export interface DetectUnivariateLastPointDefaultHeaders {
"x-ms-error-code"?: string;
"x-ms-error-code": string;
}

// @public (undocumented)
Expand Down Expand Up @@ -465,26 +465,24 @@ export interface ModelInfo {
alignPolicy?: AlignPolicy;
dataSchema?: string;
dataSource: string;
diagnosticsInfo?: DiagnosticsInfo;
displayName?: string;
endTime: Date | string;
slidingWindow?: number;
startTime: Date | string;
status?: "CREATED" | "RUNNING" | "READY" | "FAILED";
}

// @public
export interface ModelInfoOutput {
alignPolicy?: AlignPolicyOutput;
dataSchema?: string;
dataSource: string;
diagnosticsInfo?: DiagnosticsInfoOutput;
readonly diagnosticsInfo?: DiagnosticsInfoOutput;
displayName?: string;
endTime: string;
readonly errors?: Array<ErrorResponseOutput>;
slidingWindow?: number;
startTime: string;
status?: "CREATED" | "RUNNING" | "READY" | "FAILED";
readonly status?: string;
}

// @public
Expand Down Expand Up @@ -516,22 +514,22 @@ export interface MultivariateBatchDetectionOptions {
dataSource: string;
endTime: Date | string;
startTime: Date | string;
topContributorCount: number;
topContributorCount?: number;
}

// @public
export interface MultivariateBatchDetectionOptionsOutput {
dataSource: string;
endTime: string;
startTime: string;
topContributorCount: number;
topContributorCount?: number;
}

// @public
export interface MultivariateBatchDetectionResultSummaryOutput {
errors?: Array<ErrorResponseOutput>;
setupInfo: MultivariateBatchDetectionOptionsOutput;
status: "CREATED" | "RUNNING" | "READY" | "FAILED";
status: string;
variableStates?: Array<VariableStateOutput>;
}

Expand All @@ -544,7 +542,7 @@ export interface MultivariateDetectionResultOutput {

// @public
export interface MultivariateLastDetectionOptions {
topContributorCount: number;
topContributorCount?: number;
variables: Array<VariableValues>;
}

Expand Down Expand Up @@ -638,7 +636,7 @@ export type TrainMultivariateModelParameters = TrainMultivariateModelBodyParam &
// @public
export interface UnivariateChangePointDetectionOptions {
customInterval?: number;
granularity: "yearly" | "monthly" | "weekly" | "daily" | "hourly" | "minutely" | "secondly" | "microsecond" | "none";
granularity: string;
period?: number;
series: Array<TimeSeriesPoint>;
stableTrendWindow?: number;
Expand All @@ -655,7 +653,7 @@ export interface UnivariateChangePointDetectionResultOutput {
// @public
export interface UnivariateDetectionOptions {
customInterval?: number;
granularity?: "yearly" | "monthly" | "weekly" | "daily" | "hourly" | "minutely" | "secondly" | "microsecond" | "none";
granularity?: string;
imputeFixedValue?: number;
imputeMode?: string;
maxAnomalyRatio?: number;
Expand Down
Loading