@azure/arm-dynatrace 1.0.2-alpha.20230824.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -10
- package/dist/index.js +257 -258
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/monitorsCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/monitorsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.js +58 -0
- package/dist-esm/samples-dev/monitorsGetMarketplaceSaaSResourceDetailsSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsGetMetricStatusSample.d.ts +2 -0
- package/dist-esm/samples-dev/monitorsGetMetricStatusSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{monitorsGetAccountCredentialsSample.js → monitorsGetMetricStatusSample.js} +19 -21
- package/dist-esm/samples-dev/monitorsGetMetricStatusSample.js.map +1 -0
- package/dist-esm/samples-dev/monitorsGetSample.js +2 -2
- package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.js +3 -3
- package/dist-esm/samples-dev/monitorsGetSsoDetailsSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsGetVMHostPayloadSample.js +2 -2
- package/dist-esm/samples-dev/monitorsListAppServicesSample.js +2 -2
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js +2 -2
- package/dist-esm/samples-dev/monitorsListBySubscriptionIdSample.js +2 -2
- package/dist-esm/samples-dev/monitorsListHostsSample.js +6 -6
- package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.js +7 -3
- package/dist-esm/samples-dev/monitorsListLinkableEnvironmentsSample.js.map +1 -1
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js +2 -2
- package/dist-esm/samples-dev/monitorsUpdateSample.js +3 -25
- package/dist-esm/samples-dev/monitorsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +2 -2
- package/dist-esm/samples-dev/singleSignOnCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/singleSignOnGetSample.js +2 -2
- package/dist-esm/samples-dev/singleSignOnListSample.js +2 -2
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js +6 -3
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/tagRulesDeleteSample.js +2 -2
- package/dist-esm/samples-dev/tagRulesGetSample.js +2 -2
- package/dist-esm/samples-dev/tagRulesListSample.js +2 -2
- package/dist-esm/src/dynatraceObservability.js +2 -2
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +54 -69
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +5 -4
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +116 -130
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +7 -7
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/monitors.d.ts +19 -13
- package/dist-esm/src/operations/monitors.d.ts.map +1 -1
- package/dist-esm/src/operations/monitors.js +83 -46
- package/dist-esm/src/operations/monitors.js.map +1 -1
- package/dist-esm/src/operations/singleSignOn.d.ts +2 -2
- package/dist-esm/src/operations/singleSignOn.d.ts.map +1 -1
- package/dist-esm/src/operations/singleSignOn.js +18 -8
- package/dist-esm/src/operations/singleSignOn.js.map +1 -1
- package/dist-esm/src/operations/tagRules.d.ts +4 -13
- package/dist-esm/src/operations/tagRules.d.ts.map +1 -1
- package/dist-esm/src/operations/tagRules.js +20 -47
- package/dist-esm/src/operations/tagRules.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/monitors.d.ts +18 -12
- package/dist-esm/src/operationsInterfaces/monitors.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/singleSignOn.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/singleSignOn.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/tagRules.d.ts +4 -13
- package/dist-esm/src/operationsInterfaces/tagRules.d.ts.map +1 -1
- package/dist-esm/test/dynatrace_examples.spec.js +60 -13
- package/dist-esm/test/dynatrace_examples.spec.js.map +1 -1
- package/package.json +7 -7
- package/review/arm-dynatrace.api.md +40 -40
- package/src/dynatraceObservability.ts +2 -2
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +62 -76
- package/src/models/mappers.ts +120 -133
- package/src/models/parameters.ts +8 -8
- package/src/operations/monitors.ts +115 -68
- package/src/operations/singleSignOn.ts +27 -14
- package/src/operations/tagRules.ts +30 -72
- package/src/operationsInterfaces/monitors.ts +30 -18
- package/src/operationsInterfaces/singleSignOn.ts +3 -3
- package/src/operationsInterfaces/tagRules.ts +4 -22
- package/types/arm-dynatrace.d.ts +59 -76
- package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitorsGetAccountCredentialsSample.js.map +0 -1
- package/dist-esm/samples-dev/tagRulesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/tagRulesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/tagRulesUpdateSample.js +0 -75
- package/dist-esm/samples-dev/tagRulesUpdateSample.js.map +0 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
TagRule,
|
|
13
13
|
TagRulesListOptionalParams,
|
|
@@ -15,9 +15,6 @@ import {
|
|
|
15
15
|
TagRulesGetResponse,
|
|
16
16
|
TagRulesCreateOrUpdateOptionalParams,
|
|
17
17
|
TagRulesCreateOrUpdateResponse,
|
|
18
|
-
TagRuleUpdate,
|
|
19
|
-
TagRulesUpdateOptionalParams,
|
|
20
|
-
TagRulesUpdateResponse,
|
|
21
18
|
TagRulesDeleteOptionalParams
|
|
22
19
|
} from "../models";
|
|
23
20
|
|
|
@@ -63,8 +60,8 @@ export interface TagRules {
|
|
|
63
60
|
resource: TagRule,
|
|
64
61
|
options?: TagRulesCreateOrUpdateOptionalParams
|
|
65
62
|
): Promise<
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
SimplePollerLike<
|
|
64
|
+
OperationState<TagRulesCreateOrUpdateResponse>,
|
|
68
65
|
TagRulesCreateOrUpdateResponse
|
|
69
66
|
>
|
|
70
67
|
>;
|
|
@@ -83,21 +80,6 @@ export interface TagRules {
|
|
|
83
80
|
resource: TagRule,
|
|
84
81
|
options?: TagRulesCreateOrUpdateOptionalParams
|
|
85
82
|
): Promise<TagRulesCreateOrUpdateResponse>;
|
|
86
|
-
/**
|
|
87
|
-
* Update a TagRule
|
|
88
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
89
|
-
* @param monitorName Monitor resource name
|
|
90
|
-
* @param ruleSetName Monitor resource name
|
|
91
|
-
* @param resource The resource properties to be updated.
|
|
92
|
-
* @param options The options parameters.
|
|
93
|
-
*/
|
|
94
|
-
update(
|
|
95
|
-
resourceGroupName: string,
|
|
96
|
-
monitorName: string,
|
|
97
|
-
ruleSetName: string,
|
|
98
|
-
resource: TagRuleUpdate,
|
|
99
|
-
options?: TagRulesUpdateOptionalParams
|
|
100
|
-
): Promise<TagRulesUpdateResponse>;
|
|
101
83
|
/**
|
|
102
84
|
* Delete a TagRule
|
|
103
85
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -110,7 +92,7 @@ export interface TagRules {
|
|
|
110
92
|
monitorName: string,
|
|
111
93
|
ruleSetName: string,
|
|
112
94
|
options?: TagRulesDeleteOptionalParams
|
|
113
|
-
): Promise<
|
|
95
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
114
96
|
/**
|
|
115
97
|
* Delete a TagRule
|
|
116
98
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
package/types/arm-dynatrace.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as coreAuth from '@azure/core-auth';
|
|
2
2
|
import * as coreClient from '@azure/core-client';
|
|
3
|
+
import { OperationState } from '@azure/core-lro';
|
|
3
4
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
4
|
-
import {
|
|
5
|
-
import { PollOperationState } from '@azure/core-lro';
|
|
5
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
6
6
|
|
|
7
7
|
/** Dynatrace Account Information */
|
|
8
8
|
export declare interface AccountInfo {
|
|
@@ -12,26 +12,6 @@ export declare interface AccountInfo {
|
|
|
12
12
|
regionId?: string;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
/** Dynatrace account API Key */
|
|
16
|
-
export declare interface AccountInfoSecure {
|
|
17
|
-
/**
|
|
18
|
-
* Account Id of the account this environment is linked to
|
|
19
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
20
|
-
*/
|
|
21
|
-
readonly accountId?: string;
|
|
22
|
-
/**
|
|
23
|
-
* API Key of the user account
|
|
24
|
-
* This value contains a credential. Consider obscuring before showing to users
|
|
25
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
26
|
-
*/
|
|
27
|
-
readonly apiKey?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Region in which the account is created
|
|
30
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
31
|
-
*/
|
|
32
|
-
readonly regionId?: string;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
15
|
/**
|
|
36
16
|
* Defines values for ActionType. \
|
|
37
17
|
* {@link KnownActionType} can be used interchangeably with ActionType,
|
|
@@ -536,11 +516,11 @@ export declare interface LinkableEnvironmentListResponse {
|
|
|
536
516
|
/** Request for getting all the linkable environments for a user */
|
|
537
517
|
export declare interface LinkableEnvironmentRequest {
|
|
538
518
|
/** Tenant Id of the user in which they want to link the environment */
|
|
539
|
-
tenantId
|
|
519
|
+
tenantId: string;
|
|
540
520
|
/** user principal id of the user */
|
|
541
|
-
userPrincipal
|
|
521
|
+
userPrincipal: string;
|
|
542
522
|
/** Azure region in which we want to link the environment */
|
|
543
|
-
region
|
|
523
|
+
region: string;
|
|
544
524
|
}
|
|
545
525
|
|
|
546
526
|
/** Response for getting all the linkable environments */
|
|
@@ -589,6 +569,22 @@ export declare interface LogRules {
|
|
|
589
569
|
*/
|
|
590
570
|
export declare type ManagedIdentityType = string;
|
|
591
571
|
|
|
572
|
+
/** Request for getting Marketplace SaaS resource details for a tenant Id */
|
|
573
|
+
export declare interface MarketplaceSaaSResourceDetailsRequest {
|
|
574
|
+
/** Tenant Id */
|
|
575
|
+
tenantId: string;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/** Marketplace SaaS resource details linked to the given tenant Id */
|
|
579
|
+
export declare interface MarketplaceSaaSResourceDetailsResponse {
|
|
580
|
+
/** Id of the Marketplace SaaS Resource */
|
|
581
|
+
marketplaceSaaSResourceId?: string;
|
|
582
|
+
/** Id of the plan */
|
|
583
|
+
planId?: string;
|
|
584
|
+
/** Marketplace subscription status */
|
|
585
|
+
marketplaceSubscriptionStatus?: MarketplaceSubscriptionStatus;
|
|
586
|
+
}
|
|
587
|
+
|
|
592
588
|
/**
|
|
593
589
|
* Defines values for MarketplaceSubscriptionStatus. \
|
|
594
590
|
* {@link KnownMarketplaceSubscriptionStatus} can be used interchangeably with MarketplaceSubscriptionStatus,
|
|
@@ -601,10 +597,18 @@ export declare type MarketplaceSubscriptionStatus = string;
|
|
|
601
597
|
|
|
602
598
|
/** Set of rules for sending metrics for the Monitor resource. */
|
|
603
599
|
export declare interface MetricRules {
|
|
600
|
+
/** Flag specifying if metrics from Azure resources should be sent for the Monitor resource. */
|
|
601
|
+
sendingMetrics?: SendingMetricsStatus;
|
|
604
602
|
/** List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. */
|
|
605
603
|
filteringTags?: FilteringTag[];
|
|
606
604
|
}
|
|
607
605
|
|
|
606
|
+
/** Response of get metrics status operation */
|
|
607
|
+
export declare interface MetricsStatusResponse {
|
|
608
|
+
/** Azure resource IDs */
|
|
609
|
+
azureResourceIds?: string[];
|
|
610
|
+
}
|
|
611
|
+
|
|
608
612
|
/** Details of resource being monitored by Dynatrace monitor resource */
|
|
609
613
|
export declare interface MonitoredResource {
|
|
610
614
|
/** The ARM id of the resource. */
|
|
@@ -697,16 +701,6 @@ export declare interface MonitorResourceUpdate {
|
|
|
697
701
|
tags?: {
|
|
698
702
|
[propertyName: string]: string;
|
|
699
703
|
};
|
|
700
|
-
/** Status of the monitor. */
|
|
701
|
-
monitoringStatus?: MonitoringStatus;
|
|
702
|
-
/** Marketplace subscription status. */
|
|
703
|
-
marketplaceSubscriptionStatus?: MarketplaceSubscriptionStatus;
|
|
704
|
-
/** Properties of the Dynatrace environment. */
|
|
705
|
-
dynatraceEnvironmentProperties?: DynatraceEnvironmentProperties;
|
|
706
|
-
/** User info. */
|
|
707
|
-
userInfo?: UserInfo;
|
|
708
|
-
/** Billing plan information. */
|
|
709
|
-
planData?: PlanData;
|
|
710
704
|
}
|
|
711
705
|
|
|
712
706
|
/** Interface representing a Monitors. */
|
|
@@ -730,7 +724,7 @@ export declare interface Monitors {
|
|
|
730
724
|
*/
|
|
731
725
|
listByResourceGroup(resourceGroupName: string, options?: MonitorsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<MonitorResource>;
|
|
732
726
|
/**
|
|
733
|
-
* List the
|
|
727
|
+
* List the VM/VMSS resources currently being monitored by the Dynatrace resource.
|
|
734
728
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
735
729
|
* @param monitorName Monitor resource name
|
|
736
730
|
* @param options The options parameters.
|
|
@@ -751,13 +745,6 @@ export declare interface Monitors {
|
|
|
751
745
|
* @param options The options parameters.
|
|
752
746
|
*/
|
|
753
747
|
listLinkableEnvironments(resourceGroupName: string, monitorName: string, request: LinkableEnvironmentRequest, options?: MonitorsListLinkableEnvironmentsOptionalParams): PagedAsyncIterableIterator<LinkableEnvironmentResponse>;
|
|
754
|
-
/**
|
|
755
|
-
* Gets the user account credentials for a Monitor
|
|
756
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
757
|
-
* @param monitorName Monitor resource name
|
|
758
|
-
* @param options The options parameters.
|
|
759
|
-
*/
|
|
760
|
-
getAccountCredentials(resourceGroupName: string, monitorName: string, options?: MonitorsGetAccountCredentialsOptionalParams): Promise<MonitorsGetAccountCredentialsResponse>;
|
|
761
748
|
/**
|
|
762
749
|
* Returns the payload that needs to be passed in the request body for installing Dynatrace agent on a
|
|
763
750
|
* VM.
|
|
@@ -780,7 +767,7 @@ export declare interface Monitors {
|
|
|
780
767
|
* @param resource Resource create parameters.
|
|
781
768
|
* @param options The options parameters.
|
|
782
769
|
*/
|
|
783
|
-
beginCreateOrUpdate(resourceGroupName: string, monitorName: string, resource: MonitorResource, options?: MonitorsCreateOrUpdateOptionalParams): Promise<
|
|
770
|
+
beginCreateOrUpdate(resourceGroupName: string, monitorName: string, resource: MonitorResource, options?: MonitorsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<MonitorsCreateOrUpdateResponse>, MonitorsCreateOrUpdateResponse>>;
|
|
784
771
|
/**
|
|
785
772
|
* Create a MonitorResource
|
|
786
773
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -803,7 +790,7 @@ export declare interface Monitors {
|
|
|
803
790
|
* @param monitorName Monitor resource name
|
|
804
791
|
* @param options The options parameters.
|
|
805
792
|
*/
|
|
806
|
-
beginDelete(resourceGroupName: string, monitorName: string, options?: MonitorsDeleteOptionalParams): Promise<
|
|
793
|
+
beginDelete(resourceGroupName: string, monitorName: string, options?: MonitorsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
807
794
|
/**
|
|
808
795
|
* Delete a MonitorResource
|
|
809
796
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -811,6 +798,19 @@ export declare interface Monitors {
|
|
|
811
798
|
* @param options The options parameters.
|
|
812
799
|
*/
|
|
813
800
|
beginDeleteAndWait(resourceGroupName: string, monitorName: string, options?: MonitorsDeleteOptionalParams): Promise<void>;
|
|
801
|
+
/**
|
|
802
|
+
* Get Marketplace SaaS resource details of a tenant under a specific subscription
|
|
803
|
+
* @param request Tenant Id
|
|
804
|
+
* @param options The options parameters.
|
|
805
|
+
*/
|
|
806
|
+
getMarketplaceSaaSResourceDetails(request: MarketplaceSaaSResourceDetailsRequest, options?: MonitorsGetMarketplaceSaaSResourceDetailsOptionalParams): Promise<MonitorsGetMarketplaceSaaSResourceDetailsResponse>;
|
|
807
|
+
/**
|
|
808
|
+
* Get metric status
|
|
809
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
810
|
+
* @param monitorName Name of the Monitor resource
|
|
811
|
+
* @param options The options parameters.
|
|
812
|
+
*/
|
|
813
|
+
getMetricStatus(resourceGroupName: string, monitorName: string, options?: MonitorsGetMetricStatusOptionalParams): Promise<MonitorsGetMetricStatusResponse>;
|
|
814
814
|
/**
|
|
815
815
|
* Gets the SSO configuration details from the partner.
|
|
816
816
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -840,11 +840,18 @@ export declare interface MonitorsDeleteOptionalParams extends coreClient.Operati
|
|
|
840
840
|
}
|
|
841
841
|
|
|
842
842
|
/** Optional parameters. */
|
|
843
|
-
export declare interface
|
|
843
|
+
export declare interface MonitorsGetMarketplaceSaaSResourceDetailsOptionalParams extends coreClient.OperationOptions {
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
/** Contains response data for the getMarketplaceSaaSResourceDetails operation. */
|
|
847
|
+
export declare type MonitorsGetMarketplaceSaaSResourceDetailsResponse = MarketplaceSaaSResourceDetailsResponse;
|
|
848
|
+
|
|
849
|
+
/** Optional parameters. */
|
|
850
|
+
export declare interface MonitorsGetMetricStatusOptionalParams extends coreClient.OperationOptions {
|
|
844
851
|
}
|
|
845
852
|
|
|
846
|
-
/** Contains response data for the
|
|
847
|
-
export declare type
|
|
853
|
+
/** Contains response data for the getMetricStatus operation. */
|
|
854
|
+
export declare type MonitorsGetMetricStatusResponse = MetricsStatusResponse;
|
|
848
855
|
|
|
849
856
|
/** Optional parameters. */
|
|
850
857
|
export declare interface MonitorsGetOptionalParams extends coreClient.OperationOptions {
|
|
@@ -1177,7 +1184,7 @@ export declare interface SingleSignOn {
|
|
|
1177
1184
|
* @param resource Resource create parameters.
|
|
1178
1185
|
* @param options The options parameters.
|
|
1179
1186
|
*/
|
|
1180
|
-
beginCreateOrUpdate(resourceGroupName: string, monitorName: string, configurationName: string, resource: DynatraceSingleSignOnResource, options?: SingleSignOnCreateOrUpdateOptionalParams): Promise<
|
|
1187
|
+
beginCreateOrUpdate(resourceGroupName: string, monitorName: string, configurationName: string, resource: DynatraceSingleSignOnResource, options?: SingleSignOnCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<SingleSignOnCreateOrUpdateResponse>, SingleSignOnCreateOrUpdateResponse>>;
|
|
1181
1188
|
/**
|
|
1182
1189
|
* Create a DynatraceSingleSignOnResource
|
|
1183
1190
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -1244,7 +1251,7 @@ export declare type SingleSignOnStates = string;
|
|
|
1244
1251
|
/** Request for getting sso details for a user */
|
|
1245
1252
|
export declare interface SSODetailsRequest {
|
|
1246
1253
|
/** user principal id of the user */
|
|
1247
|
-
userPrincipal
|
|
1254
|
+
userPrincipal: string;
|
|
1248
1255
|
}
|
|
1249
1256
|
|
|
1250
1257
|
/** SSO details from the Dynatrace partner */
|
|
@@ -1348,7 +1355,7 @@ export declare interface TagRules {
|
|
|
1348
1355
|
* @param resource Resource create parameters.
|
|
1349
1356
|
* @param options The options parameters.
|
|
1350
1357
|
*/
|
|
1351
|
-
beginCreateOrUpdate(resourceGroupName: string, monitorName: string, ruleSetName: string, resource: TagRule, options?: TagRulesCreateOrUpdateOptionalParams): Promise<
|
|
1358
|
+
beginCreateOrUpdate(resourceGroupName: string, monitorName: string, ruleSetName: string, resource: TagRule, options?: TagRulesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<TagRulesCreateOrUpdateResponse>, TagRulesCreateOrUpdateResponse>>;
|
|
1352
1359
|
/**
|
|
1353
1360
|
* Create a TagRule
|
|
1354
1361
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -1358,15 +1365,6 @@ export declare interface TagRules {
|
|
|
1358
1365
|
* @param options The options parameters.
|
|
1359
1366
|
*/
|
|
1360
1367
|
beginCreateOrUpdateAndWait(resourceGroupName: string, monitorName: string, ruleSetName: string, resource: TagRule, options?: TagRulesCreateOrUpdateOptionalParams): Promise<TagRulesCreateOrUpdateResponse>;
|
|
1361
|
-
/**
|
|
1362
|
-
* Update a TagRule
|
|
1363
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1364
|
-
* @param monitorName Monitor resource name
|
|
1365
|
-
* @param ruleSetName Monitor resource name
|
|
1366
|
-
* @param resource The resource properties to be updated.
|
|
1367
|
-
* @param options The options parameters.
|
|
1368
|
-
*/
|
|
1369
|
-
update(resourceGroupName: string, monitorName: string, ruleSetName: string, resource: TagRuleUpdate, options?: TagRulesUpdateOptionalParams): Promise<TagRulesUpdateResponse>;
|
|
1370
1368
|
/**
|
|
1371
1369
|
* Delete a TagRule
|
|
1372
1370
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -1374,7 +1372,7 @@ export declare interface TagRules {
|
|
|
1374
1372
|
* @param ruleSetName Monitor resource name
|
|
1375
1373
|
* @param options The options parameters.
|
|
1376
1374
|
*/
|
|
1377
|
-
beginDelete(resourceGroupName: string, monitorName: string, ruleSetName: string, options?: TagRulesDeleteOptionalParams): Promise<
|
|
1375
|
+
beginDelete(resourceGroupName: string, monitorName: string, ruleSetName: string, options?: TagRulesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
1378
1376
|
/**
|
|
1379
1377
|
* Delete a TagRule
|
|
1380
1378
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -1425,21 +1423,6 @@ export declare interface TagRulesListOptionalParams extends coreClient.Operation
|
|
|
1425
1423
|
/** Contains response data for the list operation. */
|
|
1426
1424
|
export declare type TagRulesListResponse = TagRuleListResult;
|
|
1427
1425
|
|
|
1428
|
-
/** Optional parameters. */
|
|
1429
|
-
export declare interface TagRulesUpdateOptionalParams extends coreClient.OperationOptions {
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
/** Contains response data for the update operation. */
|
|
1433
|
-
export declare type TagRulesUpdateResponse = TagRule;
|
|
1434
|
-
|
|
1435
|
-
/** The updatable properties of the TagRule. */
|
|
1436
|
-
export declare interface TagRuleUpdate {
|
|
1437
|
-
/** Set of rules for sending logs for the Monitor resource. */
|
|
1438
|
-
logRules?: LogRules;
|
|
1439
|
-
/** Set of rules for sending metrics for the Monitor resource. */
|
|
1440
|
-
metricRules?: MetricRules;
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
1426
|
/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
|
|
1444
1427
|
export declare interface TrackedResource extends Resource {
|
|
1445
1428
|
/** Resource tags. */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"monitorsGetAccountCredentialsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/monitorsGetAccountCredentialsSample.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"monitorsGetAccountCredentialsSample.js","sourceRoot":"","sources":["../../samples-dev/monitorsGetAccountCredentialsSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,0CAA0C;;QACvD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC;YACxC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,IAAI,iBAAiB,CAAC;QAC/D,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CACxD,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,0CAA0C;;QACvD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC;YACxC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,IAAI,iBAAiB,CAAC;QAC/D,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CACxD,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,0CAA0C,EAAE,CAAC;QAC7C,0CAA0C,EAAE,CAAC;IAC/C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tagRulesUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/tagRulesUpdateSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
import { DynatraceObservability } from "@azure/arm-dynatrace";
|
|
12
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
-
import * as dotenv from "dotenv";
|
|
14
|
-
dotenv.config();
|
|
15
|
-
/**
|
|
16
|
-
* This sample demonstrates how to Update a TagRule
|
|
17
|
-
*
|
|
18
|
-
* @summary Update a TagRule
|
|
19
|
-
* x-ms-original-file: specification/dynatrace/resource-manager/Dynatrace.Observability/stable/2021-09-01/examples/TagRules_Update_MaximumSet_Gen.json
|
|
20
|
-
*/
|
|
21
|
-
function tagRulesUpdateMaximumSetGen() {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const subscriptionId = process.env["DYNATRACE_SUBSCRIPTION_ID"] ||
|
|
24
|
-
"00000000-0000-0000-0000-000000000000";
|
|
25
|
-
const resourceGroupName = process.env["DYNATRACE_RESOURCE_GROUP"] || "myResourceGroup";
|
|
26
|
-
const monitorName = "myMonitor";
|
|
27
|
-
const ruleSetName = "default";
|
|
28
|
-
const resource = {
|
|
29
|
-
logRules: {
|
|
30
|
-
filteringTags: [
|
|
31
|
-
{ name: "Environment", action: "Include", value: "Prod" },
|
|
32
|
-
{ name: "Environment", action: "Exclude", value: "Dev" }
|
|
33
|
-
],
|
|
34
|
-
sendAadLogs: "Enabled",
|
|
35
|
-
sendActivityLogs: "Enabled",
|
|
36
|
-
sendSubscriptionLogs: "Enabled"
|
|
37
|
-
},
|
|
38
|
-
metricRules: {
|
|
39
|
-
filteringTags: [{ name: "Environment", action: "Include", value: "Prod" }]
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
const credential = new DefaultAzureCredential();
|
|
43
|
-
const client = new DynatraceObservability(credential, subscriptionId);
|
|
44
|
-
const result = yield client.tagRules.update(resourceGroupName, monitorName, ruleSetName, resource);
|
|
45
|
-
console.log(result);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* This sample demonstrates how to Update a TagRule
|
|
50
|
-
*
|
|
51
|
-
* @summary Update a TagRule
|
|
52
|
-
* x-ms-original-file: specification/dynatrace/resource-manager/Dynatrace.Observability/stable/2021-09-01/examples/TagRules_Update_MinimumSet_Gen.json
|
|
53
|
-
*/
|
|
54
|
-
function tagRulesUpdateMinimumSetGen() {
|
|
55
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
const subscriptionId = process.env["DYNATRACE_SUBSCRIPTION_ID"] ||
|
|
57
|
-
"00000000-0000-0000-0000-000000000000";
|
|
58
|
-
const resourceGroupName = process.env["DYNATRACE_RESOURCE_GROUP"] || "myResourceGroup";
|
|
59
|
-
const monitorName = "myMonitor";
|
|
60
|
-
const ruleSetName = "default";
|
|
61
|
-
const resource = {};
|
|
62
|
-
const credential = new DefaultAzureCredential();
|
|
63
|
-
const client = new DynatraceObservability(credential, subscriptionId);
|
|
64
|
-
const result = yield client.tagRules.update(resourceGroupName, monitorName, ruleSetName, resource);
|
|
65
|
-
console.log(result);
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function main() {
|
|
69
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
-
tagRulesUpdateMaximumSetGen();
|
|
71
|
-
tagRulesUpdateMinimumSetGen();
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
main().catch(console.error);
|
|
75
|
-
//# sourceMappingURL=tagRulesUpdateSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tagRulesUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/tagRulesUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAiB,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,2BAA2B;;QACxC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC;YACxC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,IAAI,iBAAiB,CAAC;QAC/D,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,QAAQ,GAAkB;YAC9B,QAAQ,EAAE;gBACR,aAAa,EAAE;oBACb,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE;oBACzD,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE;iBACzD;gBACD,WAAW,EAAE,SAAS;gBACtB,gBAAgB,EAAE,SAAS;gBAC3B,oBAAoB,EAAE,SAAS;aAChC;YACD,WAAW,EAAE;gBACX,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;aAC3E;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CACzC,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,2BAA2B;;QACxC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC;YACxC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,IAAI,iBAAiB,CAAC;QAC/D,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,QAAQ,GAAkB,EAAE,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CACzC,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,2BAA2B,EAAE,CAAC;QAC9B,2BAA2B,EAAE,CAAC;IAChC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|