/
database.ts
65 lines (63 loc) · 2.44 KB
/
database.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
Metric,
DatabaseListMetricsOptionalParams,
Usage,
DatabaseListUsagesOptionalParams,
MetricDefinition,
DatabaseListMetricDefinitionsOptionalParams
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a Database. */
export interface Database {
/**
* Retrieves the metrics determined by the given filter for the given database account and database.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName Cosmos DB database account name.
* @param databaseRid Cosmos DB database rid.
* @param filter An OData filter expression that describes a subset of metrics to return. The
* parameters that can be filtered are name.value (name of the metric, can have an or of multiple
* names), startTime, endTime, and timeGrain. The supported operator is eq.
* @param options The options parameters.
*/
listMetrics(
resourceGroupName: string,
accountName: string,
databaseRid: string,
filter: string,
options?: DatabaseListMetricsOptionalParams
): PagedAsyncIterableIterator<Metric>;
/**
* Retrieves the usages (most recent data) for the given database.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName Cosmos DB database account name.
* @param databaseRid Cosmos DB database rid.
* @param options The options parameters.
*/
listUsages(
resourceGroupName: string,
accountName: string,
databaseRid: string,
options?: DatabaseListUsagesOptionalParams
): PagedAsyncIterableIterator<Usage>;
/**
* Retrieves metric definitions for the given database.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName Cosmos DB database account name.
* @param databaseRid Cosmos DB database rid.
* @param options The options parameters.
*/
listMetricDefinitions(
resourceGroupName: string,
accountName: string,
databaseRid: string,
options?: DatabaseListMetricDefinitionsOptionalParams
): PagedAsyncIterableIterator<MetricDefinition>;
}