pulumi-logtail 0.6.3
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/README.md +334 -0
- package/bin/config/index.d.ts +1 -0
- package/bin/config/index.js +21 -0
- package/bin/config/index.js.map +1 -0
- package/bin/config/vars.d.ts +6 -0
- package/bin/config/vars.js +13 -0
- package/bin/config/vars.js.map +1 -0
- package/bin/getMetric.d.ts +29 -0
- package/bin/getMetric.js +23 -0
- package/bin/getMetric.js.map +1 -0
- package/bin/getSource.d.ts +45 -0
- package/bin/getSource.js +21 -0
- package/bin/getSource.js.map +1 -0
- package/bin/getSourceGroup.d.ts +26 -0
- package/bin/getSourceGroup.js +21 -0
- package/bin/getSourceGroup.js.map +1 -0
- package/bin/index.d.ts +24 -0
- package/bin/index.js +57 -0
- package/bin/index.js.map +1 -0
- package/bin/metric.d.ts +108 -0
- package/bin/metric.js +71 -0
- package/bin/metric.js.map +1 -0
- package/bin/package.json +60 -0
- package/bin/provider.d.ts +39 -0
- package/bin/provider.js +50 -0
- package/bin/provider.js.map +1 -0
- package/bin/source.d.ts +311 -0
- package/bin/source.js +94 -0
- package/bin/source.js.map +1 -0
- package/bin/sourceGroup.d.ts +88 -0
- package/bin/sourceGroup.js +57 -0
- package/bin/sourceGroup.js.map +1 -0
- package/bin/types/index.d.ts +3 -0
- package/bin/types/index.js +11 -0
- package/bin/types/index.js.map +1 -0
- package/bin/types/input.d.ts +23 -0
- package/bin/types/input.js +5 -0
- package/bin/types/input.js.map +1 -0
- package/bin/types/output.d.ts +29 -0
- package/bin/types/output.js +5 -0
- package/bin/types/output.js.map +1 -0
- package/bin/utilities.d.ts +5 -0
- package/bin/utilities.js +141 -0
- package/bin/utilities.js.map +1 -0
- package/package.json +60 -0
package/bin/metric.d.ts
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare class Metric extends pulumi.CustomResource {
|
|
3
|
+
/**
|
|
4
|
+
* Get an existing Metric resource's state with the given name, ID, and optional extra
|
|
5
|
+
* properties used to qualify the lookup.
|
|
6
|
+
*
|
|
7
|
+
* @param name The _unique_ name of the resulting resource.
|
|
8
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
9
|
+
* @param state Any extra arguments used during the lookup.
|
|
10
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
11
|
+
*/
|
|
12
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MetricState, opts?: pulumi.CustomResourceOptions): Metric;
|
|
13
|
+
/**
|
|
14
|
+
* Returns true if the given object is an instance of Metric. This is designed to work even
|
|
15
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
|
+
*/
|
|
17
|
+
static isInstance(obj: any): obj is Metric;
|
|
18
|
+
/**
|
|
19
|
+
* The list of aggregations to perform on the metric.
|
|
20
|
+
*/
|
|
21
|
+
readonly aggregations: pulumi.Output<string[]>;
|
|
22
|
+
/**
|
|
23
|
+
* The name of this metric.
|
|
24
|
+
*/
|
|
25
|
+
readonly name: pulumi.Output<string>;
|
|
26
|
+
/**
|
|
27
|
+
* The ID of the source this metric belongs to.
|
|
28
|
+
*/
|
|
29
|
+
readonly sourceId: pulumi.Output<string>;
|
|
30
|
+
/**
|
|
31
|
+
* The SQL expression used to extract the metric value.
|
|
32
|
+
*/
|
|
33
|
+
readonly sqlExpression: pulumi.Output<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Used to specify the team the resource should be created in when using global tokens.
|
|
36
|
+
*/
|
|
37
|
+
readonly teamName: pulumi.Output<string | undefined>;
|
|
38
|
+
/**
|
|
39
|
+
* The type of the metric.
|
|
40
|
+
*/
|
|
41
|
+
readonly type: pulumi.Output<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Create a Metric resource with the given unique name, arguments, and options.
|
|
44
|
+
*
|
|
45
|
+
* @param name The _unique_ name of the resource.
|
|
46
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
47
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
48
|
+
*/
|
|
49
|
+
constructor(name: string, args: MetricArgs, opts?: pulumi.CustomResourceOptions);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Input properties used for looking up and filtering Metric resources.
|
|
53
|
+
*/
|
|
54
|
+
export interface MetricState {
|
|
55
|
+
/**
|
|
56
|
+
* The list of aggregations to perform on the metric.
|
|
57
|
+
*/
|
|
58
|
+
aggregations?: pulumi.Input<pulumi.Input<string>[]>;
|
|
59
|
+
/**
|
|
60
|
+
* The name of this metric.
|
|
61
|
+
*/
|
|
62
|
+
name?: pulumi.Input<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The ID of the source this metric belongs to.
|
|
65
|
+
*/
|
|
66
|
+
sourceId?: pulumi.Input<string>;
|
|
67
|
+
/**
|
|
68
|
+
* The SQL expression used to extract the metric value.
|
|
69
|
+
*/
|
|
70
|
+
sqlExpression?: pulumi.Input<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Used to specify the team the resource should be created in when using global tokens.
|
|
73
|
+
*/
|
|
74
|
+
teamName?: pulumi.Input<string>;
|
|
75
|
+
/**
|
|
76
|
+
* The type of the metric.
|
|
77
|
+
*/
|
|
78
|
+
type?: pulumi.Input<string>;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* The set of arguments for constructing a Metric resource.
|
|
82
|
+
*/
|
|
83
|
+
export interface MetricArgs {
|
|
84
|
+
/**
|
|
85
|
+
* The list of aggregations to perform on the metric.
|
|
86
|
+
*/
|
|
87
|
+
aggregations: pulumi.Input<pulumi.Input<string>[]>;
|
|
88
|
+
/**
|
|
89
|
+
* The name of this metric.
|
|
90
|
+
*/
|
|
91
|
+
name?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* The ID of the source this metric belongs to.
|
|
94
|
+
*/
|
|
95
|
+
sourceId: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* The SQL expression used to extract the metric value.
|
|
98
|
+
*/
|
|
99
|
+
sqlExpression: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* Used to specify the team the resource should be created in when using global tokens.
|
|
102
|
+
*/
|
|
103
|
+
teamName?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* The type of the metric.
|
|
106
|
+
*/
|
|
107
|
+
type: pulumi.Input<string>;
|
|
108
|
+
}
|
package/bin/metric.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.Metric = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class Metric extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing Metric resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, state, opts) {
|
|
19
|
+
return new Metric(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of Metric. This is designed to work even
|
|
23
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
24
|
+
*/
|
|
25
|
+
static isInstance(obj) {
|
|
26
|
+
if (obj === undefined || obj === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return obj['__pulumiType'] === Metric.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["aggregations"] = state ? state.aggregations : undefined;
|
|
37
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
38
|
+
resourceInputs["sourceId"] = state ? state.sourceId : undefined;
|
|
39
|
+
resourceInputs["sqlExpression"] = state ? state.sqlExpression : undefined;
|
|
40
|
+
resourceInputs["teamName"] = state ? state.teamName : undefined;
|
|
41
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
const args = argsOrState;
|
|
45
|
+
if ((!args || args.aggregations === undefined) && !opts.urn) {
|
|
46
|
+
throw new Error("Missing required property 'aggregations'");
|
|
47
|
+
}
|
|
48
|
+
if ((!args || args.sourceId === undefined) && !opts.urn) {
|
|
49
|
+
throw new Error("Missing required property 'sourceId'");
|
|
50
|
+
}
|
|
51
|
+
if ((!args || args.sqlExpression === undefined) && !opts.urn) {
|
|
52
|
+
throw new Error("Missing required property 'sqlExpression'");
|
|
53
|
+
}
|
|
54
|
+
if ((!args || args.type === undefined) && !opts.urn) {
|
|
55
|
+
throw new Error("Missing required property 'type'");
|
|
56
|
+
}
|
|
57
|
+
resourceInputs["aggregations"] = args ? args.aggregations : undefined;
|
|
58
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
59
|
+
resourceInputs["sourceId"] = args ? args.sourceId : undefined;
|
|
60
|
+
resourceInputs["sqlExpression"] = args ? args.sqlExpression : undefined;
|
|
61
|
+
resourceInputs["teamName"] = args ? args.teamName : undefined;
|
|
62
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
63
|
+
}
|
|
64
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
65
|
+
super(Metric.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.Metric = Metric;
|
|
69
|
+
/** @internal */
|
|
70
|
+
Metric.__pulumiType = 'logtail:index/metric:Metric';
|
|
71
|
+
//# sourceMappingURL=metric.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metric.js","sourceRoot":"","sources":["../metric.ts"],"names":[],"mappings":"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"}
|
package/bin/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pulumi-logtail",
|
|
3
|
+
"description": "A Pulumi provider for managing Logtail log management and analytics resources, dynamically bridged from the Terraform Logtail provider with support for sources, metrics, and log aggregation.",
|
|
4
|
+
"version": "0.6.3",
|
|
5
|
+
"homepage": "https://github.com/hckhanh/pulumi-any-terraform",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/hckhanh/pulumi-any-terraform.git",
|
|
9
|
+
"directory": "packages/logtail"
|
|
10
|
+
},
|
|
11
|
+
"private": false,
|
|
12
|
+
"main": "./bin/index.js",
|
|
13
|
+
"module": "./bin/index.js",
|
|
14
|
+
"types": "./bin/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": "./bin/index.js",
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"async-mutex": "0.5.0"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@pulumi/pulumi": "3.189.0",
|
|
24
|
+
"@types/node": "24.2.1",
|
|
25
|
+
"typescript": "5.9.2"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"@pulumi/pulumi": ">=3.189.0"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"bin",
|
|
32
|
+
"README.md"
|
|
33
|
+
],
|
|
34
|
+
"keywords": [
|
|
35
|
+
"pulumi",
|
|
36
|
+
"logtail",
|
|
37
|
+
"log-management",
|
|
38
|
+
"log-analytics",
|
|
39
|
+
"logging",
|
|
40
|
+
"observability",
|
|
41
|
+
"monitoring",
|
|
42
|
+
"metrics",
|
|
43
|
+
"sources",
|
|
44
|
+
"log-aggregation",
|
|
45
|
+
"terraform",
|
|
46
|
+
"provider",
|
|
47
|
+
"infrastructure"
|
|
48
|
+
],
|
|
49
|
+
"license": "MIT",
|
|
50
|
+
"pulumi": {
|
|
51
|
+
"resource": true,
|
|
52
|
+
"name": "terraform-provider",
|
|
53
|
+
"version": "0.8.0",
|
|
54
|
+
"parameterization": {
|
|
55
|
+
"name": "logtail",
|
|
56
|
+
"version": "0.6.3",
|
|
57
|
+
"value": "eyJyZW1vdGUiOnsidXJsIjoicmVnaXN0cnkub3BlbnRvZnUub3JnL2JldHRlcnN0YWNraHEvbG9ndGFpbCIsInZlcnNpb24iOiIwLjYuMyJ9fQ=="
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The provider type for the logtail package. By default, resources use package-wide configuration
|
|
4
|
+
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
5
|
+
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
6
|
+
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Provider extends pulumi.ProviderResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
11
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
12
|
+
*/
|
|
13
|
+
static isInstance(obj: any): obj is Provider;
|
|
14
|
+
/**
|
|
15
|
+
* Better Stack Telemetry API token. The value can be omitted if `LOGTAIL_API_TOKEN` environment variable is set. See
|
|
16
|
+
* https://betterstack.com/docs/logs/api/getting-started/#get-an-logs-api-token on how to obtain the API token for your
|
|
17
|
+
* team.
|
|
18
|
+
*/
|
|
19
|
+
readonly apiToken: pulumi.Output<string>;
|
|
20
|
+
/**
|
|
21
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
22
|
+
*
|
|
23
|
+
* @param name The _unique_ name of the resource.
|
|
24
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
25
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
26
|
+
*/
|
|
27
|
+
constructor(name: string, args: ProviderArgs, opts?: pulumi.ResourceOptions);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The set of arguments for constructing a Provider resource.
|
|
31
|
+
*/
|
|
32
|
+
export interface ProviderArgs {
|
|
33
|
+
/**
|
|
34
|
+
* Better Stack Telemetry API token. The value can be omitted if `LOGTAIL_API_TOKEN` environment variable is set. See
|
|
35
|
+
* https://betterstack.com/docs/logs/api/getting-started/#get-an-logs-api-token on how to obtain the API token for your
|
|
36
|
+
* team.
|
|
37
|
+
*/
|
|
38
|
+
apiToken: pulumi.Input<string>;
|
|
39
|
+
}
|
package/bin/provider.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.Provider = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The provider type for the logtail package. By default, resources use package-wide configuration
|
|
10
|
+
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
11
|
+
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
12
|
+
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
13
|
+
*/
|
|
14
|
+
class Provider extends pulumi.ProviderResource {
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj) {
|
|
20
|
+
if (obj === undefined || obj === null) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
27
|
+
*
|
|
28
|
+
* @param name The _unique_ name of the resource.
|
|
29
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
30
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
31
|
+
*/
|
|
32
|
+
constructor(name, args, opts) {
|
|
33
|
+
let resourceInputs = {};
|
|
34
|
+
opts = opts || {};
|
|
35
|
+
{
|
|
36
|
+
if ((!args || args.apiToken === undefined) && !opts.urn) {
|
|
37
|
+
throw new Error("Missing required property 'apiToken'");
|
|
38
|
+
}
|
|
39
|
+
resourceInputs["apiToken"] = (args === null || args === void 0 ? void 0 : args.apiToken) ? pulumi.secret(args.apiToken) : undefined;
|
|
40
|
+
}
|
|
41
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
42
|
+
const secretOpts = { additionalSecretOutputs: ["apiToken"] };
|
|
43
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
44
|
+
super(Provider.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.Provider = Provider;
|
|
48
|
+
/** @internal */
|
|
49
|
+
Provider.__pulumiType = 'logtail';
|
|
50
|
+
//# sourceMappingURL=provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;YACpC,OAAO,KAAK,CAAC;QACjB,CAAC;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IASD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAA6B;QACvE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,CAAC;YACG,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;gBACtD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;YAC5D,CAAC;YACD,cAAc,CAAC,UAAU,CAAC,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAC3F,CAAC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QAC7D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IAC3G,CAAC;;AA1CL,4BA2CC;AA1CG,gBAAgB;AACO,qBAAY,GAAG,SAAS,CAAC"}
|
package/bin/source.d.ts
ADDED
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
export declare class Source extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing Source resource's state with the given name, ID, and optional extra
|
|
7
|
+
* properties used to qualify the lookup.
|
|
8
|
+
*
|
|
9
|
+
* @param name The _unique_ name of the resulting resource.
|
|
10
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
11
|
+
* @param state Any extra arguments used during the lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SourceState, opts?: pulumi.CustomResourceOptions): Source;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Source. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is Source;
|
|
20
|
+
/**
|
|
21
|
+
* The time when this monitor group was created.
|
|
22
|
+
*/
|
|
23
|
+
readonly createdAt: pulumi.Output<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Optional custom bucket configuration for the source. When provided, all fields (name, endpoint, access_key_id,
|
|
26
|
+
* secret_access_key) are required.
|
|
27
|
+
*/
|
|
28
|
+
readonly customBucket: pulumi.Output<outputs.SourceCustomBucket | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* Data region or private cluster name to create the source in. Permitted values for most plans are: `us_east`, `us_west`,
|
|
31
|
+
* `germany`, `singapore`.
|
|
32
|
+
*/
|
|
33
|
+
readonly dataRegion: pulumi.Output<string>;
|
|
34
|
+
/**
|
|
35
|
+
* The host where the logs or metrics should be sent. See [documentation](https://betterstack.com/docs/logs/start/) for
|
|
36
|
+
* your specific source platform for details.
|
|
37
|
+
*/
|
|
38
|
+
readonly ingestingHost: pulumi.Output<string>;
|
|
39
|
+
/**
|
|
40
|
+
* This property allows you to temporarily pause data ingesting for this source (e.g., when you are reaching your plan's
|
|
41
|
+
* usage quota and you want to prioritize some sources over others).
|
|
42
|
+
*/
|
|
43
|
+
readonly ingestingPaused: pulumi.Output<boolean>;
|
|
44
|
+
/**
|
|
45
|
+
* Freeform text template for formatting Live tail output with columns wrapped in {column} brackets. Example: "PID:
|
|
46
|
+
* {message_json.pid} {level} {message}"
|
|
47
|
+
*/
|
|
48
|
+
readonly liveTailPattern: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Data retention for logs in days. There might be additional charges for longer retention.
|
|
51
|
+
*/
|
|
52
|
+
readonly logsRetention: pulumi.Output<number>;
|
|
53
|
+
/**
|
|
54
|
+
* Data retention for metrics in days. There might be additional charges for longer retention.
|
|
55
|
+
*/
|
|
56
|
+
readonly metricsRetention: pulumi.Output<number>;
|
|
57
|
+
/**
|
|
58
|
+
* The name of this source.
|
|
59
|
+
*/
|
|
60
|
+
readonly name: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* The platform of this source. This value can be set only when you're creating a new source. You can't update this value
|
|
63
|
+
* later. Valid values are: - `apache2` - `aws_cloudwatch` - `aws_ecs` - `aws_elb` - `aws_fargate` - `cloudflare_logpush` -
|
|
64
|
+
* `cloudflare_worker` - `datadog_agent` - `digitalocean` - `docker` - `dokku` - `dotnet` - `elasticsearch` - `erlang` -
|
|
65
|
+
* `filebeat` - `flights` - `fluentbit` - `fluentd` - `fly_io` - `go` - `google_cloud_pubsub` - `haproxy` - `heroku` -
|
|
66
|
+
* `http` - `java` - `javascript` - `kubernetes` - `logstash` - `minio` - `mongodb` - `mysql` - `nginx` - `open_telemetry`
|
|
67
|
+
* - `php` - `postgresql` - `prometheus` - `prometheus_scrape` - `python` - `rabbitmq` - `redis` - `render` - `rsyslog` -
|
|
68
|
+
* `ruby` - `syslog-ng` - `traefik` - `ubuntu` - `vector` - `vercel_integration`
|
|
69
|
+
*/
|
|
70
|
+
readonly platform: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* For scrape platform types, how often to scrape the URLs.
|
|
73
|
+
*/
|
|
74
|
+
readonly scrapeFrequencySecs: pulumi.Output<number | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* Basic auth password for scraping.
|
|
77
|
+
*/
|
|
78
|
+
readonly scrapeRequestBasicAuthPassword: pulumi.Output<string | undefined>;
|
|
79
|
+
/**
|
|
80
|
+
* Basic auth username for scraping.
|
|
81
|
+
*/
|
|
82
|
+
readonly scrapeRequestBasicAuthUser: pulumi.Output<string | undefined>;
|
|
83
|
+
/**
|
|
84
|
+
* An array of request headers, each containing `name` and `value` fields.
|
|
85
|
+
*/
|
|
86
|
+
readonly scrapeRequestHeaders: pulumi.Output<{
|
|
87
|
+
[key: string]: string;
|
|
88
|
+
}[] | undefined>;
|
|
89
|
+
/**
|
|
90
|
+
* For scrape platform types, the set of urls to scrape.
|
|
91
|
+
*/
|
|
92
|
+
readonly scrapeUrls: pulumi.Output<string[] | undefined>;
|
|
93
|
+
/**
|
|
94
|
+
* The ID of the source group this source belongs to.
|
|
95
|
+
*/
|
|
96
|
+
readonly sourceGroupId: pulumi.Output<number | undefined>;
|
|
97
|
+
/**
|
|
98
|
+
* The table name generated for this source.
|
|
99
|
+
*/
|
|
100
|
+
readonly tableName: pulumi.Output<string>;
|
|
101
|
+
/**
|
|
102
|
+
* Used to specify the team the resource should be created in when using global tokens.
|
|
103
|
+
*/
|
|
104
|
+
readonly teamName: pulumi.Output<string | undefined>;
|
|
105
|
+
/**
|
|
106
|
+
* The token of this source. This token is used to identify and route the data you will send to Better Stack.
|
|
107
|
+
*/
|
|
108
|
+
readonly token: pulumi.Output<string>;
|
|
109
|
+
/**
|
|
110
|
+
* The time when this monitor group was updated.
|
|
111
|
+
*/
|
|
112
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
113
|
+
/**
|
|
114
|
+
* The VRL code that's used to transform events. Read more about [VRL
|
|
115
|
+
* transformations](https://betterstack.com/docs/logs/using-logtail/transforming-ingested-data/logs-vrl/).
|
|
116
|
+
*/
|
|
117
|
+
readonly vrlTransformation: pulumi.Output<string | undefined>;
|
|
118
|
+
/**
|
|
119
|
+
* Create a Source resource with the given unique name, arguments, and options.
|
|
120
|
+
*
|
|
121
|
+
* @param name The _unique_ name of the resource.
|
|
122
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
123
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
124
|
+
*/
|
|
125
|
+
constructor(name: string, args: SourceArgs, opts?: pulumi.CustomResourceOptions);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Input properties used for looking up and filtering Source resources.
|
|
129
|
+
*/
|
|
130
|
+
export interface SourceState {
|
|
131
|
+
/**
|
|
132
|
+
* The time when this monitor group was created.
|
|
133
|
+
*/
|
|
134
|
+
createdAt?: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* Optional custom bucket configuration for the source. When provided, all fields (name, endpoint, access_key_id,
|
|
137
|
+
* secret_access_key) are required.
|
|
138
|
+
*/
|
|
139
|
+
customBucket?: pulumi.Input<inputs.SourceCustomBucket>;
|
|
140
|
+
/**
|
|
141
|
+
* Data region or private cluster name to create the source in. Permitted values for most plans are: `us_east`, `us_west`,
|
|
142
|
+
* `germany`, `singapore`.
|
|
143
|
+
*/
|
|
144
|
+
dataRegion?: pulumi.Input<string>;
|
|
145
|
+
/**
|
|
146
|
+
* The host where the logs or metrics should be sent. See [documentation](https://betterstack.com/docs/logs/start/) for
|
|
147
|
+
* your specific source platform for details.
|
|
148
|
+
*/
|
|
149
|
+
ingestingHost?: pulumi.Input<string>;
|
|
150
|
+
/**
|
|
151
|
+
* This property allows you to temporarily pause data ingesting for this source (e.g., when you are reaching your plan's
|
|
152
|
+
* usage quota and you want to prioritize some sources over others).
|
|
153
|
+
*/
|
|
154
|
+
ingestingPaused?: pulumi.Input<boolean>;
|
|
155
|
+
/**
|
|
156
|
+
* Freeform text template for formatting Live tail output with columns wrapped in {column} brackets. Example: "PID:
|
|
157
|
+
* {message_json.pid} {level} {message}"
|
|
158
|
+
*/
|
|
159
|
+
liveTailPattern?: pulumi.Input<string>;
|
|
160
|
+
/**
|
|
161
|
+
* Data retention for logs in days. There might be additional charges for longer retention.
|
|
162
|
+
*/
|
|
163
|
+
logsRetention?: pulumi.Input<number>;
|
|
164
|
+
/**
|
|
165
|
+
* Data retention for metrics in days. There might be additional charges for longer retention.
|
|
166
|
+
*/
|
|
167
|
+
metricsRetention?: pulumi.Input<number>;
|
|
168
|
+
/**
|
|
169
|
+
* The name of this source.
|
|
170
|
+
*/
|
|
171
|
+
name?: pulumi.Input<string>;
|
|
172
|
+
/**
|
|
173
|
+
* The platform of this source. This value can be set only when you're creating a new source. You can't update this value
|
|
174
|
+
* later. Valid values are: - `apache2` - `aws_cloudwatch` - `aws_ecs` - `aws_elb` - `aws_fargate` - `cloudflare_logpush` -
|
|
175
|
+
* `cloudflare_worker` - `datadog_agent` - `digitalocean` - `docker` - `dokku` - `dotnet` - `elasticsearch` - `erlang` -
|
|
176
|
+
* `filebeat` - `flights` - `fluentbit` - `fluentd` - `fly_io` - `go` - `google_cloud_pubsub` - `haproxy` - `heroku` -
|
|
177
|
+
* `http` - `java` - `javascript` - `kubernetes` - `logstash` - `minio` - `mongodb` - `mysql` - `nginx` - `open_telemetry`
|
|
178
|
+
* - `php` - `postgresql` - `prometheus` - `prometheus_scrape` - `python` - `rabbitmq` - `redis` - `render` - `rsyslog` -
|
|
179
|
+
* `ruby` - `syslog-ng` - `traefik` - `ubuntu` - `vector` - `vercel_integration`
|
|
180
|
+
*/
|
|
181
|
+
platform?: pulumi.Input<string>;
|
|
182
|
+
/**
|
|
183
|
+
* For scrape platform types, how often to scrape the URLs.
|
|
184
|
+
*/
|
|
185
|
+
scrapeFrequencySecs?: pulumi.Input<number>;
|
|
186
|
+
/**
|
|
187
|
+
* Basic auth password for scraping.
|
|
188
|
+
*/
|
|
189
|
+
scrapeRequestBasicAuthPassword?: pulumi.Input<string>;
|
|
190
|
+
/**
|
|
191
|
+
* Basic auth username for scraping.
|
|
192
|
+
*/
|
|
193
|
+
scrapeRequestBasicAuthUser?: pulumi.Input<string>;
|
|
194
|
+
/**
|
|
195
|
+
* An array of request headers, each containing `name` and `value` fields.
|
|
196
|
+
*/
|
|
197
|
+
scrapeRequestHeaders?: pulumi.Input<pulumi.Input<{
|
|
198
|
+
[key: string]: pulumi.Input<string>;
|
|
199
|
+
}>[]>;
|
|
200
|
+
/**
|
|
201
|
+
* For scrape platform types, the set of urls to scrape.
|
|
202
|
+
*/
|
|
203
|
+
scrapeUrls?: pulumi.Input<pulumi.Input<string>[]>;
|
|
204
|
+
/**
|
|
205
|
+
* The ID of the source group this source belongs to.
|
|
206
|
+
*/
|
|
207
|
+
sourceGroupId?: pulumi.Input<number>;
|
|
208
|
+
/**
|
|
209
|
+
* The table name generated for this source.
|
|
210
|
+
*/
|
|
211
|
+
tableName?: pulumi.Input<string>;
|
|
212
|
+
/**
|
|
213
|
+
* Used to specify the team the resource should be created in when using global tokens.
|
|
214
|
+
*/
|
|
215
|
+
teamName?: pulumi.Input<string>;
|
|
216
|
+
/**
|
|
217
|
+
* The token of this source. This token is used to identify and route the data you will send to Better Stack.
|
|
218
|
+
*/
|
|
219
|
+
token?: pulumi.Input<string>;
|
|
220
|
+
/**
|
|
221
|
+
* The time when this monitor group was updated.
|
|
222
|
+
*/
|
|
223
|
+
updatedAt?: pulumi.Input<string>;
|
|
224
|
+
/**
|
|
225
|
+
* The VRL code that's used to transform events. Read more about [VRL
|
|
226
|
+
* transformations](https://betterstack.com/docs/logs/using-logtail/transforming-ingested-data/logs-vrl/).
|
|
227
|
+
*/
|
|
228
|
+
vrlTransformation?: pulumi.Input<string>;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* The set of arguments for constructing a Source resource.
|
|
232
|
+
*/
|
|
233
|
+
export interface SourceArgs {
|
|
234
|
+
/**
|
|
235
|
+
* Optional custom bucket configuration for the source. When provided, all fields (name, endpoint, access_key_id,
|
|
236
|
+
* secret_access_key) are required.
|
|
237
|
+
*/
|
|
238
|
+
customBucket?: pulumi.Input<inputs.SourceCustomBucket>;
|
|
239
|
+
/**
|
|
240
|
+
* Data region or private cluster name to create the source in. Permitted values for most plans are: `us_east`, `us_west`,
|
|
241
|
+
* `germany`, `singapore`.
|
|
242
|
+
*/
|
|
243
|
+
dataRegion?: pulumi.Input<string>;
|
|
244
|
+
/**
|
|
245
|
+
* This property allows you to temporarily pause data ingesting for this source (e.g., when you are reaching your plan's
|
|
246
|
+
* usage quota and you want to prioritize some sources over others).
|
|
247
|
+
*/
|
|
248
|
+
ingestingPaused?: pulumi.Input<boolean>;
|
|
249
|
+
/**
|
|
250
|
+
* Freeform text template for formatting Live tail output with columns wrapped in {column} brackets. Example: "PID:
|
|
251
|
+
* {message_json.pid} {level} {message}"
|
|
252
|
+
*/
|
|
253
|
+
liveTailPattern?: pulumi.Input<string>;
|
|
254
|
+
/**
|
|
255
|
+
* Data retention for logs in days. There might be additional charges for longer retention.
|
|
256
|
+
*/
|
|
257
|
+
logsRetention?: pulumi.Input<number>;
|
|
258
|
+
/**
|
|
259
|
+
* Data retention for metrics in days. There might be additional charges for longer retention.
|
|
260
|
+
*/
|
|
261
|
+
metricsRetention?: pulumi.Input<number>;
|
|
262
|
+
/**
|
|
263
|
+
* The name of this source.
|
|
264
|
+
*/
|
|
265
|
+
name?: pulumi.Input<string>;
|
|
266
|
+
/**
|
|
267
|
+
* The platform of this source. This value can be set only when you're creating a new source. You can't update this value
|
|
268
|
+
* later. Valid values are: - `apache2` - `aws_cloudwatch` - `aws_ecs` - `aws_elb` - `aws_fargate` - `cloudflare_logpush` -
|
|
269
|
+
* `cloudflare_worker` - `datadog_agent` - `digitalocean` - `docker` - `dokku` - `dotnet` - `elasticsearch` - `erlang` -
|
|
270
|
+
* `filebeat` - `flights` - `fluentbit` - `fluentd` - `fly_io` - `go` - `google_cloud_pubsub` - `haproxy` - `heroku` -
|
|
271
|
+
* `http` - `java` - `javascript` - `kubernetes` - `logstash` - `minio` - `mongodb` - `mysql` - `nginx` - `open_telemetry`
|
|
272
|
+
* - `php` - `postgresql` - `prometheus` - `prometheus_scrape` - `python` - `rabbitmq` - `redis` - `render` - `rsyslog` -
|
|
273
|
+
* `ruby` - `syslog-ng` - `traefik` - `ubuntu` - `vector` - `vercel_integration`
|
|
274
|
+
*/
|
|
275
|
+
platform: pulumi.Input<string>;
|
|
276
|
+
/**
|
|
277
|
+
* For scrape platform types, how often to scrape the URLs.
|
|
278
|
+
*/
|
|
279
|
+
scrapeFrequencySecs?: pulumi.Input<number>;
|
|
280
|
+
/**
|
|
281
|
+
* Basic auth password for scraping.
|
|
282
|
+
*/
|
|
283
|
+
scrapeRequestBasicAuthPassword?: pulumi.Input<string>;
|
|
284
|
+
/**
|
|
285
|
+
* Basic auth username for scraping.
|
|
286
|
+
*/
|
|
287
|
+
scrapeRequestBasicAuthUser?: pulumi.Input<string>;
|
|
288
|
+
/**
|
|
289
|
+
* An array of request headers, each containing `name` and `value` fields.
|
|
290
|
+
*/
|
|
291
|
+
scrapeRequestHeaders?: pulumi.Input<pulumi.Input<{
|
|
292
|
+
[key: string]: pulumi.Input<string>;
|
|
293
|
+
}>[]>;
|
|
294
|
+
/**
|
|
295
|
+
* For scrape platform types, the set of urls to scrape.
|
|
296
|
+
*/
|
|
297
|
+
scrapeUrls?: pulumi.Input<pulumi.Input<string>[]>;
|
|
298
|
+
/**
|
|
299
|
+
* The ID of the source group this source belongs to.
|
|
300
|
+
*/
|
|
301
|
+
sourceGroupId?: pulumi.Input<number>;
|
|
302
|
+
/**
|
|
303
|
+
* Used to specify the team the resource should be created in when using global tokens.
|
|
304
|
+
*/
|
|
305
|
+
teamName?: pulumi.Input<string>;
|
|
306
|
+
/**
|
|
307
|
+
* The VRL code that's used to transform events. Read more about [VRL
|
|
308
|
+
* transformations](https://betterstack.com/docs/logs/using-logtail/transforming-ingested-data/logs-vrl/).
|
|
309
|
+
*/
|
|
310
|
+
vrlTransformation?: pulumi.Input<string>;
|
|
311
|
+
}
|