@volcengine/pulumi 0.0.40 → 0.0.41
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/package.json +1 -1
- package/types/input.d.ts +48 -0
- package/types/output.d.ts +312 -0
- package/vmp/alertSamples.d.ts +104 -0
- package/vmp/alertSamples.js +57 -0
- package/vmp/alertSamples.js.map +1 -0
- package/vmp/alertingRuleEnableDisable.d.ts +66 -0
- package/vmp/alertingRuleEnableDisable.js +70 -0
- package/vmp/alertingRuleEnableDisable.js.map +1 -0
- package/vmp/contact.d.ts +5 -1
- package/vmp/contact.js +1 -1
- package/vmp/contact.js.map +1 -1
- package/vmp/contacts.d.ts +18 -0
- package/vmp/contacts.js +2 -0
- package/vmp/contacts.js.map +1 -1
- package/vmp/getAlertSamples.d.ts +102 -0
- package/vmp/getAlertSamples.js +54 -0
- package/vmp/getAlertSamples.js.map +1 -0
- package/vmp/getContacts.d.ts +18 -0
- package/vmp/getContacts.js +2 -0
- package/vmp/getContacts.js.map +1 -1
- package/vmp/getIntegrationTasks.d.ts +119 -0
- package/vmp/getIntegrationTasks.js +51 -0
- package/vmp/getIntegrationTasks.js.map +1 -0
- package/vmp/getSilencePolicies.d.ts +110 -0
- package/vmp/getSilencePolicies.js +52 -0
- package/vmp/getSilencePolicies.js.map +1 -0
- package/vmp/index.d.ts +33 -0
- package/vmp/index.js +45 -2
- package/vmp/index.js.map +1 -1
- package/vmp/integrationTask.d.ts +142 -0
- package/vmp/integrationTask.js +78 -0
- package/vmp/integrationTask.js.map +1 -0
- package/vmp/integrationTaskEnable.d.ts +71 -0
- package/vmp/integrationTaskEnable.js +75 -0
- package/vmp/integrationTaskEnable.js.map +1 -0
- package/vmp/integrationTasks.d.ts +121 -0
- package/vmp/integrationTasks.js +54 -0
- package/vmp/integrationTasks.js.map +1 -0
- package/vmp/silencePolicies.d.ts +112 -0
- package/vmp/silencePolicies.js +55 -0
- package/vmp/silencePolicies.js.map +1 -0
- package/vmp/silencePolicy.d.ts +168 -0
- package/vmp/silencePolicy.js +113 -0
- package/vmp/silencePolicy.js.map +1 -0
- package/vmp/silencePolicyEnableDisable.d.ts +66 -0
- package/vmp/silencePolicyEnableDisable.js +70 -0
- package/vmp/silencePolicyEnableDisable.js.map +1 -0
package/package.json
CHANGED
package/types/input.d.ts
CHANGED
|
@@ -9841,6 +9841,54 @@ export declare namespace vmp {
|
|
|
9841
9841
|
*/
|
|
9842
9842
|
title: pulumi.Input<string>;
|
|
9843
9843
|
}
|
|
9844
|
+
interface SilencePolicyMetricLabelMatcher {
|
|
9845
|
+
/**
|
|
9846
|
+
* Label matcher. Among them, each LabelMatcher array can contain a maximum of 24 items.
|
|
9847
|
+
*/
|
|
9848
|
+
matchers: pulumi.Input<pulumi.Input<inputs.vmp.SilencePolicyMetricLabelMatcherMatcher>[]>;
|
|
9849
|
+
}
|
|
9850
|
+
interface SilencePolicyMetricLabelMatcherMatcher {
|
|
9851
|
+
/**
|
|
9852
|
+
* Label.
|
|
9853
|
+
*/
|
|
9854
|
+
label: pulumi.Input<string>;
|
|
9855
|
+
/**
|
|
9856
|
+
* Operator. The optional values are as follows: Equal, NotEqual, RegexpEqual, RegexpNotEqual.
|
|
9857
|
+
*/
|
|
9858
|
+
operator?: pulumi.Input<string>;
|
|
9859
|
+
/**
|
|
9860
|
+
* Label value.
|
|
9861
|
+
*/
|
|
9862
|
+
value: pulumi.Input<string>;
|
|
9863
|
+
}
|
|
9864
|
+
interface SilencePolicyTimeRangeMatcher {
|
|
9865
|
+
/**
|
|
9866
|
+
* Silence time range, like 2025-01-02 15:04~2025-01-03 14:04.
|
|
9867
|
+
*/
|
|
9868
|
+
date?: pulumi.Input<string>;
|
|
9869
|
+
/**
|
|
9870
|
+
* Timezone, e.g. Asia/Shanghai.
|
|
9871
|
+
*/
|
|
9872
|
+
location: pulumi.Input<string>;
|
|
9873
|
+
/**
|
|
9874
|
+
* The cycle of alarm silence. It is used to configure alarm silence that takes effect periodically.
|
|
9875
|
+
*/
|
|
9876
|
+
periodicDate?: pulumi.Input<inputs.vmp.SilencePolicyTimeRangeMatcherPeriodicDate>;
|
|
9877
|
+
}
|
|
9878
|
+
interface SilencePolicyTimeRangeMatcherPeriodicDate {
|
|
9879
|
+
/**
|
|
9880
|
+
* Days of month, e.g. 2~3. A maximum of 10 time periods can be configured.
|
|
9881
|
+
*/
|
|
9882
|
+
dayOfMonth?: pulumi.Input<string>;
|
|
9883
|
+
/**
|
|
9884
|
+
* Time periods, e.g. 20:00~21:12,22:00~23:12. A maximum of 4 time periods can be configured.
|
|
9885
|
+
*/
|
|
9886
|
+
time?: pulumi.Input<string>;
|
|
9887
|
+
/**
|
|
9888
|
+
* Weekdays, e.g. 1,3,5. A maximum of 7 time periods can be configured.
|
|
9889
|
+
*/
|
|
9890
|
+
weekday?: pulumi.Input<string>;
|
|
9891
|
+
}
|
|
9844
9892
|
interface WorkspaceTag {
|
|
9845
9893
|
/**
|
|
9846
9894
|
* The Key of Tags.
|
package/types/output.d.ts
CHANGED
|
@@ -56650,6 +56650,28 @@ export declare namespace vke {
|
|
|
56650
56650
|
}
|
|
56651
56651
|
}
|
|
56652
56652
|
export declare namespace vmp {
|
|
56653
|
+
interface AlertSamplesAlertSample {
|
|
56654
|
+
/**
|
|
56655
|
+
* Alert ID to filter samples.
|
|
56656
|
+
*/
|
|
56657
|
+
alertId: string;
|
|
56658
|
+
/**
|
|
56659
|
+
* Alert sample level.
|
|
56660
|
+
*/
|
|
56661
|
+
level: string;
|
|
56662
|
+
/**
|
|
56663
|
+
* Alert sample phase.
|
|
56664
|
+
*/
|
|
56665
|
+
phase: string;
|
|
56666
|
+
/**
|
|
56667
|
+
* Alert sample timestamp(unix).
|
|
56668
|
+
*/
|
|
56669
|
+
timestamp: number;
|
|
56670
|
+
/**
|
|
56671
|
+
* Alert sample value.
|
|
56672
|
+
*/
|
|
56673
|
+
value: number;
|
|
56674
|
+
}
|
|
56653
56675
|
interface AlertingRuleAnnotation {
|
|
56654
56676
|
/**
|
|
56655
56677
|
* The name of the annotation.
|
|
@@ -57074,6 +57096,28 @@ export declare namespace vmp {
|
|
|
57074
57096
|
*/
|
|
57075
57097
|
token: string;
|
|
57076
57098
|
}
|
|
57099
|
+
interface GetAlertSamplesAlertSample {
|
|
57100
|
+
/**
|
|
57101
|
+
* Alert ID to filter samples.
|
|
57102
|
+
*/
|
|
57103
|
+
alertId: string;
|
|
57104
|
+
/**
|
|
57105
|
+
* Alert sample level.
|
|
57106
|
+
*/
|
|
57107
|
+
level: string;
|
|
57108
|
+
/**
|
|
57109
|
+
* Alert sample phase.
|
|
57110
|
+
*/
|
|
57111
|
+
phase: string;
|
|
57112
|
+
/**
|
|
57113
|
+
* Alert sample timestamp(unix).
|
|
57114
|
+
*/
|
|
57115
|
+
timestamp: number;
|
|
57116
|
+
/**
|
|
57117
|
+
* Alert sample value.
|
|
57118
|
+
*/
|
|
57119
|
+
value: number;
|
|
57120
|
+
}
|
|
57077
57121
|
interface GetAlertingRulesAlertingRule {
|
|
57078
57122
|
/**
|
|
57079
57123
|
* The annotations of the vmp alerting rule.
|
|
@@ -57438,6 +57482,50 @@ export declare namespace vmp {
|
|
|
57438
57482
|
*/
|
|
57439
57483
|
scanSeriesPerSecond: number;
|
|
57440
57484
|
}
|
|
57485
|
+
interface GetIntegrationTasksIntegrationTask {
|
|
57486
|
+
/**
|
|
57487
|
+
* The deployment environment. Valid values: `Vke` or `Managed`.
|
|
57488
|
+
*/
|
|
57489
|
+
environment: string;
|
|
57490
|
+
/**
|
|
57491
|
+
* The ID of the integration task.
|
|
57492
|
+
*/
|
|
57493
|
+
id: string;
|
|
57494
|
+
/**
|
|
57495
|
+
* The name of the integration task.
|
|
57496
|
+
*/
|
|
57497
|
+
name: string;
|
|
57498
|
+
/**
|
|
57499
|
+
* The status of the VKE cluster.
|
|
57500
|
+
*/
|
|
57501
|
+
status: string;
|
|
57502
|
+
/**
|
|
57503
|
+
* The type of the integration task.
|
|
57504
|
+
*/
|
|
57505
|
+
type: string;
|
|
57506
|
+
/**
|
|
57507
|
+
* The ID of the VKE cluster.
|
|
57508
|
+
*/
|
|
57509
|
+
vkeClusterIds: string[];
|
|
57510
|
+
/**
|
|
57511
|
+
* The information of the VKE cluster.
|
|
57512
|
+
*/
|
|
57513
|
+
vkeClusterInfos: outputs.vmp.GetIntegrationTasksIntegrationTaskVkeClusterInfo[];
|
|
57514
|
+
/**
|
|
57515
|
+
* The workspace ID.
|
|
57516
|
+
*/
|
|
57517
|
+
workspaceId: string;
|
|
57518
|
+
}
|
|
57519
|
+
interface GetIntegrationTasksIntegrationTaskVkeClusterInfo {
|
|
57520
|
+
/**
|
|
57521
|
+
* The name of the integration task.
|
|
57522
|
+
*/
|
|
57523
|
+
name: string;
|
|
57524
|
+
/**
|
|
57525
|
+
* The status of the VKE cluster.
|
|
57526
|
+
*/
|
|
57527
|
+
status: string;
|
|
57528
|
+
}
|
|
57441
57529
|
interface GetNotifyGroupPoliciesNotifyPolicy {
|
|
57442
57530
|
/**
|
|
57443
57531
|
* The create time of notify group policy.
|
|
@@ -57662,6 +57750,72 @@ export declare namespace vmp {
|
|
|
57662
57750
|
*/
|
|
57663
57751
|
value: string;
|
|
57664
57752
|
}
|
|
57753
|
+
interface GetSilencePoliciesSilencePolicy {
|
|
57754
|
+
/**
|
|
57755
|
+
* The auto delete time of the silence policy.
|
|
57756
|
+
*/
|
|
57757
|
+
autoDeleteTime: string;
|
|
57758
|
+
/**
|
|
57759
|
+
* The create time of the silence policy, in RFC3339 format.
|
|
57760
|
+
*/
|
|
57761
|
+
createTime: string;
|
|
57762
|
+
/**
|
|
57763
|
+
* The description of the silence policy.
|
|
57764
|
+
*/
|
|
57765
|
+
description: string;
|
|
57766
|
+
/**
|
|
57767
|
+
* The id of the silence policy.
|
|
57768
|
+
*/
|
|
57769
|
+
id: string;
|
|
57770
|
+
/**
|
|
57771
|
+
* The name of silence policy.
|
|
57772
|
+
*/
|
|
57773
|
+
name: string;
|
|
57774
|
+
/**
|
|
57775
|
+
* The source of the silence policy.
|
|
57776
|
+
*/
|
|
57777
|
+
source: string;
|
|
57778
|
+
/**
|
|
57779
|
+
* The status of silence policy: Active/Disabled/Expired.
|
|
57780
|
+
*/
|
|
57781
|
+
status: string;
|
|
57782
|
+
/**
|
|
57783
|
+
* The matching time in the alert silence policy.
|
|
57784
|
+
*/
|
|
57785
|
+
timeRangeMatchers: outputs.vmp.GetSilencePoliciesSilencePolicyTimeRangeMatcher[];
|
|
57786
|
+
/**
|
|
57787
|
+
* The update time of the silence policy, in RFC3339 format.
|
|
57788
|
+
*/
|
|
57789
|
+
updateTime: string;
|
|
57790
|
+
}
|
|
57791
|
+
interface GetSilencePoliciesSilencePolicyTimeRangeMatcher {
|
|
57792
|
+
/**
|
|
57793
|
+
* The time period for alarm silence.
|
|
57794
|
+
*/
|
|
57795
|
+
date: string;
|
|
57796
|
+
/**
|
|
57797
|
+
* Time zone.
|
|
57798
|
+
*/
|
|
57799
|
+
location: string;
|
|
57800
|
+
/**
|
|
57801
|
+
* The cycle of alarm silence.
|
|
57802
|
+
*/
|
|
57803
|
+
periodicDates: outputs.vmp.GetSilencePoliciesSilencePolicyTimeRangeMatcherPeriodicDate[];
|
|
57804
|
+
}
|
|
57805
|
+
interface GetSilencePoliciesSilencePolicyTimeRangeMatcherPeriodicDate {
|
|
57806
|
+
/**
|
|
57807
|
+
* Days of the month, e.g. 1,15,30.
|
|
57808
|
+
*/
|
|
57809
|
+
dayOfMonth: string;
|
|
57810
|
+
/**
|
|
57811
|
+
* Time periods, e.g. 20:00~21:12,22:00~23:12.
|
|
57812
|
+
*/
|
|
57813
|
+
time: string;
|
|
57814
|
+
/**
|
|
57815
|
+
* Weekdays, e.g. 1,3,5.
|
|
57816
|
+
*/
|
|
57817
|
+
weekday: string;
|
|
57818
|
+
}
|
|
57665
57819
|
interface GetWorkspacesTag {
|
|
57666
57820
|
/**
|
|
57667
57821
|
* The Key of Tags.
|
|
@@ -57786,6 +57940,50 @@ export declare namespace vmp {
|
|
|
57786
57940
|
*/
|
|
57787
57941
|
scanSeriesPerSecond: number;
|
|
57788
57942
|
}
|
|
57943
|
+
interface IntegrationTasksIntegrationTask {
|
|
57944
|
+
/**
|
|
57945
|
+
* The deployment environment. Valid values: `Vke` or `Managed`.
|
|
57946
|
+
*/
|
|
57947
|
+
environment: string;
|
|
57948
|
+
/**
|
|
57949
|
+
* The ID of the integration task.
|
|
57950
|
+
*/
|
|
57951
|
+
id: string;
|
|
57952
|
+
/**
|
|
57953
|
+
* The name of the integration task.
|
|
57954
|
+
*/
|
|
57955
|
+
name: string;
|
|
57956
|
+
/**
|
|
57957
|
+
* The status of the VKE cluster.
|
|
57958
|
+
*/
|
|
57959
|
+
status: string;
|
|
57960
|
+
/**
|
|
57961
|
+
* The type of the integration task.
|
|
57962
|
+
*/
|
|
57963
|
+
type: string;
|
|
57964
|
+
/**
|
|
57965
|
+
* The ID of the VKE cluster.
|
|
57966
|
+
*/
|
|
57967
|
+
vkeClusterIds: string[];
|
|
57968
|
+
/**
|
|
57969
|
+
* The information of the VKE cluster.
|
|
57970
|
+
*/
|
|
57971
|
+
vkeClusterInfos: outputs.vmp.IntegrationTasksIntegrationTaskVkeClusterInfo[];
|
|
57972
|
+
/**
|
|
57973
|
+
* The workspace ID.
|
|
57974
|
+
*/
|
|
57975
|
+
workspaceId: string;
|
|
57976
|
+
}
|
|
57977
|
+
interface IntegrationTasksIntegrationTaskVkeClusterInfo {
|
|
57978
|
+
/**
|
|
57979
|
+
* The name of the integration task.
|
|
57980
|
+
*/
|
|
57981
|
+
name: string;
|
|
57982
|
+
/**
|
|
57983
|
+
* The status of the VKE cluster.
|
|
57984
|
+
*/
|
|
57985
|
+
status: string;
|
|
57986
|
+
}
|
|
57789
57987
|
interface NotifyGroupPoliciesNotifyPolicy {
|
|
57790
57988
|
/**
|
|
57791
57989
|
* The create time of notify group policy.
|
|
@@ -58070,6 +58268,120 @@ export declare namespace vmp {
|
|
|
58070
58268
|
*/
|
|
58071
58269
|
value: string;
|
|
58072
58270
|
}
|
|
58271
|
+
interface SilencePoliciesSilencePolicy {
|
|
58272
|
+
/**
|
|
58273
|
+
* The auto delete time of the silence policy.
|
|
58274
|
+
*/
|
|
58275
|
+
autoDeleteTime: string;
|
|
58276
|
+
/**
|
|
58277
|
+
* The create time of the silence policy, in RFC3339 format.
|
|
58278
|
+
*/
|
|
58279
|
+
createTime: string;
|
|
58280
|
+
/**
|
|
58281
|
+
* The description of the silence policy.
|
|
58282
|
+
*/
|
|
58283
|
+
description: string;
|
|
58284
|
+
/**
|
|
58285
|
+
* The id of the silence policy.
|
|
58286
|
+
*/
|
|
58287
|
+
id: string;
|
|
58288
|
+
/**
|
|
58289
|
+
* The name of silence policy.
|
|
58290
|
+
*/
|
|
58291
|
+
name: string;
|
|
58292
|
+
/**
|
|
58293
|
+
* The source of the silence policy.
|
|
58294
|
+
*/
|
|
58295
|
+
source: string;
|
|
58296
|
+
/**
|
|
58297
|
+
* The status of silence policy: Active/Disabled/Expired.
|
|
58298
|
+
*/
|
|
58299
|
+
status: string;
|
|
58300
|
+
/**
|
|
58301
|
+
* The matching time in the alert silence policy.
|
|
58302
|
+
*/
|
|
58303
|
+
timeRangeMatchers: outputs.vmp.SilencePoliciesSilencePolicyTimeRangeMatcher[];
|
|
58304
|
+
/**
|
|
58305
|
+
* The update time of the silence policy, in RFC3339 format.
|
|
58306
|
+
*/
|
|
58307
|
+
updateTime: string;
|
|
58308
|
+
}
|
|
58309
|
+
interface SilencePoliciesSilencePolicyTimeRangeMatcher {
|
|
58310
|
+
/**
|
|
58311
|
+
* The time period for alarm silence.
|
|
58312
|
+
*/
|
|
58313
|
+
date: string;
|
|
58314
|
+
/**
|
|
58315
|
+
* Time zone.
|
|
58316
|
+
*/
|
|
58317
|
+
location: string;
|
|
58318
|
+
/**
|
|
58319
|
+
* The cycle of alarm silence.
|
|
58320
|
+
*/
|
|
58321
|
+
periodicDates: outputs.vmp.SilencePoliciesSilencePolicyTimeRangeMatcherPeriodicDate[];
|
|
58322
|
+
}
|
|
58323
|
+
interface SilencePoliciesSilencePolicyTimeRangeMatcherPeriodicDate {
|
|
58324
|
+
/**
|
|
58325
|
+
* Days of the month, e.g. 1,15,30.
|
|
58326
|
+
*/
|
|
58327
|
+
dayOfMonth: string;
|
|
58328
|
+
/**
|
|
58329
|
+
* Time periods, e.g. 20:00~21:12,22:00~23:12.
|
|
58330
|
+
*/
|
|
58331
|
+
time: string;
|
|
58332
|
+
/**
|
|
58333
|
+
* Weekdays, e.g. 1,3,5.
|
|
58334
|
+
*/
|
|
58335
|
+
weekday: string;
|
|
58336
|
+
}
|
|
58337
|
+
interface SilencePolicyMetricLabelMatcher {
|
|
58338
|
+
/**
|
|
58339
|
+
* Label matcher. Among them, each LabelMatcher array can contain a maximum of 24 items.
|
|
58340
|
+
*/
|
|
58341
|
+
matchers: outputs.vmp.SilencePolicyMetricLabelMatcherMatcher[];
|
|
58342
|
+
}
|
|
58343
|
+
interface SilencePolicyMetricLabelMatcherMatcher {
|
|
58344
|
+
/**
|
|
58345
|
+
* Label.
|
|
58346
|
+
*/
|
|
58347
|
+
label: string;
|
|
58348
|
+
/**
|
|
58349
|
+
* Operator. The optional values are as follows: Equal, NotEqual, RegexpEqual, RegexpNotEqual.
|
|
58350
|
+
*/
|
|
58351
|
+
operator?: string;
|
|
58352
|
+
/**
|
|
58353
|
+
* Label value.
|
|
58354
|
+
*/
|
|
58355
|
+
value: string;
|
|
58356
|
+
}
|
|
58357
|
+
interface SilencePolicyTimeRangeMatcher {
|
|
58358
|
+
/**
|
|
58359
|
+
* Silence time range, like 2025-01-02 15:04~2025-01-03 14:04.
|
|
58360
|
+
*/
|
|
58361
|
+
date?: string;
|
|
58362
|
+
/**
|
|
58363
|
+
* Timezone, e.g. Asia/Shanghai.
|
|
58364
|
+
*/
|
|
58365
|
+
location: string;
|
|
58366
|
+
/**
|
|
58367
|
+
* The cycle of alarm silence. It is used to configure alarm silence that takes effect periodically.
|
|
58368
|
+
*/
|
|
58369
|
+
periodicDate?: outputs.vmp.SilencePolicyTimeRangeMatcherPeriodicDate;
|
|
58370
|
+
}
|
|
58371
|
+
interface SilencePolicyTimeRangeMatcherPeriodicDate {
|
|
58372
|
+
/**
|
|
58373
|
+
* Days of month, e.g. 2~3. A maximum of 10 time periods can be configured.
|
|
58374
|
+
*/
|
|
58375
|
+
dayOfMonth?: string;
|
|
58376
|
+
/**
|
|
58377
|
+
* Time periods, e.g. 20:00~21:12,22:00~23:12. A maximum of 4 time periods can be configured.
|
|
58378
|
+
*/
|
|
58379
|
+
time?: string;
|
|
58380
|
+
/**
|
|
58381
|
+
* Weekdays, e.g. 1,3,5. A maximum of 7 time periods can be configured.
|
|
58382
|
+
*/
|
|
58383
|
+
weekday?: string;
|
|
58384
|
+
}
|
|
58073
58385
|
interface WorkspaceTag {
|
|
58074
58386
|
/**
|
|
58075
58387
|
* The Key of Tags.
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Use this data source to query detailed information of vmp alert samples
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
10
|
+
*
|
|
11
|
+
* const example = volcengine.vmp.getAlertSamples({
|
|
12
|
+
* alertId: "695257b0d00908b4e7511fe4",
|
|
13
|
+
* limit: 100,
|
|
14
|
+
* sampleSince: 1766851200,
|
|
15
|
+
* sampleUntil: 1767006860,
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
/** @deprecated volcengine.vmp.AlertSamples has been deprecated in favor of volcengine.vmp.getAlertSamples */
|
|
20
|
+
export declare function alertSamples(args: AlertSamplesArgs, opts?: pulumi.InvokeOptions): Promise<AlertSamplesResult>;
|
|
21
|
+
/**
|
|
22
|
+
* A collection of arguments for invoking AlertSamples.
|
|
23
|
+
*/
|
|
24
|
+
export interface AlertSamplesArgs {
|
|
25
|
+
/**
|
|
26
|
+
* Alert ID to filter samples.
|
|
27
|
+
*/
|
|
28
|
+
alertId: string;
|
|
29
|
+
/**
|
|
30
|
+
* Limit of samples, default 100, max 500.
|
|
31
|
+
*/
|
|
32
|
+
limit?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Filter start timestamp (unix).
|
|
35
|
+
*/
|
|
36
|
+
sampleSince?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Filter end timestamp (unix).
|
|
39
|
+
*/
|
|
40
|
+
sampleUntil?: number;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A collection of values returned by AlertSamples.
|
|
44
|
+
*/
|
|
45
|
+
export interface AlertSamplesResult {
|
|
46
|
+
/**
|
|
47
|
+
* Alert ID.
|
|
48
|
+
*/
|
|
49
|
+
readonly alertId: string;
|
|
50
|
+
/**
|
|
51
|
+
* Alert samples collection.
|
|
52
|
+
*/
|
|
53
|
+
readonly alertSamples: outputs.vmp.AlertSamplesAlertSample[];
|
|
54
|
+
/**
|
|
55
|
+
* The provider-assigned unique ID for this managed resource.
|
|
56
|
+
*/
|
|
57
|
+
readonly id: string;
|
|
58
|
+
readonly limit?: number;
|
|
59
|
+
readonly sampleSince?: number;
|
|
60
|
+
readonly sampleUntil?: number;
|
|
61
|
+
/**
|
|
62
|
+
* The total count of query.
|
|
63
|
+
*/
|
|
64
|
+
readonly totalCount: number;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Use this data source to query detailed information of vmp alert samples
|
|
68
|
+
* ## Example Usage
|
|
69
|
+
*
|
|
70
|
+
* ```typescript
|
|
71
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
72
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
73
|
+
*
|
|
74
|
+
* const example = volcengine.vmp.getAlertSamples({
|
|
75
|
+
* alertId: "695257b0d00908b4e7511fe4",
|
|
76
|
+
* limit: 100,
|
|
77
|
+
* sampleSince: 1766851200,
|
|
78
|
+
* sampleUntil: 1767006860,
|
|
79
|
+
* });
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
/** @deprecated volcengine.vmp.AlertSamples has been deprecated in favor of volcengine.vmp.getAlertSamples */
|
|
83
|
+
export declare function alertSamplesOutput(args: AlertSamplesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<AlertSamplesResult>;
|
|
84
|
+
/**
|
|
85
|
+
* A collection of arguments for invoking AlertSamples.
|
|
86
|
+
*/
|
|
87
|
+
export interface AlertSamplesOutputArgs {
|
|
88
|
+
/**
|
|
89
|
+
* Alert ID to filter samples.
|
|
90
|
+
*/
|
|
91
|
+
alertId: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Limit of samples, default 100, max 500.
|
|
94
|
+
*/
|
|
95
|
+
limit?: pulumi.Input<number>;
|
|
96
|
+
/**
|
|
97
|
+
* Filter start timestamp (unix).
|
|
98
|
+
*/
|
|
99
|
+
sampleSince?: pulumi.Input<number>;
|
|
100
|
+
/**
|
|
101
|
+
* Filter end timestamp (unix).
|
|
102
|
+
*/
|
|
103
|
+
sampleUntil?: pulumi.Input<number>;
|
|
104
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.alertSamplesOutput = exports.alertSamples = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to query detailed information of vmp alert samples
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
15
|
+
*
|
|
16
|
+
* const example = volcengine.vmp.getAlertSamples({
|
|
17
|
+
* alertId: "695257b0d00908b4e7511fe4",
|
|
18
|
+
* limit: 100,
|
|
19
|
+
* sampleSince: 1766851200,
|
|
20
|
+
* sampleUntil: 1767006860,
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
/** @deprecated volcengine.vmp.AlertSamples has been deprecated in favor of volcengine.vmp.getAlertSamples */
|
|
25
|
+
function alertSamples(args, opts) {
|
|
26
|
+
pulumi.log.warn("alertSamples is deprecated: volcengine.vmp.AlertSamples has been deprecated in favor of volcengine.vmp.getAlertSamples");
|
|
27
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
28
|
+
return pulumi.runtime.invoke("volcengine:vmp/alertSamples:AlertSamples", {
|
|
29
|
+
"alertId": args.alertId,
|
|
30
|
+
"limit": args.limit,
|
|
31
|
+
"sampleSince": args.sampleSince,
|
|
32
|
+
"sampleUntil": args.sampleUntil,
|
|
33
|
+
}, opts);
|
|
34
|
+
}
|
|
35
|
+
exports.alertSamples = alertSamples;
|
|
36
|
+
/**
|
|
37
|
+
* Use this data source to query detailed information of vmp alert samples
|
|
38
|
+
* ## Example Usage
|
|
39
|
+
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
42
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
43
|
+
*
|
|
44
|
+
* const example = volcengine.vmp.getAlertSamples({
|
|
45
|
+
* alertId: "695257b0d00908b4e7511fe4",
|
|
46
|
+
* limit: 100,
|
|
47
|
+
* sampleSince: 1766851200,
|
|
48
|
+
* sampleUntil: 1767006860,
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
/** @deprecated volcengine.vmp.AlertSamples has been deprecated in favor of volcengine.vmp.getAlertSamples */
|
|
53
|
+
function alertSamplesOutput(args, opts) {
|
|
54
|
+
return pulumi.output(args).apply((a) => alertSamples(a, opts));
|
|
55
|
+
}
|
|
56
|
+
exports.alertSamplesOutput = alertSamplesOutput;
|
|
57
|
+
//# sourceMappingURL=alertSamples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alertSamples.js","sourceRoot":"","sources":["../../vmp/alertSamples.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,6GAA6G;AAC7G,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,wHAAwH,CAAC,CAAA;IAEzI,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,oCAUC;AAgDD;;;;;;;;;;;;;;;GAeG;AACH,6GAA6G;AAC7G,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,gDAEC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a resource to manage vmp alerting rule enable disable
|
|
4
|
+
* ## Example Usage
|
|
5
|
+
*
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
8
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
9
|
+
*
|
|
10
|
+
* const example = new volcengine.vmp.AlertingRuleEnableDisable("example", {ids: [
|
|
11
|
+
* "b9b6407d-f602-4f2e-b2e8-3b21286b7efa",
|
|
12
|
+
* "1cb9a731-d182-4ccc-b374-d4a06ae84714",
|
|
13
|
+
* ]});
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* ## Import
|
|
17
|
+
*
|
|
18
|
+
* The VmpAlertingRuleEnableDisable is not support import.
|
|
19
|
+
*/
|
|
20
|
+
export declare class AlertingRuleEnableDisable extends pulumi.CustomResource {
|
|
21
|
+
/**
|
|
22
|
+
* Get an existing AlertingRuleEnableDisable resource's state with the given name, ID, and optional extra
|
|
23
|
+
* properties used to qualify the lookup.
|
|
24
|
+
*
|
|
25
|
+
* @param name The _unique_ name of the resulting resource.
|
|
26
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
27
|
+
* @param state Any extra arguments used during the lookup.
|
|
28
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
29
|
+
*/
|
|
30
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AlertingRuleEnableDisableState, opts?: pulumi.CustomResourceOptions): AlertingRuleEnableDisable;
|
|
31
|
+
/**
|
|
32
|
+
* Returns true if the given object is an instance of AlertingRuleEnableDisable. This is designed to work even
|
|
33
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
34
|
+
*/
|
|
35
|
+
static isInstance(obj: any): obj is AlertingRuleEnableDisable;
|
|
36
|
+
/**
|
|
37
|
+
* The ids of alerting rule.
|
|
38
|
+
*/
|
|
39
|
+
readonly ids: pulumi.Output<string[]>;
|
|
40
|
+
/**
|
|
41
|
+
* Create a AlertingRuleEnableDisable resource with the given unique name, arguments, and options.
|
|
42
|
+
*
|
|
43
|
+
* @param name The _unique_ name of the resource.
|
|
44
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
45
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
46
|
+
*/
|
|
47
|
+
constructor(name: string, args: AlertingRuleEnableDisableArgs, opts?: pulumi.CustomResourceOptions);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Input properties used for looking up and filtering AlertingRuleEnableDisable resources.
|
|
51
|
+
*/
|
|
52
|
+
export interface AlertingRuleEnableDisableState {
|
|
53
|
+
/**
|
|
54
|
+
* The ids of alerting rule.
|
|
55
|
+
*/
|
|
56
|
+
ids?: pulumi.Input<pulumi.Input<string>[]>;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* The set of arguments for constructing a AlertingRuleEnableDisable resource.
|
|
60
|
+
*/
|
|
61
|
+
export interface AlertingRuleEnableDisableArgs {
|
|
62
|
+
/**
|
|
63
|
+
* The ids of alerting rule.
|
|
64
|
+
*/
|
|
65
|
+
ids: pulumi.Input<pulumi.Input<string>[]>;
|
|
66
|
+
}
|