Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support usage and access #2356

Merged
merged 12 commits into from
Mar 21, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,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
export type MetricUnit = string;

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

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

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

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

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

// @public
export interface PageSettings {
continuationToken?: string;
Expand Down Expand Up @@ -411,6 +444,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 @@ -429,22 +472,17 @@ export interface TestRunInputArtifacts {
// @public (undocumented)
export class TestRunOperationsClient {
constructor(endpoint: 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?: TestRunOperationsClientCreateOrUpdateAppComponentsOptions): 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?: TestRunOperationsClientCreateOrUpdateServerMetricsConfigOptions): Promise<TestRunServerMetricConfig>;
createOrUpdateAppComponents(testRunId: string, body: TestRunOperationsClientTestRunAppComponents, options?: TestRunOperationsClientCreateOrUpdateAppComponentsOptions): Promise<TestRunOperationsClientTestRunAppComponents>;
createOrUpdateServerMetricsConfig(testRunId: string, body: TestRunOperationsClientTestRunServerMetricConfig, options?: TestRunOperationsClientCreateOrUpdateServerMetricsConfigOptions): Promise<TestRunOperationsClientTestRunServerMetricConfig>;
deleteTestRun(testRunId: string, options?: DeleteTestRunOptions): Promise<void>;
getAppComponents(testRunId: string, options?: TestRunOperationsClientGetAppComponentsOptions): Promise<TestRunAppComponents>;
getServerMetricsConfig(testRunId: string, options?: TestRunOperationsClientGetServerMetricsConfigOptions): Promise<TestRunServerMetricConfig>;
getAppComponents(testRunId: string, options?: TestRunOperationsClientGetAppComponentsOptions): Promise<TestRunOperationsClientTestRunAppComponents>;
getServerMetricsConfig(testRunId: string, options?: TestRunOperationsClientGetServerMetricsConfigOptions): Promise<TestRunOperationsClientTestRunServerMetricConfig>;
getTestRun(testRunId: string, options?: GetTestRunOptions): Promise<TestRunOperationsClientTestRun>;
getTestRunFile(testRunId: string, fileName: string, options?: GetTestRunFileOptions): Promise<TestRunOperationsClientFileInfo>;
// Warning: (ae-forgotten-export) The symbol "MetricDefinitionCollection" needs to be exported by the entry point index.d.ts
listMetricDefinitions(testRunId: string, options?: ListMetricDefinitionsOptions): Promise<MetricDefinitionCollection>;
listMetricDefinitions(testRunId: string, options?: ListMetricDefinitionsOptions): Promise<TestRunOperationsClientMetricDefinitionCollection>;
listMetricDimensionValues(testRunId: string, name: string, metricNamespace: string, options?: ListMetricDimensionValuesOptions): TestRunOperationsClientPagedAsyncIterableIterator<TestRunOperationsClientDimensionValueList>;
// Warning: (ae-forgotten-export) The symbol "MetricNamespaceCollection" needs to be exported by the entry point index.d.ts
listMetricNamespaces(testRunId: string, options?: ListMetricNamespacesOptions): 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?: ListMetricsOptions): TestRunOperationsClientPagedAsyncIterableIterator<TestRunOperationsClientTimeSeriesElement>;
listMetricNamespaces(testRunId: string, options?: ListMetricNamespacesOptions): Promise<TestRunOperationsClientMetricNamespaceCollection>;
listMetrics(testRunId: string, body: TestRunOperationsClientMetricRequestPayload, options?: ListMetricsOptions): TestRunOperationsClientPagedAsyncIterableIterator<TestRunOperationsClientTimeSeriesElement>;
listTestRuns(options?: ListTestRunsOptions): TestRunOperationsClientPagedAsyncIterableIterator<TestRunOperationsClientTestRun>;
readonly pipeline: Pipeline;
stopTestRun(testRunId: string, options?: StopTestRunOptions): Promise<TestRunOperationsClientTestRun>;
Expand Down Expand Up @@ -567,12 +605,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
export type TestRunOperationsClientMetricUnit = string;

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

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

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

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

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

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

// @public
export interface TestRunOperationsClientPageSettings {
continuationToken?: string;
Expand Down Expand Up @@ -688,6 +771,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 @@ -726,6 +819,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 @@ -747,6 +850,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 @@ -765,6 +878,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
export type TestRunOperationsClientTimeGrain = string;

Expand All @@ -786,6 +909,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 @@ -37,18 +37,26 @@ export {
TestRunOutputArtifacts,
PFTestResult,
Status,
TestRunAppComponents,
TestRunServerMetricConfig,
MetricDefinitionCollection,
MetricDefinition,
NameAndDesc,
AggregationType,
MetricUnit,
MetricAvailability,
TimeGrain,
MetricNamespaceCollection,
MetricNamespace,
MetricRequestPayload,
DimensionFilter,
PagedTimeSeriesElement,
TimeSeriesElement,
MetricValue,
DimensionValue,
PagedTestRun,
Interval,
PagedDimensionValueList,
DimensionValueList,
CreateOrUpdateTestOptions,
CreateOrUpdateAppComponentsOptions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,26 @@ export {
TestRunOutputArtifacts,
PFTestResult,
Status,
TestRunAppComponents,
TestRunServerMetricConfig,
MetricDefinitionCollection,
MetricDefinition,
NameAndDesc,
AggregationType,
MetricUnit,
MetricAvailability,
TimeGrain,
MetricNamespaceCollection,
MetricNamespace,
MetricRequestPayload,
DimensionFilter,
PagedTimeSeriesElement,
TimeSeriesElement,
MetricValue,
DimensionValue,
PagedTestRun,
Interval,
PagedDimensionValueList,
DimensionValueList,
} from "./models.js";
export {
Expand Down
Loading
Loading