From 857d8f55ad281f4aabea8d9a2d4da3d4691d64a8 Mon Sep 17 00:00:00 2001 From: Piers Karsenbarg Date: Tue, 24 Sep 2024 13:56:20 +0100 Subject: [PATCH] Updated upstream modules Conflict with the app_monitoring resource in .NET. Renamed `AppMonitoringOverrides` --- .../cmd/pulumi-resource-dynatrace/schema.json | 138 ++++ provider/go.mod | 2 +- provider/go.sum | 4 +- provider/resources.go | 20 +- sdk/dotnet/AppMonitoring.cs | 18 + sdk/dotnet/Config/Config.cs | 14 + sdk/dotnet/DevobsGitOnprem.cs | 133 ++++ ...onitoringAppMonitoringAppMonitoringArgs.cs | 33 + ...toringAppMonitoringAppMonitoringGetArgs.cs | 33 + .../Inputs/AppMonitoringAppMonitoringArgs.cs | 29 + .../AppMonitoringAppMonitoringGetArgs.cs | 29 + .../Outputs/AppMonitoringAppMonitoring.cs | 25 + ...AppMonitoringAppMonitoringAppMonitoring.cs | 36 + sdk/dotnet/Provider.cs | 32 + sdk/go/dynatrace/appMonitoring.go | 15 + sdk/go/dynatrace/config/config.go | 6 + sdk/go/dynatrace/devobsGitOnprem.go | 257 +++++++ sdk/go/dynatrace/init.go | 7 + sdk/go/dynatrace/provider.go | 22 + sdk/go/dynatrace/pulumiTypes.go | 605 +++++++--------- sdk/go/dynatrace/pulumiTypes1.go | 644 ++++++++++-------- sdk/go/dynatrace/pulumiTypes2.go | 499 ++++++++------ sdk/go/dynatrace/pulumiTypes3.go | 213 ++++++ sdk/nodejs/appMonitoring.ts | 16 + sdk/nodejs/config/vars.ts | 16 + sdk/nodejs/devobsGitOnprem.ts | 118 ++++ sdk/nodejs/index.ts | 8 + sdk/nodejs/provider.ts | 8 +- sdk/nodejs/tsconfig.json | 1 + sdk/nodejs/types/input.ts | 15 + sdk/nodejs/types/output.ts | 15 + sdk/python/pulumiverse_dynatrace/__init__.py | 9 + sdk/python/pulumiverse_dynatrace/_inputs.py | 55 ++ .../pulumiverse_dynatrace/app_monitoring.py | 51 +- .../pulumiverse_dynatrace/config/__init__.pyi | 4 + .../pulumiverse_dynatrace/config/vars.py | 8 + .../devobs_git_onprem.py | 246 +++++++ sdk/python/pulumiverse_dynatrace/outputs.py | 79 +++ sdk/python/pulumiverse_dynatrace/provider.py | 44 +- 39 files changed, 2637 insertions(+), 870 deletions(-) create mode 100644 sdk/dotnet/DevobsGitOnprem.cs create mode 100644 sdk/dotnet/Inputs/AppMonitoringAppMonitoringAppMonitoringArgs.cs create mode 100644 sdk/dotnet/Inputs/AppMonitoringAppMonitoringAppMonitoringGetArgs.cs create mode 100644 sdk/dotnet/Inputs/AppMonitoringAppMonitoringArgs.cs create mode 100644 sdk/dotnet/Inputs/AppMonitoringAppMonitoringGetArgs.cs create mode 100644 sdk/dotnet/Outputs/AppMonitoringAppMonitoring.cs create mode 100644 sdk/dotnet/Outputs/AppMonitoringAppMonitoringAppMonitoring.cs create mode 100644 sdk/go/dynatrace/devobsGitOnprem.go create mode 100644 sdk/nodejs/devobsGitOnprem.ts create mode 100644 sdk/python/pulumiverse_dynatrace/devobs_git_onprem.py diff --git a/provider/cmd/pulumi-resource-dynatrace/schema.json b/provider/cmd/pulumi-resource-dynatrace/schema.json index 25d6de3a..a9599145 100644 --- a/provider/cmd/pulumi-resource-dynatrace/schema.json +++ b/provider/cmd/pulumi-resource-dynatrace/schema.json @@ -135,6 +135,14 @@ "iamClientSecret": { "type": "string", "secret": true + }, + "iamEndpointUrl": { + "type": "string", + "secret": true + }, + "iamTokenUrl": { + "type": "string", + "secret": true } } }, @@ -607,6 +615,37 @@ "pattern" ] }, + "dynatrace:index/AppMonitoringAppMonitoring:AppMonitoringAppMonitoring": { + "properties": { + "appMonitorings": { + "type": "array", + "items": { + "$ref": "#/types/dynatrace:index/AppMonitoringAppMonitoringAppMonitoring:AppMonitoringAppMonitoringAppMonitoring" + } + } + }, + "type": "object", + "required": [ + "appMonitorings" + ] + }, + "dynatrace:index/AppMonitoringAppMonitoringAppMonitoring:AppMonitoringAppMonitoringAppMonitoring": { + "properties": { + "appId": { + "type": "string", + "description": "App ID\n" + }, + "customLogLevel": { + "type": "string", + "description": "Possible Values: `Debug`, `Error`, `Info`, `Off`, `UseDefault`, `Warn`\n" + } + }, + "type": "object", + "required": [ + "appId", + "customLogLevel" + ] + }, "dynatrace:index/ApplicationAnomaliesFailureRate:ApplicationAnomaliesFailureRate": { "properties": { "auto": { @@ -37752,6 +37791,14 @@ "iamClientSecret": { "type": "string", "secret": true + }, + "iamEndpointUrl": { + "type": "string", + "secret": true + }, + "iamTokenUrl": { + "type": "string", + "secret": true } }, "inputProperties": { @@ -37833,6 +37880,14 @@ "iamClientSecret": { "type": "string", "secret": true + }, + "iamEndpointUrl": { + "type": "string", + "secret": true + }, + "iamTokenUrl": { + "type": "string", + "secret": true } } }, @@ -38658,6 +38713,15 @@ }, "dynatrace:index/appMonitoring:AppMonitoring": { "properties": { + "appMonitoring": { + "$ref": "#/types/dynatrace:index/AppMonitoringAppMonitoring:AppMonitoringAppMonitoring", + "description": "You can override the default monitoring setting for each app separately\n", + "language": { + "csharp": { + "name": "AppMonitoringOverrides" + } + } + }, "defaultLogLevel": { "type": "string", "description": "Possible Values: `All`, `Off`\n" @@ -38667,6 +38731,15 @@ "defaultLogLevel" ], "inputProperties": { + "appMonitoring": { + "$ref": "#/types/dynatrace:index/AppMonitoringAppMonitoring:AppMonitoringAppMonitoring", + "description": "You can override the default monitoring setting for each app separately\n", + "language": { + "csharp": { + "name": "AppMonitoringOverrides" + } + } + }, "defaultLogLevel": { "type": "string", "description": "Possible Values: `All`, `Off`\n" @@ -38678,6 +38751,15 @@ "stateInputs": { "description": "Input properties used for looking up and filtering AppMonitoring resources.\n", "properties": { + "appMonitoring": { + "$ref": "#/types/dynatrace:index/AppMonitoringAppMonitoring:AppMonitoringAppMonitoring", + "description": "You can override the default monitoring setting for each app separately\n", + "language": { + "csharp": { + "name": "AppMonitoringOverrides" + } + } + }, "defaultLogLevel": { "type": "string", "description": "Possible Values: `All`, `Off`\n" @@ -46251,6 +46333,62 @@ "type": "object" } }, + "dynatrace:index/devobsGitOnprem:DevobsGitOnprem": { + "properties": { + "gitProvider": { + "type": "string", + "description": "Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem`\n" + }, + "includeCredentials": { + "type": "boolean", + "description": "If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be\nset to `omit`.\n" + }, + "url": { + "type": "string", + "description": "An HTTP/HTTPS URL of your server\n" + } + }, + "required": [ + "gitProvider", + "url" + ], + "inputProperties": { + "gitProvider": { + "type": "string", + "description": "Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem`\n" + }, + "includeCredentials": { + "type": "boolean", + "description": "If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be\nset to `omit`.\n" + }, + "url": { + "type": "string", + "description": "An HTTP/HTTPS URL of your server\n" + } + }, + "requiredInputs": [ + "gitProvider", + "url" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering DevobsGitOnprem resources.\n", + "properties": { + "gitProvider": { + "type": "string", + "description": "Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem`\n" + }, + "includeCredentials": { + "type": "boolean", + "description": "If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be\nset to `omit`.\n" + }, + "url": { + "type": "string", + "description": "An HTTP/HTTPS URL of your server\n" + } + }, + "type": "object" + } + }, "dynatrace:index/directShares:DirectShares": { "description": "\u003e This resource is currently not covered by the export utility.\n\n## Dynatrace Documentation\n\n- Dynatrace Documents - https://########.apps.dynatrace.com/platform/swagger-ui/index.html?urls.primaryName=Document%20Service\n\n## Prerequisites\n\nUsing this resource requires an OAuth client to be configured within your account settings.\nThe scopes of the OAuth Client need to include `Read direct-shares (document:direct-shares:read)`, `Write direct-shares (document:direct-shares:write)`, `Delete direct-shares (document:direct-shares:delete)`.\n\nFinally the provider configuration requires the credentials for that OAuth Client.\nThe configuration section of your provider needs to look like this.\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\n```\n```python\nimport pulumi\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n }\n}\n```\n```yaml\n{}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e In order to handle credentials in a secure manner we recommend to use the environment variables `DYNATRACE_AUTOMATION_CLIENT_ID` and `DYNATRACE_AUTOMATION_CLIENT_SECRET` as an alternative.\n\n## Resource Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as dynatrace from \"@pulumiverse/dynatrace\";\n\nconst _this = new dynatrace.DirectShares(\"this\", {\n access: \"read-write\",\n documentId: \"441564f0-23c9-40ef-b344-18c02c23d712\",\n recipients: {\n recipients: [\n {\n id: \"441664f0-23c9-40ef-b344-18c02c23d787\",\n type: \"user\",\n },\n {\n id: \"441664f0-23c9-40ef-b344-18c02c23d788\",\n type: \"group\",\n },\n ],\n },\n});\n```\n```python\nimport pulumi\nimport pulumiverse_dynatrace as dynatrace\n\nthis = dynatrace.DirectShares(\"this\",\n access=\"read-write\",\n document_id=\"441564f0-23c9-40ef-b344-18c02c23d712\",\n recipients={\n \"recipients\": [\n {\n \"id\": \"441664f0-23c9-40ef-b344-18c02c23d787\",\n \"type\": \"user\",\n },\n {\n \"id\": \"441664f0-23c9-40ef-b344-18c02c23d788\",\n \"type\": \"group\",\n },\n ],\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Dynatrace = Pulumiverse.Dynatrace;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var @this = new Dynatrace.DirectShares(\"this\", new()\n {\n Access = \"read-write\",\n DocumentId = \"441564f0-23c9-40ef-b344-18c02c23d712\",\n Recipients = new Dynatrace.Inputs.DirectSharesRecipientsArgs\n {\n Recipients = new[]\n {\n new Dynatrace.Inputs.DirectSharesRecipientsRecipientArgs\n {\n Id = \"441664f0-23c9-40ef-b344-18c02c23d787\",\n Type = \"user\",\n },\n new Dynatrace.Inputs.DirectSharesRecipientsRecipientArgs\n {\n Id = \"441664f0-23c9-40ef-b344-18c02c23d788\",\n Type = \"group\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := dynatrace.NewDirectShares(ctx, \"this\", \u0026dynatrace.DirectSharesArgs{\n\t\t\tAccess: pulumi.String(\"read-write\"),\n\t\t\tDocumentId: pulumi.String(\"441564f0-23c9-40ef-b344-18c02c23d712\"),\n\t\t\tRecipients: \u0026dynatrace.DirectSharesRecipientsArgs{\n\t\t\t\tRecipients: dynatrace.DirectSharesRecipientsRecipientArray{\n\t\t\t\t\t\u0026dynatrace.DirectSharesRecipientsRecipientArgs{\n\t\t\t\t\t\tId: pulumi.String(\"441664f0-23c9-40ef-b344-18c02c23d787\"),\n\t\t\t\t\t\tType: pulumi.String(\"user\"),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026dynatrace.DirectSharesRecipientsRecipientArgs{\n\t\t\t\t\t\tId: pulumi.String(\"441664f0-23c9-40ef-b344-18c02c23d788\"),\n\t\t\t\t\t\tType: pulumi.String(\"group\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.dynatrace.DirectShares;\nimport com.pulumi.dynatrace.DirectSharesArgs;\nimport com.pulumi.dynatrace.inputs.DirectSharesRecipientsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var this_ = new DirectShares(\"this\", DirectSharesArgs.builder()\n .access(\"read-write\")\n .documentId(\"441564f0-23c9-40ef-b344-18c02c23d712\")\n .recipients(DirectSharesRecipientsArgs.builder()\n .recipients( \n DirectSharesRecipientsRecipientArgs.builder()\n .id(\"441664f0-23c9-40ef-b344-18c02c23d787\")\n .type(\"user\")\n .build(),\n DirectSharesRecipientsRecipientArgs.builder()\n .id(\"441664f0-23c9-40ef-b344-18c02c23d788\")\n .type(\"group\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n this:\n type: dynatrace:DirectShares\n properties:\n access: read-write\n documentId: 441564f0-23c9-40ef-b344-18c02c23d712\n recipients:\n recipients:\n - id: 441664f0-23c9-40ef-b344-18c02c23d787\n type: user\n - id: 441664f0-23c9-40ef-b344-18c02c23d788\n type: group\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { diff --git a/provider/go.mod b/provider/go.mod index f44a6bdc..7ab543d8 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -5,7 +5,7 @@ go 1.22 replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20240520223432-0c0bf0d65f10 require ( - github.com/dynatrace-oss/terraform-provider-dynatrace v1.66.0 + github.com/dynatrace-oss/terraform-provider-dynatrace v1.67.0 github.com/pulumi/pulumi-terraform-bridge/v3 v3.90.0 github.com/pulumi/pulumi/sdk/v3 v3.130.0 ) diff --git a/provider/go.sum b/provider/go.sum index ea10f2a7..cba9de12 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1350,8 +1350,8 @@ github.com/dlclark/regexp2 v1.11.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cn github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= -github.com/dynatrace-oss/terraform-provider-dynatrace v1.66.0 h1:AWAmwYujhrONCUvOZNBcfo63SLJFb5QuNYmkusGG9fU= -github.com/dynatrace-oss/terraform-provider-dynatrace v1.66.0/go.mod h1:Qpl5yM+9OEikThPmduXOQCLgS0QDrlint1whnPkk9go= +github.com/dynatrace-oss/terraform-provider-dynatrace v1.67.0 h1:1JwAbOmB1snmCl9h90IVUxQSy/BwkpzrwYNP3uqcwK0= +github.com/dynatrace-oss/terraform-provider-dynatrace v1.67.0/go.mod h1:Qpl5yM+9OEikThPmduXOQCLgS0QDrlint1whnPkk9go= github.com/dynatrace/dynatrace-configuration-as-code-core v0.5.1 h1:xaKtl+Ane5APeAmpyrW6xcGkr8rbXc5YNYyvu2V9cyI= github.com/dynatrace/dynatrace-configuration-as-code-core v0.5.1/go.mod h1:T1D01r9c2WR9J7T1vTRWn+TakH7rjBJ6/1h+x0OmL6w= github.com/edsrzf/mmap-go v1.1.0 h1:6EUwBLQ/Mcr1EYLE4Tn1VdW1A4ckqCQWZBw8Hr0kjpQ= diff --git a/provider/resources.go b/provider/resources.go index b7cec145..b00fa766 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -129,11 +129,19 @@ func Provider() tfbridge.ProviderInfo { }, PreConfigureCallback: preConfigureCallback, Resources: map[string]*tfbridge.ResourceInfo{ - "dynatrace_alerting": {Tok: dynatraceResource(mainMod, "Alerting")}, - "dynatrace_activegate_token": {Tok: dynatraceResource(mainMod, "ActivegateToken")}, - "dynatrace_activegate_updates": {Tok: dynatraceResource(mainMod, "ActivegateUpdates")}, - "dynatrace_alerting_profile": {Tok: dynatraceResource(mainMod, "AlertingProfile")}, - "dynatrace_aix_extension": {Tok: dynatraceResource(mainMod, "AixExtension")}, + "dynatrace_alerting": {Tok: dynatraceResource(mainMod, "Alerting")}, + "dynatrace_activegate_token": {Tok: dynatraceResource(mainMod, "ActivegateToken")}, + "dynatrace_activegate_updates": {Tok: dynatraceResource(mainMod, "ActivegateUpdates")}, + "dynatrace_alerting_profile": {Tok: dynatraceResource(mainMod, "AlertingProfile")}, + "dynatrace_aix_extension": {Tok: dynatraceResource(mainMod, "AixExtension")}, + "dynatrace_app_monitoring": { + Tok: dynatraceResource(mainMod, "AppMonitoring"), + Fields: map[string]*tfbridge.SchemaInfo{ + "app_monitoring": { + CSharpName: "AppMonitoringOverrides", + }, + }, + }, "dynatrace_application_anomalies": {Tok: dynatraceResource(mainMod, "ApplicationAnomalies")}, "dynatrace_application_data_privacy": {Tok: dynatraceResource(mainMod, "ApplicationDataPrivacy")}, "dynatrace_application_detection_rule": {Tok: dynatraceResource(mainMod, "ApplicationDetectionRule")}, @@ -163,7 +171,7 @@ func Provider() tfbridge.ProviderInfo { Tok: dynatraceResource(mainMod, "ConnectivityAlerts"), Fields: map[string]*tfbridge.SchemaInfo{"connectivity_alerts": {CSharpName: "EnableConnectivityAlerts"}}, }, - "dynatrace_container_builtin_rule": {Tok: dynatraceResource(mainMod, "ContainerBuiltinRule")}, + "dynatrace_container_builtin_rule": {Tok: dynatraceResource(mainMod, "ContainerBuiltinRule")}, "dynatrace_container_registry": { Tok: tfbridge.MakeResource(mainPkg, mainMod, "ContainerRegistry"), Fields: map[string]*tfbridge.SchemaInfo{ diff --git a/sdk/dotnet/AppMonitoring.cs b/sdk/dotnet/AppMonitoring.cs index 6ed35e3c..abb34fc4 100644 --- a/sdk/dotnet/AppMonitoring.cs +++ b/sdk/dotnet/AppMonitoring.cs @@ -13,6 +13,12 @@ namespace Pulumiverse.Dynatrace [DynatraceResourceType("dynatrace:index/appMonitoring:AppMonitoring")] public partial class AppMonitoring : global::Pulumi.CustomResource { + /// + /// You can override the default monitoring setting for each app separately + /// + [Output("appMonitoring")] + public Output AppMonitoringOverrides { get; private set; } = null!; + /// /// Possible Values: `All`, `Off` /// @@ -66,6 +72,12 @@ public static AppMonitoring Get(string name, Input id, AppMonitoringStat public sealed class AppMonitoringArgs : global::Pulumi.ResourceArgs { + /// + /// You can override the default monitoring setting for each app separately + /// + [Input("appMonitoring")] + public Input? AppMonitoringOverrides { get; set; } + /// /// Possible Values: `All`, `Off` /// @@ -80,6 +92,12 @@ public AppMonitoringArgs() public sealed class AppMonitoringState : global::Pulumi.ResourceArgs { + /// + /// You can override the default monitoring setting for each app separately + /// + [Input("appMonitoring")] + public Input? AppMonitoringOverrides { get; set; } + /// /// Possible Values: `All`, `Off` /// diff --git a/sdk/dotnet/Config/Config.cs b/sdk/dotnet/Config/Config.cs index 441d2b80..255b83b8 100644 --- a/sdk/dotnet/Config/Config.cs +++ b/sdk/dotnet/Config/Config.cs @@ -140,5 +140,19 @@ public static string? IamClientSecret set => _iamClientSecret.Set(value); } + private static readonly __Value _iamEndpointUrl = new __Value(() => __config.Get("iamEndpointUrl")); + public static string? IamEndpointUrl + { + get => _iamEndpointUrl.Get(); + set => _iamEndpointUrl.Set(value); + } + + private static readonly __Value _iamTokenUrl = new __Value(() => __config.Get("iamTokenUrl")); + public static string? IamTokenUrl + { + get => _iamTokenUrl.Get(); + set => _iamTokenUrl.Set(value); + } + } } diff --git a/sdk/dotnet/DevobsGitOnprem.cs b/sdk/dotnet/DevobsGitOnprem.cs new file mode 100644 index 00000000..819a5bb3 --- /dev/null +++ b/sdk/dotnet/DevobsGitOnprem.cs @@ -0,0 +1,133 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Pulumiverse.Dynatrace +{ + [DynatraceResourceType("dynatrace:index/devobsGitOnprem:DevobsGitOnprem")] + public partial class DevobsGitOnprem : global::Pulumi.CustomResource + { + /// + /// Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem` + /// + [Output("gitProvider")] + public Output GitProvider { get; private set; } = null!; + + /// + /// If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be + /// set to `omit`. + /// + [Output("includeCredentials")] + public Output IncludeCredentials { get; private set; } = null!; + + /// + /// An HTTP/HTTPS URL of your server + /// + [Output("url")] + public Output Url { get; private set; } = null!; + + + /// + /// Create a DevobsGitOnprem resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public DevobsGitOnprem(string name, DevobsGitOnpremArgs args, CustomResourceOptions? options = null) + : base("dynatrace:index/devobsGitOnprem:DevobsGitOnprem", name, args ?? new DevobsGitOnpremArgs(), MakeResourceOptions(options, "")) + { + } + + private DevobsGitOnprem(string name, Input id, DevobsGitOnpremState? state = null, CustomResourceOptions? options = null) + : base("dynatrace:index/devobsGitOnprem:DevobsGitOnprem", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/pulumiverse", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing DevobsGitOnprem resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static DevobsGitOnprem Get(string name, Input id, DevobsGitOnpremState? state = null, CustomResourceOptions? options = null) + { + return new DevobsGitOnprem(name, id, state, options); + } + } + + public sealed class DevobsGitOnpremArgs : global::Pulumi.ResourceArgs + { + /// + /// Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem` + /// + [Input("gitProvider", required: true)] + public Input GitProvider { get; set; } = null!; + + /// + /// If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be + /// set to `omit`. + /// + [Input("includeCredentials")] + public Input? IncludeCredentials { get; set; } + + /// + /// An HTTP/HTTPS URL of your server + /// + [Input("url", required: true)] + public Input Url { get; set; } = null!; + + public DevobsGitOnpremArgs() + { + } + public static new DevobsGitOnpremArgs Empty => new DevobsGitOnpremArgs(); + } + + public sealed class DevobsGitOnpremState : global::Pulumi.ResourceArgs + { + /// + /// Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem` + /// + [Input("gitProvider")] + public Input? GitProvider { get; set; } + + /// + /// If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be + /// set to `omit`. + /// + [Input("includeCredentials")] + public Input? IncludeCredentials { get; set; } + + /// + /// An HTTP/HTTPS URL of your server + /// + [Input("url")] + public Input? Url { get; set; } + + public DevobsGitOnpremState() + { + } + public static new DevobsGitOnpremState Empty => new DevobsGitOnpremState(); + } +} diff --git a/sdk/dotnet/Inputs/AppMonitoringAppMonitoringAppMonitoringArgs.cs b/sdk/dotnet/Inputs/AppMonitoringAppMonitoringAppMonitoringArgs.cs new file mode 100644 index 00000000..cddb5239 --- /dev/null +++ b/sdk/dotnet/Inputs/AppMonitoringAppMonitoringAppMonitoringArgs.cs @@ -0,0 +1,33 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Pulumiverse.Dynatrace.Inputs +{ + + public sealed class AppMonitoringAppMonitoringAppMonitoringArgs : global::Pulumi.ResourceArgs + { + /// + /// App ID + /// + [Input("appId", required: true)] + public Input AppId { get; set; } = null!; + + /// + /// Possible Values: `Debug`, `Error`, `Info`, `Off`, `UseDefault`, `Warn` + /// + [Input("customLogLevel", required: true)] + public Input CustomLogLevel { get; set; } = null!; + + public AppMonitoringAppMonitoringAppMonitoringArgs() + { + } + public static new AppMonitoringAppMonitoringAppMonitoringArgs Empty => new AppMonitoringAppMonitoringAppMonitoringArgs(); + } +} diff --git a/sdk/dotnet/Inputs/AppMonitoringAppMonitoringAppMonitoringGetArgs.cs b/sdk/dotnet/Inputs/AppMonitoringAppMonitoringAppMonitoringGetArgs.cs new file mode 100644 index 00000000..899214e0 --- /dev/null +++ b/sdk/dotnet/Inputs/AppMonitoringAppMonitoringAppMonitoringGetArgs.cs @@ -0,0 +1,33 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Pulumiverse.Dynatrace.Inputs +{ + + public sealed class AppMonitoringAppMonitoringAppMonitoringGetArgs : global::Pulumi.ResourceArgs + { + /// + /// App ID + /// + [Input("appId", required: true)] + public Input AppId { get; set; } = null!; + + /// + /// Possible Values: `Debug`, `Error`, `Info`, `Off`, `UseDefault`, `Warn` + /// + [Input("customLogLevel", required: true)] + public Input CustomLogLevel { get; set; } = null!; + + public AppMonitoringAppMonitoringAppMonitoringGetArgs() + { + } + public static new AppMonitoringAppMonitoringAppMonitoringGetArgs Empty => new AppMonitoringAppMonitoringAppMonitoringGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/AppMonitoringAppMonitoringArgs.cs b/sdk/dotnet/Inputs/AppMonitoringAppMonitoringArgs.cs new file mode 100644 index 00000000..1aace1ee --- /dev/null +++ b/sdk/dotnet/Inputs/AppMonitoringAppMonitoringArgs.cs @@ -0,0 +1,29 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Pulumiverse.Dynatrace.Inputs +{ + + public sealed class AppMonitoringAppMonitoringArgs : global::Pulumi.ResourceArgs + { + [Input("appMonitorings", required: true)] + private InputList? _appMonitorings; + public InputList AppMonitorings + { + get => _appMonitorings ?? (_appMonitorings = new InputList()); + set => _appMonitorings = value; + } + + public AppMonitoringAppMonitoringArgs() + { + } + public static new AppMonitoringAppMonitoringArgs Empty => new AppMonitoringAppMonitoringArgs(); + } +} diff --git a/sdk/dotnet/Inputs/AppMonitoringAppMonitoringGetArgs.cs b/sdk/dotnet/Inputs/AppMonitoringAppMonitoringGetArgs.cs new file mode 100644 index 00000000..a8e14f07 --- /dev/null +++ b/sdk/dotnet/Inputs/AppMonitoringAppMonitoringGetArgs.cs @@ -0,0 +1,29 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Pulumiverse.Dynatrace.Inputs +{ + + public sealed class AppMonitoringAppMonitoringGetArgs : global::Pulumi.ResourceArgs + { + [Input("appMonitorings", required: true)] + private InputList? _appMonitorings; + public InputList AppMonitorings + { + get => _appMonitorings ?? (_appMonitorings = new InputList()); + set => _appMonitorings = value; + } + + public AppMonitoringAppMonitoringGetArgs() + { + } + public static new AppMonitoringAppMonitoringGetArgs Empty => new AppMonitoringAppMonitoringGetArgs(); + } +} diff --git a/sdk/dotnet/Outputs/AppMonitoringAppMonitoring.cs b/sdk/dotnet/Outputs/AppMonitoringAppMonitoring.cs new file mode 100644 index 00000000..dd87dfa4 --- /dev/null +++ b/sdk/dotnet/Outputs/AppMonitoringAppMonitoring.cs @@ -0,0 +1,25 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Pulumiverse.Dynatrace.Outputs +{ + + [OutputType] + public sealed class AppMonitoringAppMonitoring + { + public readonly ImmutableArray AppMonitorings; + + [OutputConstructor] + private AppMonitoringAppMonitoring(ImmutableArray appMonitorings) + { + AppMonitorings = appMonitorings; + } + } +} diff --git a/sdk/dotnet/Outputs/AppMonitoringAppMonitoringAppMonitoring.cs b/sdk/dotnet/Outputs/AppMonitoringAppMonitoringAppMonitoring.cs new file mode 100644 index 00000000..a8f8f074 --- /dev/null +++ b/sdk/dotnet/Outputs/AppMonitoringAppMonitoringAppMonitoring.cs @@ -0,0 +1,36 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Pulumiverse.Dynatrace.Outputs +{ + + [OutputType] + public sealed class AppMonitoringAppMonitoringAppMonitoring + { + /// + /// App ID + /// + public readonly string AppId; + /// + /// Possible Values: `Debug`, `Error`, `Info`, `Off`, `UseDefault`, `Warn` + /// + public readonly string CustomLogLevel; + + [OutputConstructor] + private AppMonitoringAppMonitoringAppMonitoring( + string appId, + + string customLogLevel) + { + AppId = appId; + CustomLogLevel = customLogLevel; + } + } +} diff --git a/sdk/dotnet/Provider.cs b/sdk/dotnet/Provider.cs index f0b7edf4..bba18d6d 100644 --- a/sdk/dotnet/Provider.cs +++ b/sdk/dotnet/Provider.cs @@ -71,6 +71,12 @@ public partial class Provider : global::Pulumi.ProviderResource [Output("iamClientSecret")] public Output IamClientSecret { get; private set; } = null!; + [Output("iamEndpointUrl")] + public Output IamEndpointUrl { get; private set; } = null!; + + [Output("iamTokenUrl")] + public Output IamTokenUrl { get; private set; } = null!; + /// /// Create a Provider resource with the given unique name, arguments, and options. @@ -103,6 +109,8 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? "iamAccountId", "iamClientId", "iamClientSecret", + "iamEndpointUrl", + "iamTokenUrl", }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); @@ -265,6 +273,30 @@ public Input? IamClientSecret } } + [Input("iamEndpointUrl")] + private Input? _iamEndpointUrl; + public Input? IamEndpointUrl + { + get => _iamEndpointUrl; + set + { + var emptySecret = Output.CreateSecret(0); + _iamEndpointUrl = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + [Input("iamTokenUrl")] + private Input? _iamTokenUrl; + public Input? IamTokenUrl + { + get => _iamTokenUrl; + set + { + var emptySecret = Output.CreateSecret(0); + _iamTokenUrl = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + public ProviderArgs() { DtApiToken = Utilities.GetEnv("DYNATRACE_API_TOKEN", "DT_API_TOKEN"); diff --git a/sdk/go/dynatrace/appMonitoring.go b/sdk/go/dynatrace/appMonitoring.go index efb31125..53b25071 100644 --- a/sdk/go/dynatrace/appMonitoring.go +++ b/sdk/go/dynatrace/appMonitoring.go @@ -15,6 +15,8 @@ import ( type AppMonitoring struct { pulumi.CustomResourceState + // You can override the default monitoring setting for each app separately + AppMonitoring AppMonitoringAppMonitoringPtrOutput `pulumi:"appMonitoring"` // Possible Values: `All`, `Off` DefaultLogLevel pulumi.StringOutput `pulumi:"defaultLogLevel"` } @@ -52,11 +54,15 @@ func GetAppMonitoring(ctx *pulumi.Context, // Input properties used for looking up and filtering AppMonitoring resources. type appMonitoringState struct { + // You can override the default monitoring setting for each app separately + AppMonitoring *AppMonitoringAppMonitoring `pulumi:"appMonitoring"` // Possible Values: `All`, `Off` DefaultLogLevel *string `pulumi:"defaultLogLevel"` } type AppMonitoringState struct { + // You can override the default monitoring setting for each app separately + AppMonitoring AppMonitoringAppMonitoringPtrInput // Possible Values: `All`, `Off` DefaultLogLevel pulumi.StringPtrInput } @@ -66,12 +72,16 @@ func (AppMonitoringState) ElementType() reflect.Type { } type appMonitoringArgs struct { + // You can override the default monitoring setting for each app separately + AppMonitoring *AppMonitoringAppMonitoring `pulumi:"appMonitoring"` // Possible Values: `All`, `Off` DefaultLogLevel string `pulumi:"defaultLogLevel"` } // The set of arguments for constructing a AppMonitoring resource. type AppMonitoringArgs struct { + // You can override the default monitoring setting for each app separately + AppMonitoring AppMonitoringAppMonitoringPtrInput // Possible Values: `All`, `Off` DefaultLogLevel pulumi.StringInput } @@ -163,6 +173,11 @@ func (o AppMonitoringOutput) ToAppMonitoringOutputWithContext(ctx context.Contex return o } +// You can override the default monitoring setting for each app separately +func (o AppMonitoringOutput) AppMonitoring() AppMonitoringAppMonitoringPtrOutput { + return o.ApplyT(func(v *AppMonitoring) AppMonitoringAppMonitoringPtrOutput { return v.AppMonitoring }).(AppMonitoringAppMonitoringPtrOutput) +} + // Possible Values: `All`, `Off` func (o AppMonitoringOutput) DefaultLogLevel() pulumi.StringOutput { return o.ApplyT(func(v *AppMonitoring) pulumi.StringOutput { return v.DefaultLogLevel }).(pulumi.StringOutput) diff --git a/sdk/go/dynatrace/config/config.go b/sdk/go/dynatrace/config/config.go index f4f09ddc..653eda39 100644 --- a/sdk/go/dynatrace/config/config.go +++ b/sdk/go/dynatrace/config/config.go @@ -93,3 +93,9 @@ func GetIamClientId(ctx *pulumi.Context) string { func GetIamClientSecret(ctx *pulumi.Context) string { return config.Get(ctx, "dynatrace:iamClientSecret") } +func GetIamEndpointUrl(ctx *pulumi.Context) string { + return config.Get(ctx, "dynatrace:iamEndpointUrl") +} +func GetIamTokenUrl(ctx *pulumi.Context) string { + return config.Get(ctx, "dynatrace:iamTokenUrl") +} diff --git a/sdk/go/dynatrace/devobsGitOnprem.go b/sdk/go/dynatrace/devobsGitOnprem.go new file mode 100644 index 00000000..042de966 --- /dev/null +++ b/sdk/go/dynatrace/devobsGitOnprem.go @@ -0,0 +1,257 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package dynatrace + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace/internal" +) + +type DevobsGitOnprem struct { + pulumi.CustomResourceState + + // Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem` + GitProvider pulumi.StringOutput `pulumi:"gitProvider"` + // If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be + // set to `omit`. + IncludeCredentials pulumi.BoolPtrOutput `pulumi:"includeCredentials"` + // An HTTP/HTTPS URL of your server + Url pulumi.StringOutput `pulumi:"url"` +} + +// NewDevobsGitOnprem registers a new resource with the given unique name, arguments, and options. +func NewDevobsGitOnprem(ctx *pulumi.Context, + name string, args *DevobsGitOnpremArgs, opts ...pulumi.ResourceOption) (*DevobsGitOnprem, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.GitProvider == nil { + return nil, errors.New("invalid value for required argument 'GitProvider'") + } + if args.Url == nil { + return nil, errors.New("invalid value for required argument 'Url'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource DevobsGitOnprem + err := ctx.RegisterResource("dynatrace:index/devobsGitOnprem:DevobsGitOnprem", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetDevobsGitOnprem gets an existing DevobsGitOnprem resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetDevobsGitOnprem(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *DevobsGitOnpremState, opts ...pulumi.ResourceOption) (*DevobsGitOnprem, error) { + var resource DevobsGitOnprem + err := ctx.ReadResource("dynatrace:index/devobsGitOnprem:DevobsGitOnprem", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering DevobsGitOnprem resources. +type devobsGitOnpremState struct { + // Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem` + GitProvider *string `pulumi:"gitProvider"` + // If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be + // set to `omit`. + IncludeCredentials *bool `pulumi:"includeCredentials"` + // An HTTP/HTTPS URL of your server + Url *string `pulumi:"url"` +} + +type DevobsGitOnpremState struct { + // Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem` + GitProvider pulumi.StringPtrInput + // If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be + // set to `omit`. + IncludeCredentials pulumi.BoolPtrInput + // An HTTP/HTTPS URL of your server + Url pulumi.StringPtrInput +} + +func (DevobsGitOnpremState) ElementType() reflect.Type { + return reflect.TypeOf((*devobsGitOnpremState)(nil)).Elem() +} + +type devobsGitOnpremArgs struct { + // Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem` + GitProvider string `pulumi:"gitProvider"` + // If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be + // set to `omit`. + IncludeCredentials *bool `pulumi:"includeCredentials"` + // An HTTP/HTTPS URL of your server + Url string `pulumi:"url"` +} + +// The set of arguments for constructing a DevobsGitOnprem resource. +type DevobsGitOnpremArgs struct { + // Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem` + GitProvider pulumi.StringInput + // If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be + // set to `omit`. + IncludeCredentials pulumi.BoolPtrInput + // An HTTP/HTTPS URL of your server + Url pulumi.StringInput +} + +func (DevobsGitOnpremArgs) ElementType() reflect.Type { + return reflect.TypeOf((*devobsGitOnpremArgs)(nil)).Elem() +} + +type DevobsGitOnpremInput interface { + pulumi.Input + + ToDevobsGitOnpremOutput() DevobsGitOnpremOutput + ToDevobsGitOnpremOutputWithContext(ctx context.Context) DevobsGitOnpremOutput +} + +func (*DevobsGitOnprem) ElementType() reflect.Type { + return reflect.TypeOf((**DevobsGitOnprem)(nil)).Elem() +} + +func (i *DevobsGitOnprem) ToDevobsGitOnpremOutput() DevobsGitOnpremOutput { + return i.ToDevobsGitOnpremOutputWithContext(context.Background()) +} + +func (i *DevobsGitOnprem) ToDevobsGitOnpremOutputWithContext(ctx context.Context) DevobsGitOnpremOutput { + return pulumi.ToOutputWithContext(ctx, i).(DevobsGitOnpremOutput) +} + +// DevobsGitOnpremArrayInput is an input type that accepts DevobsGitOnpremArray and DevobsGitOnpremArrayOutput values. +// You can construct a concrete instance of `DevobsGitOnpremArrayInput` via: +// +// DevobsGitOnpremArray{ DevobsGitOnpremArgs{...} } +type DevobsGitOnpremArrayInput interface { + pulumi.Input + + ToDevobsGitOnpremArrayOutput() DevobsGitOnpremArrayOutput + ToDevobsGitOnpremArrayOutputWithContext(context.Context) DevobsGitOnpremArrayOutput +} + +type DevobsGitOnpremArray []DevobsGitOnpremInput + +func (DevobsGitOnpremArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*DevobsGitOnprem)(nil)).Elem() +} + +func (i DevobsGitOnpremArray) ToDevobsGitOnpremArrayOutput() DevobsGitOnpremArrayOutput { + return i.ToDevobsGitOnpremArrayOutputWithContext(context.Background()) +} + +func (i DevobsGitOnpremArray) ToDevobsGitOnpremArrayOutputWithContext(ctx context.Context) DevobsGitOnpremArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(DevobsGitOnpremArrayOutput) +} + +// DevobsGitOnpremMapInput is an input type that accepts DevobsGitOnpremMap and DevobsGitOnpremMapOutput values. +// You can construct a concrete instance of `DevobsGitOnpremMapInput` via: +// +// DevobsGitOnpremMap{ "key": DevobsGitOnpremArgs{...} } +type DevobsGitOnpremMapInput interface { + pulumi.Input + + ToDevobsGitOnpremMapOutput() DevobsGitOnpremMapOutput + ToDevobsGitOnpremMapOutputWithContext(context.Context) DevobsGitOnpremMapOutput +} + +type DevobsGitOnpremMap map[string]DevobsGitOnpremInput + +func (DevobsGitOnpremMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*DevobsGitOnprem)(nil)).Elem() +} + +func (i DevobsGitOnpremMap) ToDevobsGitOnpremMapOutput() DevobsGitOnpremMapOutput { + return i.ToDevobsGitOnpremMapOutputWithContext(context.Background()) +} + +func (i DevobsGitOnpremMap) ToDevobsGitOnpremMapOutputWithContext(ctx context.Context) DevobsGitOnpremMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(DevobsGitOnpremMapOutput) +} + +type DevobsGitOnpremOutput struct{ *pulumi.OutputState } + +func (DevobsGitOnpremOutput) ElementType() reflect.Type { + return reflect.TypeOf((**DevobsGitOnprem)(nil)).Elem() +} + +func (o DevobsGitOnpremOutput) ToDevobsGitOnpremOutput() DevobsGitOnpremOutput { + return o +} + +func (o DevobsGitOnpremOutput) ToDevobsGitOnpremOutputWithContext(ctx context.Context) DevobsGitOnpremOutput { + return o +} + +// Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem` +func (o DevobsGitOnpremOutput) GitProvider() pulumi.StringOutput { + return o.ApplyT(func(v *DevobsGitOnprem) pulumi.StringOutput { return v.GitProvider }).(pulumi.StringOutput) +} + +// If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be +// set to `omit`. +func (o DevobsGitOnpremOutput) IncludeCredentials() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *DevobsGitOnprem) pulumi.BoolPtrOutput { return v.IncludeCredentials }).(pulumi.BoolPtrOutput) +} + +// An HTTP/HTTPS URL of your server +func (o DevobsGitOnpremOutput) Url() pulumi.StringOutput { + return o.ApplyT(func(v *DevobsGitOnprem) pulumi.StringOutput { return v.Url }).(pulumi.StringOutput) +} + +type DevobsGitOnpremArrayOutput struct{ *pulumi.OutputState } + +func (DevobsGitOnpremArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*DevobsGitOnprem)(nil)).Elem() +} + +func (o DevobsGitOnpremArrayOutput) ToDevobsGitOnpremArrayOutput() DevobsGitOnpremArrayOutput { + return o +} + +func (o DevobsGitOnpremArrayOutput) ToDevobsGitOnpremArrayOutputWithContext(ctx context.Context) DevobsGitOnpremArrayOutput { + return o +} + +func (o DevobsGitOnpremArrayOutput) Index(i pulumi.IntInput) DevobsGitOnpremOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DevobsGitOnprem { + return vs[0].([]*DevobsGitOnprem)[vs[1].(int)] + }).(DevobsGitOnpremOutput) +} + +type DevobsGitOnpremMapOutput struct{ *pulumi.OutputState } + +func (DevobsGitOnpremMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*DevobsGitOnprem)(nil)).Elem() +} + +func (o DevobsGitOnpremMapOutput) ToDevobsGitOnpremMapOutput() DevobsGitOnpremMapOutput { + return o +} + +func (o DevobsGitOnpremMapOutput) ToDevobsGitOnpremMapOutputWithContext(ctx context.Context) DevobsGitOnpremMapOutput { + return o +} + +func (o DevobsGitOnpremMapOutput) MapIndex(k pulumi.StringInput) DevobsGitOnpremOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DevobsGitOnprem { + return vs[0].(map[string]*DevobsGitOnprem)[vs[1].(string)] + }).(DevobsGitOnpremOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*DevobsGitOnpremInput)(nil)).Elem(), &DevobsGitOnprem{}) + pulumi.RegisterInputType(reflect.TypeOf((*DevobsGitOnpremArrayInput)(nil)).Elem(), DevobsGitOnpremArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*DevobsGitOnpremMapInput)(nil)).Elem(), DevobsGitOnpremMap{}) + pulumi.RegisterOutputType(DevobsGitOnpremOutput{}) + pulumi.RegisterOutputType(DevobsGitOnpremArrayOutput{}) + pulumi.RegisterOutputType(DevobsGitOnpremMapOutput{}) +} diff --git a/sdk/go/dynatrace/init.go b/sdk/go/dynatrace/init.go index c304ccba..6e945f91 100644 --- a/sdk/go/dynatrace/init.go +++ b/sdk/go/dynatrace/init.go @@ -187,6 +187,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi r = &DduPool{} case "dynatrace:index/declarativeGrouping:DeclarativeGrouping": r = &DeclarativeGrouping{} + case "dynatrace:index/devobsGitOnprem:DevobsGitOnprem": + r = &DevobsGitOnprem{} case "dynatrace:index/directShares:DirectShares": r = &DirectShares{} case "dynatrace:index/discoveryDefaultRules:DiscoveryDefaultRules": @@ -1097,6 +1099,11 @@ func init() { "index/declarativeGrouping", &module{version}, ) + pulumi.RegisterResourceModule( + "dynatrace", + "index/devobsGitOnprem", + &module{version}, + ) pulumi.RegisterResourceModule( "dynatrace", "index/directShares", diff --git a/sdk/go/dynatrace/provider.go b/sdk/go/dynatrace/provider.go index d37bbc76..e0c6d0aa 100644 --- a/sdk/go/dynatrace/provider.go +++ b/sdk/go/dynatrace/provider.go @@ -38,6 +38,8 @@ type Provider struct { IamAccountId pulumi.StringPtrOutput `pulumi:"iamAccountId"` IamClientId pulumi.StringPtrOutput `pulumi:"iamClientId"` IamClientSecret pulumi.StringPtrOutput `pulumi:"iamClientSecret"` + IamEndpointUrl pulumi.StringPtrOutput `pulumi:"iamEndpointUrl"` + IamTokenUrl pulumi.StringPtrOutput `pulumi:"iamTokenUrl"` } // NewProvider registers a new resource with the given unique name, arguments, and options. @@ -100,6 +102,12 @@ func NewProvider(ctx *pulumi.Context, if args.IamClientSecret != nil { args.IamClientSecret = pulumi.ToSecret(args.IamClientSecret).(pulumi.StringPtrInput) } + if args.IamEndpointUrl != nil { + args.IamEndpointUrl = pulumi.ToSecret(args.IamEndpointUrl).(pulumi.StringPtrInput) + } + if args.IamTokenUrl != nil { + args.IamTokenUrl = pulumi.ToSecret(args.IamTokenUrl).(pulumi.StringPtrInput) + } secrets := pulumi.AdditionalSecretOutputs([]string{ "accountId", "automationClientId", @@ -112,6 +120,8 @@ func NewProvider(ctx *pulumi.Context, "iamAccountId", "iamClientId", "iamClientSecret", + "iamEndpointUrl", + "iamTokenUrl", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) @@ -144,6 +154,8 @@ type providerArgs struct { IamAccountId *string `pulumi:"iamAccountId"` IamClientId *string `pulumi:"iamClientId"` IamClientSecret *string `pulumi:"iamClientSecret"` + IamEndpointUrl *string `pulumi:"iamEndpointUrl"` + IamTokenUrl *string `pulumi:"iamTokenUrl"` } // The set of arguments for constructing a Provider resource. @@ -168,6 +180,8 @@ type ProviderArgs struct { IamAccountId pulumi.StringPtrInput IamClientId pulumi.StringPtrInput IamClientSecret pulumi.StringPtrInput + IamEndpointUrl pulumi.StringPtrInput + IamTokenUrl pulumi.StringPtrInput } func (ProviderArgs) ElementType() reflect.Type { @@ -269,6 +283,14 @@ func (o ProviderOutput) IamClientSecret() pulumi.StringPtrOutput { return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.IamClientSecret }).(pulumi.StringPtrOutput) } +func (o ProviderOutput) IamEndpointUrl() pulumi.StringPtrOutput { + return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.IamEndpointUrl }).(pulumi.StringPtrOutput) +} + +func (o ProviderOutput) IamTokenUrl() pulumi.StringPtrOutput { + return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.IamTokenUrl }).(pulumi.StringPtrOutput) +} + func init() { pulumi.RegisterInputType(reflect.TypeOf((*ProviderInput)(nil)).Elem(), &Provider{}) pulumi.RegisterOutputType(ProviderOutput{}) diff --git a/sdk/go/dynatrace/pulumiTypes.go b/sdk/go/dynatrace/pulumiTypes.go index 4cd943e5..0971d134 100644 --- a/sdk/go/dynatrace/pulumiTypes.go +++ b/sdk/go/dynatrace/pulumiTypes.go @@ -3083,6 +3083,245 @@ func (o ApiDetectionConditionsConditionArrayOutput) Index(i pulumi.IntInput) Api }).(ApiDetectionConditionsConditionOutput) } +type AppMonitoringAppMonitoring struct { + AppMonitorings []AppMonitoringAppMonitoringAppMonitoring `pulumi:"appMonitorings"` +} + +// AppMonitoringAppMonitoringInput is an input type that accepts AppMonitoringAppMonitoringArgs and AppMonitoringAppMonitoringOutput values. +// You can construct a concrete instance of `AppMonitoringAppMonitoringInput` via: +// +// AppMonitoringAppMonitoringArgs{...} +type AppMonitoringAppMonitoringInput interface { + pulumi.Input + + ToAppMonitoringAppMonitoringOutput() AppMonitoringAppMonitoringOutput + ToAppMonitoringAppMonitoringOutputWithContext(context.Context) AppMonitoringAppMonitoringOutput +} + +type AppMonitoringAppMonitoringArgs struct { + AppMonitorings AppMonitoringAppMonitoringAppMonitoringArrayInput `pulumi:"appMonitorings"` +} + +func (AppMonitoringAppMonitoringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*AppMonitoringAppMonitoring)(nil)).Elem() +} + +func (i AppMonitoringAppMonitoringArgs) ToAppMonitoringAppMonitoringOutput() AppMonitoringAppMonitoringOutput { + return i.ToAppMonitoringAppMonitoringOutputWithContext(context.Background()) +} + +func (i AppMonitoringAppMonitoringArgs) ToAppMonitoringAppMonitoringOutputWithContext(ctx context.Context) AppMonitoringAppMonitoringOutput { + return pulumi.ToOutputWithContext(ctx, i).(AppMonitoringAppMonitoringOutput) +} + +func (i AppMonitoringAppMonitoringArgs) ToAppMonitoringAppMonitoringPtrOutput() AppMonitoringAppMonitoringPtrOutput { + return i.ToAppMonitoringAppMonitoringPtrOutputWithContext(context.Background()) +} + +func (i AppMonitoringAppMonitoringArgs) ToAppMonitoringAppMonitoringPtrOutputWithContext(ctx context.Context) AppMonitoringAppMonitoringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(AppMonitoringAppMonitoringOutput).ToAppMonitoringAppMonitoringPtrOutputWithContext(ctx) +} + +// AppMonitoringAppMonitoringPtrInput is an input type that accepts AppMonitoringAppMonitoringArgs, AppMonitoringAppMonitoringPtr and AppMonitoringAppMonitoringPtrOutput values. +// You can construct a concrete instance of `AppMonitoringAppMonitoringPtrInput` via: +// +// AppMonitoringAppMonitoringArgs{...} +// +// or: +// +// nil +type AppMonitoringAppMonitoringPtrInput interface { + pulumi.Input + + ToAppMonitoringAppMonitoringPtrOutput() AppMonitoringAppMonitoringPtrOutput + ToAppMonitoringAppMonitoringPtrOutputWithContext(context.Context) AppMonitoringAppMonitoringPtrOutput +} + +type appMonitoringAppMonitoringPtrType AppMonitoringAppMonitoringArgs + +func AppMonitoringAppMonitoringPtr(v *AppMonitoringAppMonitoringArgs) AppMonitoringAppMonitoringPtrInput { + return (*appMonitoringAppMonitoringPtrType)(v) +} + +func (*appMonitoringAppMonitoringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**AppMonitoringAppMonitoring)(nil)).Elem() +} + +func (i *appMonitoringAppMonitoringPtrType) ToAppMonitoringAppMonitoringPtrOutput() AppMonitoringAppMonitoringPtrOutput { + return i.ToAppMonitoringAppMonitoringPtrOutputWithContext(context.Background()) +} + +func (i *appMonitoringAppMonitoringPtrType) ToAppMonitoringAppMonitoringPtrOutputWithContext(ctx context.Context) AppMonitoringAppMonitoringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(AppMonitoringAppMonitoringPtrOutput) +} + +type AppMonitoringAppMonitoringOutput struct{ *pulumi.OutputState } + +func (AppMonitoringAppMonitoringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*AppMonitoringAppMonitoring)(nil)).Elem() +} + +func (o AppMonitoringAppMonitoringOutput) ToAppMonitoringAppMonitoringOutput() AppMonitoringAppMonitoringOutput { + return o +} + +func (o AppMonitoringAppMonitoringOutput) ToAppMonitoringAppMonitoringOutputWithContext(ctx context.Context) AppMonitoringAppMonitoringOutput { + return o +} + +func (o AppMonitoringAppMonitoringOutput) ToAppMonitoringAppMonitoringPtrOutput() AppMonitoringAppMonitoringPtrOutput { + return o.ToAppMonitoringAppMonitoringPtrOutputWithContext(context.Background()) +} + +func (o AppMonitoringAppMonitoringOutput) ToAppMonitoringAppMonitoringPtrOutputWithContext(ctx context.Context) AppMonitoringAppMonitoringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v AppMonitoringAppMonitoring) *AppMonitoringAppMonitoring { + return &v + }).(AppMonitoringAppMonitoringPtrOutput) +} + +func (o AppMonitoringAppMonitoringOutput) AppMonitorings() AppMonitoringAppMonitoringAppMonitoringArrayOutput { + return o.ApplyT(func(v AppMonitoringAppMonitoring) []AppMonitoringAppMonitoringAppMonitoring { return v.AppMonitorings }).(AppMonitoringAppMonitoringAppMonitoringArrayOutput) +} + +type AppMonitoringAppMonitoringPtrOutput struct{ *pulumi.OutputState } + +func (AppMonitoringAppMonitoringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**AppMonitoringAppMonitoring)(nil)).Elem() +} + +func (o AppMonitoringAppMonitoringPtrOutput) ToAppMonitoringAppMonitoringPtrOutput() AppMonitoringAppMonitoringPtrOutput { + return o +} + +func (o AppMonitoringAppMonitoringPtrOutput) ToAppMonitoringAppMonitoringPtrOutputWithContext(ctx context.Context) AppMonitoringAppMonitoringPtrOutput { + return o +} + +func (o AppMonitoringAppMonitoringPtrOutput) Elem() AppMonitoringAppMonitoringOutput { + return o.ApplyT(func(v *AppMonitoringAppMonitoring) AppMonitoringAppMonitoring { + if v != nil { + return *v + } + var ret AppMonitoringAppMonitoring + return ret + }).(AppMonitoringAppMonitoringOutput) +} + +func (o AppMonitoringAppMonitoringPtrOutput) AppMonitorings() AppMonitoringAppMonitoringAppMonitoringArrayOutput { + return o.ApplyT(func(v *AppMonitoringAppMonitoring) []AppMonitoringAppMonitoringAppMonitoring { + if v == nil { + return nil + } + return v.AppMonitorings + }).(AppMonitoringAppMonitoringAppMonitoringArrayOutput) +} + +type AppMonitoringAppMonitoringAppMonitoring struct { + // App ID + AppId string `pulumi:"appId"` + // Possible Values: `Debug`, `Error`, `Info`, `Off`, `UseDefault`, `Warn` + CustomLogLevel string `pulumi:"customLogLevel"` +} + +// AppMonitoringAppMonitoringAppMonitoringInput is an input type that accepts AppMonitoringAppMonitoringAppMonitoringArgs and AppMonitoringAppMonitoringAppMonitoringOutput values. +// You can construct a concrete instance of `AppMonitoringAppMonitoringAppMonitoringInput` via: +// +// AppMonitoringAppMonitoringAppMonitoringArgs{...} +type AppMonitoringAppMonitoringAppMonitoringInput interface { + pulumi.Input + + ToAppMonitoringAppMonitoringAppMonitoringOutput() AppMonitoringAppMonitoringAppMonitoringOutput + ToAppMonitoringAppMonitoringAppMonitoringOutputWithContext(context.Context) AppMonitoringAppMonitoringAppMonitoringOutput +} + +type AppMonitoringAppMonitoringAppMonitoringArgs struct { + // App ID + AppId pulumi.StringInput `pulumi:"appId"` + // Possible Values: `Debug`, `Error`, `Info`, `Off`, `UseDefault`, `Warn` + CustomLogLevel pulumi.StringInput `pulumi:"customLogLevel"` +} + +func (AppMonitoringAppMonitoringAppMonitoringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*AppMonitoringAppMonitoringAppMonitoring)(nil)).Elem() +} + +func (i AppMonitoringAppMonitoringAppMonitoringArgs) ToAppMonitoringAppMonitoringAppMonitoringOutput() AppMonitoringAppMonitoringAppMonitoringOutput { + return i.ToAppMonitoringAppMonitoringAppMonitoringOutputWithContext(context.Background()) +} + +func (i AppMonitoringAppMonitoringAppMonitoringArgs) ToAppMonitoringAppMonitoringAppMonitoringOutputWithContext(ctx context.Context) AppMonitoringAppMonitoringAppMonitoringOutput { + return pulumi.ToOutputWithContext(ctx, i).(AppMonitoringAppMonitoringAppMonitoringOutput) +} + +// AppMonitoringAppMonitoringAppMonitoringArrayInput is an input type that accepts AppMonitoringAppMonitoringAppMonitoringArray and AppMonitoringAppMonitoringAppMonitoringArrayOutput values. +// You can construct a concrete instance of `AppMonitoringAppMonitoringAppMonitoringArrayInput` via: +// +// AppMonitoringAppMonitoringAppMonitoringArray{ AppMonitoringAppMonitoringAppMonitoringArgs{...} } +type AppMonitoringAppMonitoringAppMonitoringArrayInput interface { + pulumi.Input + + ToAppMonitoringAppMonitoringAppMonitoringArrayOutput() AppMonitoringAppMonitoringAppMonitoringArrayOutput + ToAppMonitoringAppMonitoringAppMonitoringArrayOutputWithContext(context.Context) AppMonitoringAppMonitoringAppMonitoringArrayOutput +} + +type AppMonitoringAppMonitoringAppMonitoringArray []AppMonitoringAppMonitoringAppMonitoringInput + +func (AppMonitoringAppMonitoringAppMonitoringArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]AppMonitoringAppMonitoringAppMonitoring)(nil)).Elem() +} + +func (i AppMonitoringAppMonitoringAppMonitoringArray) ToAppMonitoringAppMonitoringAppMonitoringArrayOutput() AppMonitoringAppMonitoringAppMonitoringArrayOutput { + return i.ToAppMonitoringAppMonitoringAppMonitoringArrayOutputWithContext(context.Background()) +} + +func (i AppMonitoringAppMonitoringAppMonitoringArray) ToAppMonitoringAppMonitoringAppMonitoringArrayOutputWithContext(ctx context.Context) AppMonitoringAppMonitoringAppMonitoringArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(AppMonitoringAppMonitoringAppMonitoringArrayOutput) +} + +type AppMonitoringAppMonitoringAppMonitoringOutput struct{ *pulumi.OutputState } + +func (AppMonitoringAppMonitoringAppMonitoringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*AppMonitoringAppMonitoringAppMonitoring)(nil)).Elem() +} + +func (o AppMonitoringAppMonitoringAppMonitoringOutput) ToAppMonitoringAppMonitoringAppMonitoringOutput() AppMonitoringAppMonitoringAppMonitoringOutput { + return o +} + +func (o AppMonitoringAppMonitoringAppMonitoringOutput) ToAppMonitoringAppMonitoringAppMonitoringOutputWithContext(ctx context.Context) AppMonitoringAppMonitoringAppMonitoringOutput { + return o +} + +// App ID +func (o AppMonitoringAppMonitoringAppMonitoringOutput) AppId() pulumi.StringOutput { + return o.ApplyT(func(v AppMonitoringAppMonitoringAppMonitoring) string { return v.AppId }).(pulumi.StringOutput) +} + +// Possible Values: `Debug`, `Error`, `Info`, `Off`, `UseDefault`, `Warn` +func (o AppMonitoringAppMonitoringAppMonitoringOutput) CustomLogLevel() pulumi.StringOutput { + return o.ApplyT(func(v AppMonitoringAppMonitoringAppMonitoring) string { return v.CustomLogLevel }).(pulumi.StringOutput) +} + +type AppMonitoringAppMonitoringAppMonitoringArrayOutput struct{ *pulumi.OutputState } + +func (AppMonitoringAppMonitoringAppMonitoringArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]AppMonitoringAppMonitoringAppMonitoring)(nil)).Elem() +} + +func (o AppMonitoringAppMonitoringAppMonitoringArrayOutput) ToAppMonitoringAppMonitoringAppMonitoringArrayOutput() AppMonitoringAppMonitoringAppMonitoringArrayOutput { + return o +} + +func (o AppMonitoringAppMonitoringAppMonitoringArrayOutput) ToAppMonitoringAppMonitoringAppMonitoringArrayOutputWithContext(ctx context.Context) AppMonitoringAppMonitoringAppMonitoringArrayOutput { + return o +} + +func (o AppMonitoringAppMonitoringAppMonitoringArrayOutput) Index(i pulumi.IntInput) AppMonitoringAppMonitoringAppMonitoringOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) AppMonitoringAppMonitoringAppMonitoring { + return vs[0].([]AppMonitoringAppMonitoringAppMonitoring)[vs[1].(int)] + }).(AppMonitoringAppMonitoringAppMonitoringOutput) +} + type ApplicationAnomaliesFailureRate struct { // Parameters of failure rate increase auto-detection. Example: If the expected error rate is 1.5%, and you set an absolute increase of 1%, and a relative increase of 50%, the thresholds will be: Absolute: 1.5% + **1%** = 2.5% Relative: 1.5% + 1.5% * **50%** = 2.25% Auto *ApplicationAnomaliesFailureRateAuto `pulumi:"auto"` @@ -77247,356 +77486,6 @@ func (o DatabaseAnomaliesV2FailureRateFixedDetectionOverAlertingProtectionPtrOut }).(pulumi.Float64PtrOutput) } -type DatabaseAnomaliesV2LoadDrops struct { - // Detect service load drops - Enabled bool `pulumi:"enabled"` - // Threshold - LoadDropPercent *float64 `pulumi:"loadDropPercent"` - // Time span - MinutesAbnormalState *int `pulumi:"minutesAbnormalState"` -} - -// DatabaseAnomaliesV2LoadDropsInput is an input type that accepts DatabaseAnomaliesV2LoadDropsArgs and DatabaseAnomaliesV2LoadDropsOutput values. -// You can construct a concrete instance of `DatabaseAnomaliesV2LoadDropsInput` via: -// -// DatabaseAnomaliesV2LoadDropsArgs{...} -type DatabaseAnomaliesV2LoadDropsInput interface { - pulumi.Input - - ToDatabaseAnomaliesV2LoadDropsOutput() DatabaseAnomaliesV2LoadDropsOutput - ToDatabaseAnomaliesV2LoadDropsOutputWithContext(context.Context) DatabaseAnomaliesV2LoadDropsOutput -} - -type DatabaseAnomaliesV2LoadDropsArgs struct { - // Detect service load drops - Enabled pulumi.BoolInput `pulumi:"enabled"` - // Threshold - LoadDropPercent pulumi.Float64PtrInput `pulumi:"loadDropPercent"` - // Time span - MinutesAbnormalState pulumi.IntPtrInput `pulumi:"minutesAbnormalState"` -} - -func (DatabaseAnomaliesV2LoadDropsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*DatabaseAnomaliesV2LoadDrops)(nil)).Elem() -} - -func (i DatabaseAnomaliesV2LoadDropsArgs) ToDatabaseAnomaliesV2LoadDropsOutput() DatabaseAnomaliesV2LoadDropsOutput { - return i.ToDatabaseAnomaliesV2LoadDropsOutputWithContext(context.Background()) -} - -func (i DatabaseAnomaliesV2LoadDropsArgs) ToDatabaseAnomaliesV2LoadDropsOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadDropsOutput { - return pulumi.ToOutputWithContext(ctx, i).(DatabaseAnomaliesV2LoadDropsOutput) -} - -func (i DatabaseAnomaliesV2LoadDropsArgs) ToDatabaseAnomaliesV2LoadDropsPtrOutput() DatabaseAnomaliesV2LoadDropsPtrOutput { - return i.ToDatabaseAnomaliesV2LoadDropsPtrOutputWithContext(context.Background()) -} - -func (i DatabaseAnomaliesV2LoadDropsArgs) ToDatabaseAnomaliesV2LoadDropsPtrOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadDropsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(DatabaseAnomaliesV2LoadDropsOutput).ToDatabaseAnomaliesV2LoadDropsPtrOutputWithContext(ctx) -} - -// DatabaseAnomaliesV2LoadDropsPtrInput is an input type that accepts DatabaseAnomaliesV2LoadDropsArgs, DatabaseAnomaliesV2LoadDropsPtr and DatabaseAnomaliesV2LoadDropsPtrOutput values. -// You can construct a concrete instance of `DatabaseAnomaliesV2LoadDropsPtrInput` via: -// -// DatabaseAnomaliesV2LoadDropsArgs{...} -// -// or: -// -// nil -type DatabaseAnomaliesV2LoadDropsPtrInput interface { - pulumi.Input - - ToDatabaseAnomaliesV2LoadDropsPtrOutput() DatabaseAnomaliesV2LoadDropsPtrOutput - ToDatabaseAnomaliesV2LoadDropsPtrOutputWithContext(context.Context) DatabaseAnomaliesV2LoadDropsPtrOutput -} - -type databaseAnomaliesV2LoadDropsPtrType DatabaseAnomaliesV2LoadDropsArgs - -func DatabaseAnomaliesV2LoadDropsPtr(v *DatabaseAnomaliesV2LoadDropsArgs) DatabaseAnomaliesV2LoadDropsPtrInput { - return (*databaseAnomaliesV2LoadDropsPtrType)(v) -} - -func (*databaseAnomaliesV2LoadDropsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**DatabaseAnomaliesV2LoadDrops)(nil)).Elem() -} - -func (i *databaseAnomaliesV2LoadDropsPtrType) ToDatabaseAnomaliesV2LoadDropsPtrOutput() DatabaseAnomaliesV2LoadDropsPtrOutput { - return i.ToDatabaseAnomaliesV2LoadDropsPtrOutputWithContext(context.Background()) -} - -func (i *databaseAnomaliesV2LoadDropsPtrType) ToDatabaseAnomaliesV2LoadDropsPtrOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadDropsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(DatabaseAnomaliesV2LoadDropsPtrOutput) -} - -type DatabaseAnomaliesV2LoadDropsOutput struct{ *pulumi.OutputState } - -func (DatabaseAnomaliesV2LoadDropsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*DatabaseAnomaliesV2LoadDrops)(nil)).Elem() -} - -func (o DatabaseAnomaliesV2LoadDropsOutput) ToDatabaseAnomaliesV2LoadDropsOutput() DatabaseAnomaliesV2LoadDropsOutput { - return o -} - -func (o DatabaseAnomaliesV2LoadDropsOutput) ToDatabaseAnomaliesV2LoadDropsOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadDropsOutput { - return o -} - -func (o DatabaseAnomaliesV2LoadDropsOutput) ToDatabaseAnomaliesV2LoadDropsPtrOutput() DatabaseAnomaliesV2LoadDropsPtrOutput { - return o.ToDatabaseAnomaliesV2LoadDropsPtrOutputWithContext(context.Background()) -} - -func (o DatabaseAnomaliesV2LoadDropsOutput) ToDatabaseAnomaliesV2LoadDropsPtrOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadDropsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v DatabaseAnomaliesV2LoadDrops) *DatabaseAnomaliesV2LoadDrops { - return &v - }).(DatabaseAnomaliesV2LoadDropsPtrOutput) -} - -// Detect service load drops -func (o DatabaseAnomaliesV2LoadDropsOutput) Enabled() pulumi.BoolOutput { - return o.ApplyT(func(v DatabaseAnomaliesV2LoadDrops) bool { return v.Enabled }).(pulumi.BoolOutput) -} - -// Threshold -func (o DatabaseAnomaliesV2LoadDropsOutput) LoadDropPercent() pulumi.Float64PtrOutput { - return o.ApplyT(func(v DatabaseAnomaliesV2LoadDrops) *float64 { return v.LoadDropPercent }).(pulumi.Float64PtrOutput) -} - -// Time span -func (o DatabaseAnomaliesV2LoadDropsOutput) MinutesAbnormalState() pulumi.IntPtrOutput { - return o.ApplyT(func(v DatabaseAnomaliesV2LoadDrops) *int { return v.MinutesAbnormalState }).(pulumi.IntPtrOutput) -} - -type DatabaseAnomaliesV2LoadDropsPtrOutput struct{ *pulumi.OutputState } - -func (DatabaseAnomaliesV2LoadDropsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**DatabaseAnomaliesV2LoadDrops)(nil)).Elem() -} - -func (o DatabaseAnomaliesV2LoadDropsPtrOutput) ToDatabaseAnomaliesV2LoadDropsPtrOutput() DatabaseAnomaliesV2LoadDropsPtrOutput { - return o -} - -func (o DatabaseAnomaliesV2LoadDropsPtrOutput) ToDatabaseAnomaliesV2LoadDropsPtrOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadDropsPtrOutput { - return o -} - -func (o DatabaseAnomaliesV2LoadDropsPtrOutput) Elem() DatabaseAnomaliesV2LoadDropsOutput { - return o.ApplyT(func(v *DatabaseAnomaliesV2LoadDrops) DatabaseAnomaliesV2LoadDrops { - if v != nil { - return *v - } - var ret DatabaseAnomaliesV2LoadDrops - return ret - }).(DatabaseAnomaliesV2LoadDropsOutput) -} - -// Detect service load drops -func (o DatabaseAnomaliesV2LoadDropsPtrOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *DatabaseAnomaliesV2LoadDrops) *bool { - if v == nil { - return nil - } - return &v.Enabled - }).(pulumi.BoolPtrOutput) -} - -// Threshold -func (o DatabaseAnomaliesV2LoadDropsPtrOutput) LoadDropPercent() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *DatabaseAnomaliesV2LoadDrops) *float64 { - if v == nil { - return nil - } - return v.LoadDropPercent - }).(pulumi.Float64PtrOutput) -} - -// Time span -func (o DatabaseAnomaliesV2LoadDropsPtrOutput) MinutesAbnormalState() pulumi.IntPtrOutput { - return o.ApplyT(func(v *DatabaseAnomaliesV2LoadDrops) *int { - if v == nil { - return nil - } - return v.MinutesAbnormalState - }).(pulumi.IntPtrOutput) -} - -type DatabaseAnomaliesV2LoadSpikes struct { - // Detect service load spikes - Enabled bool `pulumi:"enabled"` - // Threshold - LoadSpikePercent *float64 `pulumi:"loadSpikePercent"` - // Time span - MinutesAbnormalState *int `pulumi:"minutesAbnormalState"` -} - -// DatabaseAnomaliesV2LoadSpikesInput is an input type that accepts DatabaseAnomaliesV2LoadSpikesArgs and DatabaseAnomaliesV2LoadSpikesOutput values. -// You can construct a concrete instance of `DatabaseAnomaliesV2LoadSpikesInput` via: -// -// DatabaseAnomaliesV2LoadSpikesArgs{...} -type DatabaseAnomaliesV2LoadSpikesInput interface { - pulumi.Input - - ToDatabaseAnomaliesV2LoadSpikesOutput() DatabaseAnomaliesV2LoadSpikesOutput - ToDatabaseAnomaliesV2LoadSpikesOutputWithContext(context.Context) DatabaseAnomaliesV2LoadSpikesOutput -} - -type DatabaseAnomaliesV2LoadSpikesArgs struct { - // Detect service load spikes - Enabled pulumi.BoolInput `pulumi:"enabled"` - // Threshold - LoadSpikePercent pulumi.Float64PtrInput `pulumi:"loadSpikePercent"` - // Time span - MinutesAbnormalState pulumi.IntPtrInput `pulumi:"minutesAbnormalState"` -} - -func (DatabaseAnomaliesV2LoadSpikesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*DatabaseAnomaliesV2LoadSpikes)(nil)).Elem() -} - -func (i DatabaseAnomaliesV2LoadSpikesArgs) ToDatabaseAnomaliesV2LoadSpikesOutput() DatabaseAnomaliesV2LoadSpikesOutput { - return i.ToDatabaseAnomaliesV2LoadSpikesOutputWithContext(context.Background()) -} - -func (i DatabaseAnomaliesV2LoadSpikesArgs) ToDatabaseAnomaliesV2LoadSpikesOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadSpikesOutput { - return pulumi.ToOutputWithContext(ctx, i).(DatabaseAnomaliesV2LoadSpikesOutput) -} - -func (i DatabaseAnomaliesV2LoadSpikesArgs) ToDatabaseAnomaliesV2LoadSpikesPtrOutput() DatabaseAnomaliesV2LoadSpikesPtrOutput { - return i.ToDatabaseAnomaliesV2LoadSpikesPtrOutputWithContext(context.Background()) -} - -func (i DatabaseAnomaliesV2LoadSpikesArgs) ToDatabaseAnomaliesV2LoadSpikesPtrOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadSpikesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(DatabaseAnomaliesV2LoadSpikesOutput).ToDatabaseAnomaliesV2LoadSpikesPtrOutputWithContext(ctx) -} - -// DatabaseAnomaliesV2LoadSpikesPtrInput is an input type that accepts DatabaseAnomaliesV2LoadSpikesArgs, DatabaseAnomaliesV2LoadSpikesPtr and DatabaseAnomaliesV2LoadSpikesPtrOutput values. -// You can construct a concrete instance of `DatabaseAnomaliesV2LoadSpikesPtrInput` via: -// -// DatabaseAnomaliesV2LoadSpikesArgs{...} -// -// or: -// -// nil -type DatabaseAnomaliesV2LoadSpikesPtrInput interface { - pulumi.Input - - ToDatabaseAnomaliesV2LoadSpikesPtrOutput() DatabaseAnomaliesV2LoadSpikesPtrOutput - ToDatabaseAnomaliesV2LoadSpikesPtrOutputWithContext(context.Context) DatabaseAnomaliesV2LoadSpikesPtrOutput -} - -type databaseAnomaliesV2LoadSpikesPtrType DatabaseAnomaliesV2LoadSpikesArgs - -func DatabaseAnomaliesV2LoadSpikesPtr(v *DatabaseAnomaliesV2LoadSpikesArgs) DatabaseAnomaliesV2LoadSpikesPtrInput { - return (*databaseAnomaliesV2LoadSpikesPtrType)(v) -} - -func (*databaseAnomaliesV2LoadSpikesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**DatabaseAnomaliesV2LoadSpikes)(nil)).Elem() -} - -func (i *databaseAnomaliesV2LoadSpikesPtrType) ToDatabaseAnomaliesV2LoadSpikesPtrOutput() DatabaseAnomaliesV2LoadSpikesPtrOutput { - return i.ToDatabaseAnomaliesV2LoadSpikesPtrOutputWithContext(context.Background()) -} - -func (i *databaseAnomaliesV2LoadSpikesPtrType) ToDatabaseAnomaliesV2LoadSpikesPtrOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadSpikesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(DatabaseAnomaliesV2LoadSpikesPtrOutput) -} - -type DatabaseAnomaliesV2LoadSpikesOutput struct{ *pulumi.OutputState } - -func (DatabaseAnomaliesV2LoadSpikesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*DatabaseAnomaliesV2LoadSpikes)(nil)).Elem() -} - -func (o DatabaseAnomaliesV2LoadSpikesOutput) ToDatabaseAnomaliesV2LoadSpikesOutput() DatabaseAnomaliesV2LoadSpikesOutput { - return o -} - -func (o DatabaseAnomaliesV2LoadSpikesOutput) ToDatabaseAnomaliesV2LoadSpikesOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadSpikesOutput { - return o -} - -func (o DatabaseAnomaliesV2LoadSpikesOutput) ToDatabaseAnomaliesV2LoadSpikesPtrOutput() DatabaseAnomaliesV2LoadSpikesPtrOutput { - return o.ToDatabaseAnomaliesV2LoadSpikesPtrOutputWithContext(context.Background()) -} - -func (o DatabaseAnomaliesV2LoadSpikesOutput) ToDatabaseAnomaliesV2LoadSpikesPtrOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadSpikesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v DatabaseAnomaliesV2LoadSpikes) *DatabaseAnomaliesV2LoadSpikes { - return &v - }).(DatabaseAnomaliesV2LoadSpikesPtrOutput) -} - -// Detect service load spikes -func (o DatabaseAnomaliesV2LoadSpikesOutput) Enabled() pulumi.BoolOutput { - return o.ApplyT(func(v DatabaseAnomaliesV2LoadSpikes) bool { return v.Enabled }).(pulumi.BoolOutput) -} - -// Threshold -func (o DatabaseAnomaliesV2LoadSpikesOutput) LoadSpikePercent() pulumi.Float64PtrOutput { - return o.ApplyT(func(v DatabaseAnomaliesV2LoadSpikes) *float64 { return v.LoadSpikePercent }).(pulumi.Float64PtrOutput) -} - -// Time span -func (o DatabaseAnomaliesV2LoadSpikesOutput) MinutesAbnormalState() pulumi.IntPtrOutput { - return o.ApplyT(func(v DatabaseAnomaliesV2LoadSpikes) *int { return v.MinutesAbnormalState }).(pulumi.IntPtrOutput) -} - -type DatabaseAnomaliesV2LoadSpikesPtrOutput struct{ *pulumi.OutputState } - -func (DatabaseAnomaliesV2LoadSpikesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**DatabaseAnomaliesV2LoadSpikes)(nil)).Elem() -} - -func (o DatabaseAnomaliesV2LoadSpikesPtrOutput) ToDatabaseAnomaliesV2LoadSpikesPtrOutput() DatabaseAnomaliesV2LoadSpikesPtrOutput { - return o -} - -func (o DatabaseAnomaliesV2LoadSpikesPtrOutput) ToDatabaseAnomaliesV2LoadSpikesPtrOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadSpikesPtrOutput { - return o -} - -func (o DatabaseAnomaliesV2LoadSpikesPtrOutput) Elem() DatabaseAnomaliesV2LoadSpikesOutput { - return o.ApplyT(func(v *DatabaseAnomaliesV2LoadSpikes) DatabaseAnomaliesV2LoadSpikes { - if v != nil { - return *v - } - var ret DatabaseAnomaliesV2LoadSpikes - return ret - }).(DatabaseAnomaliesV2LoadSpikesOutput) -} - -// Detect service load spikes -func (o DatabaseAnomaliesV2LoadSpikesPtrOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *DatabaseAnomaliesV2LoadSpikes) *bool { - if v == nil { - return nil - } - return &v.Enabled - }).(pulumi.BoolPtrOutput) -} - -// Threshold -func (o DatabaseAnomaliesV2LoadSpikesPtrOutput) LoadSpikePercent() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *DatabaseAnomaliesV2LoadSpikes) *float64 { - if v == nil { - return nil - } - return v.LoadSpikePercent - }).(pulumi.Float64PtrOutput) -} - -// Time span -func (o DatabaseAnomaliesV2LoadSpikesPtrOutput) MinutesAbnormalState() pulumi.IntPtrOutput { - return o.ApplyT(func(v *DatabaseAnomaliesV2LoadSpikes) *int { - if v == nil { - return nil - } - return v.MinutesAbnormalState - }).(pulumi.IntPtrOutput) -} - func init() { pulumi.RegisterInputType(reflect.TypeOf((*AlertingFiltersInput)(nil)).Elem(), AlertingFiltersArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*AlertingFiltersPtrInput)(nil)).Elem(), AlertingFiltersArgs{}) @@ -77642,6 +77531,10 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*ApiDetectionConditionsPtrInput)(nil)).Elem(), ApiDetectionConditionsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ApiDetectionConditionsConditionInput)(nil)).Elem(), ApiDetectionConditionsConditionArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ApiDetectionConditionsConditionArrayInput)(nil)).Elem(), ApiDetectionConditionsConditionArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*AppMonitoringAppMonitoringInput)(nil)).Elem(), AppMonitoringAppMonitoringArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*AppMonitoringAppMonitoringPtrInput)(nil)).Elem(), AppMonitoringAppMonitoringArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*AppMonitoringAppMonitoringAppMonitoringInput)(nil)).Elem(), AppMonitoringAppMonitoringAppMonitoringArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*AppMonitoringAppMonitoringAppMonitoringArrayInput)(nil)).Elem(), AppMonitoringAppMonitoringAppMonitoringArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ApplicationAnomaliesFailureRateInput)(nil)).Elem(), ApplicationAnomaliesFailureRateArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ApplicationAnomaliesFailureRatePtrInput)(nil)).Elem(), ApplicationAnomaliesFailureRateArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ApplicationAnomaliesFailureRateAutoInput)(nil)).Elem(), ApplicationAnomaliesFailureRateAutoArgs{}) @@ -78575,10 +78468,6 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*DatabaseAnomaliesV2FailureRateFixedDetectionPtrInput)(nil)).Elem(), DatabaseAnomaliesV2FailureRateFixedDetectionArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DatabaseAnomaliesV2FailureRateFixedDetectionOverAlertingProtectionInput)(nil)).Elem(), DatabaseAnomaliesV2FailureRateFixedDetectionOverAlertingProtectionArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DatabaseAnomaliesV2FailureRateFixedDetectionOverAlertingProtectionPtrInput)(nil)).Elem(), DatabaseAnomaliesV2FailureRateFixedDetectionOverAlertingProtectionArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*DatabaseAnomaliesV2LoadDropsInput)(nil)).Elem(), DatabaseAnomaliesV2LoadDropsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*DatabaseAnomaliesV2LoadDropsPtrInput)(nil)).Elem(), DatabaseAnomaliesV2LoadDropsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*DatabaseAnomaliesV2LoadSpikesInput)(nil)).Elem(), DatabaseAnomaliesV2LoadSpikesArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*DatabaseAnomaliesV2LoadSpikesPtrInput)(nil)).Elem(), DatabaseAnomaliesV2LoadSpikesArgs{}) pulumi.RegisterOutputType(AlertingFiltersOutput{}) pulumi.RegisterOutputType(AlertingFiltersPtrOutput{}) pulumi.RegisterOutputType(AlertingFiltersFilterOutput{}) @@ -78623,6 +78512,10 @@ func init() { pulumi.RegisterOutputType(ApiDetectionConditionsPtrOutput{}) pulumi.RegisterOutputType(ApiDetectionConditionsConditionOutput{}) pulumi.RegisterOutputType(ApiDetectionConditionsConditionArrayOutput{}) + pulumi.RegisterOutputType(AppMonitoringAppMonitoringOutput{}) + pulumi.RegisterOutputType(AppMonitoringAppMonitoringPtrOutput{}) + pulumi.RegisterOutputType(AppMonitoringAppMonitoringAppMonitoringOutput{}) + pulumi.RegisterOutputType(AppMonitoringAppMonitoringAppMonitoringArrayOutput{}) pulumi.RegisterOutputType(ApplicationAnomaliesFailureRateOutput{}) pulumi.RegisterOutputType(ApplicationAnomaliesFailureRatePtrOutput{}) pulumi.RegisterOutputType(ApplicationAnomaliesFailureRateAutoOutput{}) @@ -79556,8 +79449,4 @@ func init() { pulumi.RegisterOutputType(DatabaseAnomaliesV2FailureRateFixedDetectionPtrOutput{}) pulumi.RegisterOutputType(DatabaseAnomaliesV2FailureRateFixedDetectionOverAlertingProtectionOutput{}) pulumi.RegisterOutputType(DatabaseAnomaliesV2FailureRateFixedDetectionOverAlertingProtectionPtrOutput{}) - pulumi.RegisterOutputType(DatabaseAnomaliesV2LoadDropsOutput{}) - pulumi.RegisterOutputType(DatabaseAnomaliesV2LoadDropsPtrOutput{}) - pulumi.RegisterOutputType(DatabaseAnomaliesV2LoadSpikesOutput{}) - pulumi.RegisterOutputType(DatabaseAnomaliesV2LoadSpikesPtrOutput{}) } diff --git a/sdk/go/dynatrace/pulumiTypes1.go b/sdk/go/dynatrace/pulumiTypes1.go index 2bf2556a..a3586d67 100644 --- a/sdk/go/dynatrace/pulumiTypes1.go +++ b/sdk/go/dynatrace/pulumiTypes1.go @@ -13,6 +13,356 @@ import ( var _ = internal.GetEnvOrDefault +type DatabaseAnomaliesV2LoadDrops struct { + // Detect service load drops + Enabled bool `pulumi:"enabled"` + // Threshold + LoadDropPercent *float64 `pulumi:"loadDropPercent"` + // Time span + MinutesAbnormalState *int `pulumi:"minutesAbnormalState"` +} + +// DatabaseAnomaliesV2LoadDropsInput is an input type that accepts DatabaseAnomaliesV2LoadDropsArgs and DatabaseAnomaliesV2LoadDropsOutput values. +// You can construct a concrete instance of `DatabaseAnomaliesV2LoadDropsInput` via: +// +// DatabaseAnomaliesV2LoadDropsArgs{...} +type DatabaseAnomaliesV2LoadDropsInput interface { + pulumi.Input + + ToDatabaseAnomaliesV2LoadDropsOutput() DatabaseAnomaliesV2LoadDropsOutput + ToDatabaseAnomaliesV2LoadDropsOutputWithContext(context.Context) DatabaseAnomaliesV2LoadDropsOutput +} + +type DatabaseAnomaliesV2LoadDropsArgs struct { + // Detect service load drops + Enabled pulumi.BoolInput `pulumi:"enabled"` + // Threshold + LoadDropPercent pulumi.Float64PtrInput `pulumi:"loadDropPercent"` + // Time span + MinutesAbnormalState pulumi.IntPtrInput `pulumi:"minutesAbnormalState"` +} + +func (DatabaseAnomaliesV2LoadDropsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*DatabaseAnomaliesV2LoadDrops)(nil)).Elem() +} + +func (i DatabaseAnomaliesV2LoadDropsArgs) ToDatabaseAnomaliesV2LoadDropsOutput() DatabaseAnomaliesV2LoadDropsOutput { + return i.ToDatabaseAnomaliesV2LoadDropsOutputWithContext(context.Background()) +} + +func (i DatabaseAnomaliesV2LoadDropsArgs) ToDatabaseAnomaliesV2LoadDropsOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadDropsOutput { + return pulumi.ToOutputWithContext(ctx, i).(DatabaseAnomaliesV2LoadDropsOutput) +} + +func (i DatabaseAnomaliesV2LoadDropsArgs) ToDatabaseAnomaliesV2LoadDropsPtrOutput() DatabaseAnomaliesV2LoadDropsPtrOutput { + return i.ToDatabaseAnomaliesV2LoadDropsPtrOutputWithContext(context.Background()) +} + +func (i DatabaseAnomaliesV2LoadDropsArgs) ToDatabaseAnomaliesV2LoadDropsPtrOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadDropsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DatabaseAnomaliesV2LoadDropsOutput).ToDatabaseAnomaliesV2LoadDropsPtrOutputWithContext(ctx) +} + +// DatabaseAnomaliesV2LoadDropsPtrInput is an input type that accepts DatabaseAnomaliesV2LoadDropsArgs, DatabaseAnomaliesV2LoadDropsPtr and DatabaseAnomaliesV2LoadDropsPtrOutput values. +// You can construct a concrete instance of `DatabaseAnomaliesV2LoadDropsPtrInput` via: +// +// DatabaseAnomaliesV2LoadDropsArgs{...} +// +// or: +// +// nil +type DatabaseAnomaliesV2LoadDropsPtrInput interface { + pulumi.Input + + ToDatabaseAnomaliesV2LoadDropsPtrOutput() DatabaseAnomaliesV2LoadDropsPtrOutput + ToDatabaseAnomaliesV2LoadDropsPtrOutputWithContext(context.Context) DatabaseAnomaliesV2LoadDropsPtrOutput +} + +type databaseAnomaliesV2LoadDropsPtrType DatabaseAnomaliesV2LoadDropsArgs + +func DatabaseAnomaliesV2LoadDropsPtr(v *DatabaseAnomaliesV2LoadDropsArgs) DatabaseAnomaliesV2LoadDropsPtrInput { + return (*databaseAnomaliesV2LoadDropsPtrType)(v) +} + +func (*databaseAnomaliesV2LoadDropsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**DatabaseAnomaliesV2LoadDrops)(nil)).Elem() +} + +func (i *databaseAnomaliesV2LoadDropsPtrType) ToDatabaseAnomaliesV2LoadDropsPtrOutput() DatabaseAnomaliesV2LoadDropsPtrOutput { + return i.ToDatabaseAnomaliesV2LoadDropsPtrOutputWithContext(context.Background()) +} + +func (i *databaseAnomaliesV2LoadDropsPtrType) ToDatabaseAnomaliesV2LoadDropsPtrOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadDropsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DatabaseAnomaliesV2LoadDropsPtrOutput) +} + +type DatabaseAnomaliesV2LoadDropsOutput struct{ *pulumi.OutputState } + +func (DatabaseAnomaliesV2LoadDropsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*DatabaseAnomaliesV2LoadDrops)(nil)).Elem() +} + +func (o DatabaseAnomaliesV2LoadDropsOutput) ToDatabaseAnomaliesV2LoadDropsOutput() DatabaseAnomaliesV2LoadDropsOutput { + return o +} + +func (o DatabaseAnomaliesV2LoadDropsOutput) ToDatabaseAnomaliesV2LoadDropsOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadDropsOutput { + return o +} + +func (o DatabaseAnomaliesV2LoadDropsOutput) ToDatabaseAnomaliesV2LoadDropsPtrOutput() DatabaseAnomaliesV2LoadDropsPtrOutput { + return o.ToDatabaseAnomaliesV2LoadDropsPtrOutputWithContext(context.Background()) +} + +func (o DatabaseAnomaliesV2LoadDropsOutput) ToDatabaseAnomaliesV2LoadDropsPtrOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadDropsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v DatabaseAnomaliesV2LoadDrops) *DatabaseAnomaliesV2LoadDrops { + return &v + }).(DatabaseAnomaliesV2LoadDropsPtrOutput) +} + +// Detect service load drops +func (o DatabaseAnomaliesV2LoadDropsOutput) Enabled() pulumi.BoolOutput { + return o.ApplyT(func(v DatabaseAnomaliesV2LoadDrops) bool { return v.Enabled }).(pulumi.BoolOutput) +} + +// Threshold +func (o DatabaseAnomaliesV2LoadDropsOutput) LoadDropPercent() pulumi.Float64PtrOutput { + return o.ApplyT(func(v DatabaseAnomaliesV2LoadDrops) *float64 { return v.LoadDropPercent }).(pulumi.Float64PtrOutput) +} + +// Time span +func (o DatabaseAnomaliesV2LoadDropsOutput) MinutesAbnormalState() pulumi.IntPtrOutput { + return o.ApplyT(func(v DatabaseAnomaliesV2LoadDrops) *int { return v.MinutesAbnormalState }).(pulumi.IntPtrOutput) +} + +type DatabaseAnomaliesV2LoadDropsPtrOutput struct{ *pulumi.OutputState } + +func (DatabaseAnomaliesV2LoadDropsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**DatabaseAnomaliesV2LoadDrops)(nil)).Elem() +} + +func (o DatabaseAnomaliesV2LoadDropsPtrOutput) ToDatabaseAnomaliesV2LoadDropsPtrOutput() DatabaseAnomaliesV2LoadDropsPtrOutput { + return o +} + +func (o DatabaseAnomaliesV2LoadDropsPtrOutput) ToDatabaseAnomaliesV2LoadDropsPtrOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadDropsPtrOutput { + return o +} + +func (o DatabaseAnomaliesV2LoadDropsPtrOutput) Elem() DatabaseAnomaliesV2LoadDropsOutput { + return o.ApplyT(func(v *DatabaseAnomaliesV2LoadDrops) DatabaseAnomaliesV2LoadDrops { + if v != nil { + return *v + } + var ret DatabaseAnomaliesV2LoadDrops + return ret + }).(DatabaseAnomaliesV2LoadDropsOutput) +} + +// Detect service load drops +func (o DatabaseAnomaliesV2LoadDropsPtrOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *DatabaseAnomaliesV2LoadDrops) *bool { + if v == nil { + return nil + } + return &v.Enabled + }).(pulumi.BoolPtrOutput) +} + +// Threshold +func (o DatabaseAnomaliesV2LoadDropsPtrOutput) LoadDropPercent() pulumi.Float64PtrOutput { + return o.ApplyT(func(v *DatabaseAnomaliesV2LoadDrops) *float64 { + if v == nil { + return nil + } + return v.LoadDropPercent + }).(pulumi.Float64PtrOutput) +} + +// Time span +func (o DatabaseAnomaliesV2LoadDropsPtrOutput) MinutesAbnormalState() pulumi.IntPtrOutput { + return o.ApplyT(func(v *DatabaseAnomaliesV2LoadDrops) *int { + if v == nil { + return nil + } + return v.MinutesAbnormalState + }).(pulumi.IntPtrOutput) +} + +type DatabaseAnomaliesV2LoadSpikes struct { + // Detect service load spikes + Enabled bool `pulumi:"enabled"` + // Threshold + LoadSpikePercent *float64 `pulumi:"loadSpikePercent"` + // Time span + MinutesAbnormalState *int `pulumi:"minutesAbnormalState"` +} + +// DatabaseAnomaliesV2LoadSpikesInput is an input type that accepts DatabaseAnomaliesV2LoadSpikesArgs and DatabaseAnomaliesV2LoadSpikesOutput values. +// You can construct a concrete instance of `DatabaseAnomaliesV2LoadSpikesInput` via: +// +// DatabaseAnomaliesV2LoadSpikesArgs{...} +type DatabaseAnomaliesV2LoadSpikesInput interface { + pulumi.Input + + ToDatabaseAnomaliesV2LoadSpikesOutput() DatabaseAnomaliesV2LoadSpikesOutput + ToDatabaseAnomaliesV2LoadSpikesOutputWithContext(context.Context) DatabaseAnomaliesV2LoadSpikesOutput +} + +type DatabaseAnomaliesV2LoadSpikesArgs struct { + // Detect service load spikes + Enabled pulumi.BoolInput `pulumi:"enabled"` + // Threshold + LoadSpikePercent pulumi.Float64PtrInput `pulumi:"loadSpikePercent"` + // Time span + MinutesAbnormalState pulumi.IntPtrInput `pulumi:"minutesAbnormalState"` +} + +func (DatabaseAnomaliesV2LoadSpikesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*DatabaseAnomaliesV2LoadSpikes)(nil)).Elem() +} + +func (i DatabaseAnomaliesV2LoadSpikesArgs) ToDatabaseAnomaliesV2LoadSpikesOutput() DatabaseAnomaliesV2LoadSpikesOutput { + return i.ToDatabaseAnomaliesV2LoadSpikesOutputWithContext(context.Background()) +} + +func (i DatabaseAnomaliesV2LoadSpikesArgs) ToDatabaseAnomaliesV2LoadSpikesOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadSpikesOutput { + return pulumi.ToOutputWithContext(ctx, i).(DatabaseAnomaliesV2LoadSpikesOutput) +} + +func (i DatabaseAnomaliesV2LoadSpikesArgs) ToDatabaseAnomaliesV2LoadSpikesPtrOutput() DatabaseAnomaliesV2LoadSpikesPtrOutput { + return i.ToDatabaseAnomaliesV2LoadSpikesPtrOutputWithContext(context.Background()) +} + +func (i DatabaseAnomaliesV2LoadSpikesArgs) ToDatabaseAnomaliesV2LoadSpikesPtrOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadSpikesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DatabaseAnomaliesV2LoadSpikesOutput).ToDatabaseAnomaliesV2LoadSpikesPtrOutputWithContext(ctx) +} + +// DatabaseAnomaliesV2LoadSpikesPtrInput is an input type that accepts DatabaseAnomaliesV2LoadSpikesArgs, DatabaseAnomaliesV2LoadSpikesPtr and DatabaseAnomaliesV2LoadSpikesPtrOutput values. +// You can construct a concrete instance of `DatabaseAnomaliesV2LoadSpikesPtrInput` via: +// +// DatabaseAnomaliesV2LoadSpikesArgs{...} +// +// or: +// +// nil +type DatabaseAnomaliesV2LoadSpikesPtrInput interface { + pulumi.Input + + ToDatabaseAnomaliesV2LoadSpikesPtrOutput() DatabaseAnomaliesV2LoadSpikesPtrOutput + ToDatabaseAnomaliesV2LoadSpikesPtrOutputWithContext(context.Context) DatabaseAnomaliesV2LoadSpikesPtrOutput +} + +type databaseAnomaliesV2LoadSpikesPtrType DatabaseAnomaliesV2LoadSpikesArgs + +func DatabaseAnomaliesV2LoadSpikesPtr(v *DatabaseAnomaliesV2LoadSpikesArgs) DatabaseAnomaliesV2LoadSpikesPtrInput { + return (*databaseAnomaliesV2LoadSpikesPtrType)(v) +} + +func (*databaseAnomaliesV2LoadSpikesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**DatabaseAnomaliesV2LoadSpikes)(nil)).Elem() +} + +func (i *databaseAnomaliesV2LoadSpikesPtrType) ToDatabaseAnomaliesV2LoadSpikesPtrOutput() DatabaseAnomaliesV2LoadSpikesPtrOutput { + return i.ToDatabaseAnomaliesV2LoadSpikesPtrOutputWithContext(context.Background()) +} + +func (i *databaseAnomaliesV2LoadSpikesPtrType) ToDatabaseAnomaliesV2LoadSpikesPtrOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadSpikesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DatabaseAnomaliesV2LoadSpikesPtrOutput) +} + +type DatabaseAnomaliesV2LoadSpikesOutput struct{ *pulumi.OutputState } + +func (DatabaseAnomaliesV2LoadSpikesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*DatabaseAnomaliesV2LoadSpikes)(nil)).Elem() +} + +func (o DatabaseAnomaliesV2LoadSpikesOutput) ToDatabaseAnomaliesV2LoadSpikesOutput() DatabaseAnomaliesV2LoadSpikesOutput { + return o +} + +func (o DatabaseAnomaliesV2LoadSpikesOutput) ToDatabaseAnomaliesV2LoadSpikesOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadSpikesOutput { + return o +} + +func (o DatabaseAnomaliesV2LoadSpikesOutput) ToDatabaseAnomaliesV2LoadSpikesPtrOutput() DatabaseAnomaliesV2LoadSpikesPtrOutput { + return o.ToDatabaseAnomaliesV2LoadSpikesPtrOutputWithContext(context.Background()) +} + +func (o DatabaseAnomaliesV2LoadSpikesOutput) ToDatabaseAnomaliesV2LoadSpikesPtrOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadSpikesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v DatabaseAnomaliesV2LoadSpikes) *DatabaseAnomaliesV2LoadSpikes { + return &v + }).(DatabaseAnomaliesV2LoadSpikesPtrOutput) +} + +// Detect service load spikes +func (o DatabaseAnomaliesV2LoadSpikesOutput) Enabled() pulumi.BoolOutput { + return o.ApplyT(func(v DatabaseAnomaliesV2LoadSpikes) bool { return v.Enabled }).(pulumi.BoolOutput) +} + +// Threshold +func (o DatabaseAnomaliesV2LoadSpikesOutput) LoadSpikePercent() pulumi.Float64PtrOutput { + return o.ApplyT(func(v DatabaseAnomaliesV2LoadSpikes) *float64 { return v.LoadSpikePercent }).(pulumi.Float64PtrOutput) +} + +// Time span +func (o DatabaseAnomaliesV2LoadSpikesOutput) MinutesAbnormalState() pulumi.IntPtrOutput { + return o.ApplyT(func(v DatabaseAnomaliesV2LoadSpikes) *int { return v.MinutesAbnormalState }).(pulumi.IntPtrOutput) +} + +type DatabaseAnomaliesV2LoadSpikesPtrOutput struct{ *pulumi.OutputState } + +func (DatabaseAnomaliesV2LoadSpikesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**DatabaseAnomaliesV2LoadSpikes)(nil)).Elem() +} + +func (o DatabaseAnomaliesV2LoadSpikesPtrOutput) ToDatabaseAnomaliesV2LoadSpikesPtrOutput() DatabaseAnomaliesV2LoadSpikesPtrOutput { + return o +} + +func (o DatabaseAnomaliesV2LoadSpikesPtrOutput) ToDatabaseAnomaliesV2LoadSpikesPtrOutputWithContext(ctx context.Context) DatabaseAnomaliesV2LoadSpikesPtrOutput { + return o +} + +func (o DatabaseAnomaliesV2LoadSpikesPtrOutput) Elem() DatabaseAnomaliesV2LoadSpikesOutput { + return o.ApplyT(func(v *DatabaseAnomaliesV2LoadSpikes) DatabaseAnomaliesV2LoadSpikes { + if v != nil { + return *v + } + var ret DatabaseAnomaliesV2LoadSpikes + return ret + }).(DatabaseAnomaliesV2LoadSpikesOutput) +} + +// Detect service load spikes +func (o DatabaseAnomaliesV2LoadSpikesPtrOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *DatabaseAnomaliesV2LoadSpikes) *bool { + if v == nil { + return nil + } + return &v.Enabled + }).(pulumi.BoolPtrOutput) +} + +// Threshold +func (o DatabaseAnomaliesV2LoadSpikesPtrOutput) LoadSpikePercent() pulumi.Float64PtrOutput { + return o.ApplyT(func(v *DatabaseAnomaliesV2LoadSpikes) *float64 { + if v == nil { + return nil + } + return v.LoadSpikePercent + }).(pulumi.Float64PtrOutput) +} + +// Time span +func (o DatabaseAnomaliesV2LoadSpikesPtrOutput) MinutesAbnormalState() pulumi.IntPtrOutput { + return o.ApplyT(func(v *DatabaseAnomaliesV2LoadSpikes) *int { + if v == nil { + return nil + } + return v.MinutesAbnormalState + }).(pulumi.IntPtrOutput) +} + type DatabaseAnomaliesV2ResponseTime struct { // no documentation available AutoDetection *DatabaseAnomaliesV2ResponseTimeAutoDetection `pulumi:"autoDetection"` @@ -76437,285 +76787,11 @@ func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedPtrOutput) Sensitiv }).(pulumi.StringPtrOutput) } -type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting struct { - // no documentation available - MinActionRate int `pulumi:"minActionRate"` -} - -// MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingInput is an input type that accepts MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs and MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput values. -// You can construct a concrete instance of `MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingInput` via: -// -// MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs{...} -type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingInput interface { - pulumi.Input - - ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput - ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutputWithContext(context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput -} - -type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs struct { - // no documentation available - MinActionRate pulumi.IntInput `pulumi:"minActionRate"` -} - -func (MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs) ElementType() reflect.Type { - return reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting)(nil)).Elem() -} - -func (i MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput { - return i.ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutputWithContext(context.Background()) -} - -func (i MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput { - return pulumi.ToOutputWithContext(ctx, i).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput) -} - -func (i MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput { - return i.ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutputWithContext(context.Background()) -} - -func (i MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput).ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutputWithContext(ctx) -} - -// MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrInput is an input type that accepts MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs, MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtr and MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput values. -// You can construct a concrete instance of `MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrInput` via: -// -// MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs{...} -// -// or: -// -// nil -type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrInput interface { - pulumi.Input - - ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput - ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutputWithContext(context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput -} - -type mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrType MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs - -func MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtr(v *MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrInput { - return (*mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrType)(v) -} - -func (*mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting)(nil)).Elem() -} - -func (i *mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrType) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput { - return i.ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutputWithContext(context.Background()) -} - -func (i *mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrType) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput) -} - -type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput struct{ *pulumi.OutputState } - -func (MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput) ElementType() reflect.Type { - return reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting)(nil)).Elem() -} - -func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput { - return o -} - -func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput { - return o -} - -func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput { - return o.ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutputWithContext(context.Background()) -} - -func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting) *MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting { - return &v - }).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput) -} - -// no documentation available -func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput) MinActionRate() pulumi.IntOutput { - return o.ApplyT(func(v MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting) int { - return v.MinActionRate - }).(pulumi.IntOutput) -} - -type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput struct{ *pulumi.OutputState } - -func (MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting)(nil)).Elem() -} - -func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput { - return o -} - -func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput { - return o -} - -func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput) Elem() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput { - return o.ApplyT(func(v *MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting { - if v != nil { - return *v - } - var ret MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting - return ret - }).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput) -} - -// no documentation available -func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput) MinActionRate() pulumi.IntPtrOutput { - return o.ApplyT(func(v *MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting) *int { - if v == nil { - return nil - } - return &v.MinActionRate - }).(pulumi.IntPtrOutput) -} - -type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed struct { - // Absolute threshold - DurationThreshold float64 `pulumi:"durationThreshold"` -} - -// MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedInput is an input type that accepts MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs and MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput values. -// You can construct a concrete instance of `MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedInput` via: -// -// MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs{...} -type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedInput interface { - pulumi.Input - - ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput - ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutputWithContext(context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput -} - -type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs struct { - // Absolute threshold - DurationThreshold pulumi.Float64Input `pulumi:"durationThreshold"` -} - -func (MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs) ElementType() reflect.Type { - return reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed)(nil)).Elem() -} - -func (i MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput { - return i.ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutputWithContext(context.Background()) -} - -func (i MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput { - return pulumi.ToOutputWithContext(ctx, i).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput) -} - -func (i MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput { - return i.ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutputWithContext(context.Background()) -} - -func (i MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput).ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutputWithContext(ctx) -} - -// MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrInput is an input type that accepts MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs, MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtr and MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput values. -// You can construct a concrete instance of `MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrInput` via: -// -// MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs{...} -// -// or: -// -// nil -type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrInput interface { - pulumi.Input - - ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput - ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutputWithContext(context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput -} - -type mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrType MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs - -func MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtr(v *MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrInput { - return (*mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrType)(v) -} - -func (*mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed)(nil)).Elem() -} - -func (i *mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrType) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput { - return i.ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutputWithContext(context.Background()) -} - -func (i *mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrType) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput) -} - -type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput struct{ *pulumi.OutputState } - -func (MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput) ElementType() reflect.Type { - return reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed)(nil)).Elem() -} - -func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput { - return o -} - -func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput { - return o -} - -func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput { - return o.ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutputWithContext(context.Background()) -} - -func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed) *MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed { - return &v - }).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput) -} - -// Absolute threshold -func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput) DurationThreshold() pulumi.Float64Output { - return o.ApplyT(func(v MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed) float64 { - return v.DurationThreshold - }).(pulumi.Float64Output) -} - -type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput struct{ *pulumi.OutputState } - -func (MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed)(nil)).Elem() -} - -func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput { - return o -} - -func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput { - return o -} - -func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput) Elem() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput { - return o.ApplyT(func(v *MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed { - if v != nil { - return *v - } - var ret MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed - return ret - }).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput) -} - -// Absolute threshold -func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput) DurationThreshold() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed) *float64 { - if v == nil { - return nil - } - return &v.DurationThreshold - }).(pulumi.Float64PtrOutput) -} - func init() { + pulumi.RegisterInputType(reflect.TypeOf((*DatabaseAnomaliesV2LoadDropsInput)(nil)).Elem(), DatabaseAnomaliesV2LoadDropsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*DatabaseAnomaliesV2LoadDropsPtrInput)(nil)).Elem(), DatabaseAnomaliesV2LoadDropsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*DatabaseAnomaliesV2LoadSpikesInput)(nil)).Elem(), DatabaseAnomaliesV2LoadSpikesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*DatabaseAnomaliesV2LoadSpikesPtrInput)(nil)).Elem(), DatabaseAnomaliesV2LoadSpikesArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DatabaseAnomaliesV2ResponseTimeInput)(nil)).Elem(), DatabaseAnomaliesV2ResponseTimeArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DatabaseAnomaliesV2ResponseTimePtrInput)(nil)).Elem(), DatabaseAnomaliesV2ResponseTimeArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DatabaseAnomaliesV2ResponseTimeAutoDetectionInput)(nil)).Elem(), DatabaseAnomaliesV2ResponseTimeAutoDetectionArgs{}) @@ -77700,10 +77776,10 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsAutoDurationThresholdSlowestPtrInput)(nil)).Elem(), MobileAppAnomaliesSlowUserActionsSlowUserActionsAutoDurationThresholdSlowestArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedInput)(nil)).Elem(), MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedPtrInput)(nil)).Elem(), MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingInput)(nil)).Elem(), MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrInput)(nil)).Elem(), MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedInput)(nil)).Elem(), MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrInput)(nil)).Elem(), MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs{}) + pulumi.RegisterOutputType(DatabaseAnomaliesV2LoadDropsOutput{}) + pulumi.RegisterOutputType(DatabaseAnomaliesV2LoadDropsPtrOutput{}) + pulumi.RegisterOutputType(DatabaseAnomaliesV2LoadSpikesOutput{}) + pulumi.RegisterOutputType(DatabaseAnomaliesV2LoadSpikesPtrOutput{}) pulumi.RegisterOutputType(DatabaseAnomaliesV2ResponseTimeOutput{}) pulumi.RegisterOutputType(DatabaseAnomaliesV2ResponseTimePtrOutput{}) pulumi.RegisterOutputType(DatabaseAnomaliesV2ResponseTimeAutoDetectionOutput{}) @@ -78688,8 +78764,4 @@ func init() { pulumi.RegisterOutputType(MobileAppAnomaliesSlowUserActionsSlowUserActionsAutoDurationThresholdSlowestPtrOutput{}) pulumi.RegisterOutputType(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedOutput{}) pulumi.RegisterOutputType(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedPtrOutput{}) - pulumi.RegisterOutputType(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput{}) - pulumi.RegisterOutputType(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput{}) - pulumi.RegisterOutputType(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput{}) - pulumi.RegisterOutputType(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput{}) } diff --git a/sdk/go/dynatrace/pulumiTypes2.go b/sdk/go/dynatrace/pulumiTypes2.go index 409b2950..de7b9044 100644 --- a/sdk/go/dynatrace/pulumiTypes2.go +++ b/sdk/go/dynatrace/pulumiTypes2.go @@ -13,6 +13,284 @@ import ( var _ = internal.GetEnvOrDefault +type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting struct { + // no documentation available + MinActionRate int `pulumi:"minActionRate"` +} + +// MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingInput is an input type that accepts MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs and MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput values. +// You can construct a concrete instance of `MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingInput` via: +// +// MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs{...} +type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingInput interface { + pulumi.Input + + ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput + ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutputWithContext(context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput +} + +type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs struct { + // no documentation available + MinActionRate pulumi.IntInput `pulumi:"minActionRate"` +} + +func (MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs) ElementType() reflect.Type { + return reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting)(nil)).Elem() +} + +func (i MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput { + return i.ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutputWithContext(context.Background()) +} + +func (i MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput { + return pulumi.ToOutputWithContext(ctx, i).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput) +} + +func (i MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput { + return i.ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutputWithContext(context.Background()) +} + +func (i MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput).ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutputWithContext(ctx) +} + +// MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrInput is an input type that accepts MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs, MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtr and MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput values. +// You can construct a concrete instance of `MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrInput` via: +// +// MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs{...} +// +// or: +// +// nil +type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrInput interface { + pulumi.Input + + ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput + ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutputWithContext(context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput +} + +type mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrType MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs + +func MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtr(v *MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrInput { + return (*mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrType)(v) +} + +func (*mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting)(nil)).Elem() +} + +func (i *mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrType) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput { + return i.ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutputWithContext(context.Background()) +} + +func (i *mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrType) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput) +} + +type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput struct{ *pulumi.OutputState } + +func (MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput) ElementType() reflect.Type { + return reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting)(nil)).Elem() +} + +func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput { + return o +} + +func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput { + return o +} + +func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput { + return o.ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutputWithContext(context.Background()) +} + +func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting) *MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting { + return &v + }).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput) +} + +// no documentation available +func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput) MinActionRate() pulumi.IntOutput { + return o.ApplyT(func(v MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting) int { + return v.MinActionRate + }).(pulumi.IntOutput) +} + +type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput struct{ *pulumi.OutputState } + +func (MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting)(nil)).Elem() +} + +func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput { + return o +} + +func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput { + return o +} + +func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput) Elem() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput { + return o.ApplyT(func(v *MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting { + if v != nil { + return *v + } + var ret MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting + return ret + }).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput) +} + +// no documentation available +func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput) MinActionRate() pulumi.IntPtrOutput { + return o.ApplyT(func(v *MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralerting) *int { + if v == nil { + return nil + } + return &v.MinActionRate + }).(pulumi.IntPtrOutput) +} + +type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed struct { + // Absolute threshold + DurationThreshold float64 `pulumi:"durationThreshold"` +} + +// MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedInput is an input type that accepts MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs and MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput values. +// You can construct a concrete instance of `MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedInput` via: +// +// MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs{...} +type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedInput interface { + pulumi.Input + + ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput + ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutputWithContext(context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput +} + +type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs struct { + // Absolute threshold + DurationThreshold pulumi.Float64Input `pulumi:"durationThreshold"` +} + +func (MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs) ElementType() reflect.Type { + return reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed)(nil)).Elem() +} + +func (i MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput { + return i.ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutputWithContext(context.Background()) +} + +func (i MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput { + return pulumi.ToOutputWithContext(ctx, i).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput) +} + +func (i MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput { + return i.ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutputWithContext(context.Background()) +} + +func (i MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput).ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutputWithContext(ctx) +} + +// MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrInput is an input type that accepts MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs, MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtr and MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput values. +// You can construct a concrete instance of `MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrInput` via: +// +// MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs{...} +// +// or: +// +// nil +type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrInput interface { + pulumi.Input + + ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput + ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutputWithContext(context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput +} + +type mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrType MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs + +func MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtr(v *MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrInput { + return (*mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrType)(v) +} + +func (*mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed)(nil)).Elem() +} + +func (i *mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrType) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput { + return i.ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutputWithContext(context.Background()) +} + +func (i *mobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrType) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput) +} + +type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput struct{ *pulumi.OutputState } + +func (MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput) ElementType() reflect.Type { + return reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed)(nil)).Elem() +} + +func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput { + return o +} + +func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput { + return o +} + +func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput { + return o.ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutputWithContext(context.Background()) +} + +func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed) *MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed { + return &v + }).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput) +} + +// Absolute threshold +func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput) DurationThreshold() pulumi.Float64Output { + return o.ApplyT(func(v MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed) float64 { + return v.DurationThreshold + }).(pulumi.Float64Output) +} + +type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput struct{ *pulumi.OutputState } + +func (MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed)(nil)).Elem() +} + +func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput { + return o +} + +func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput) ToMobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutputWithContext(ctx context.Context) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput { + return o +} + +func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput) Elem() MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput { + return o.ApplyT(func(v *MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed) MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed { + if v != nil { + return *v + } + var ret MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed + return ret + }).(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput) +} + +// Absolute threshold +func (o MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput) DurationThreshold() pulumi.Float64PtrOutput { + return o.ApplyT(func(v *MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixed) *float64 { + if v == nil { + return nil + } + return &v.DurationThreshold + }).(pulumi.Float64PtrOutput) +} + type MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdSlowest struct { // Absolute threshold DurationThreshold float64 `pulumi:"durationThreshold"` @@ -78922,214 +79200,11 @@ func (o WebAppRequestErrorsErrorRulesPtrOutput) ErrorRules() WebAppRequestErrors }).(WebAppRequestErrorsErrorRulesErrorRuleArrayOutput) } -type WebAppRequestErrorsErrorRulesErrorRule struct { - // Capture settings - CaptureSettings WebAppRequestErrorsErrorRulesErrorRuleCaptureSettings `pulumi:"captureSettings"` - // Match by errors that have CSP violations - ConsiderCspViolations bool `pulumi:"considerCspViolations"` - // Match by errors that have failed image requests - ConsiderFailedImages bool `pulumi:"considerFailedImages"` - // Match by error code - ErrorCodes *string `pulumi:"errorCodes"` - // Filter settings - FilterSettings WebAppRequestErrorsErrorRulesErrorRuleFilterSettings `pulumi:"filterSettings"` -} - -// WebAppRequestErrorsErrorRulesErrorRuleInput is an input type that accepts WebAppRequestErrorsErrorRulesErrorRuleArgs and WebAppRequestErrorsErrorRulesErrorRuleOutput values. -// You can construct a concrete instance of `WebAppRequestErrorsErrorRulesErrorRuleInput` via: -// -// WebAppRequestErrorsErrorRulesErrorRuleArgs{...} -type WebAppRequestErrorsErrorRulesErrorRuleInput interface { - pulumi.Input - - ToWebAppRequestErrorsErrorRulesErrorRuleOutput() WebAppRequestErrorsErrorRulesErrorRuleOutput - ToWebAppRequestErrorsErrorRulesErrorRuleOutputWithContext(context.Context) WebAppRequestErrorsErrorRulesErrorRuleOutput -} - -type WebAppRequestErrorsErrorRulesErrorRuleArgs struct { - // Capture settings - CaptureSettings WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsInput `pulumi:"captureSettings"` - // Match by errors that have CSP violations - ConsiderCspViolations pulumi.BoolInput `pulumi:"considerCspViolations"` - // Match by errors that have failed image requests - ConsiderFailedImages pulumi.BoolInput `pulumi:"considerFailedImages"` - // Match by error code - ErrorCodes pulumi.StringPtrInput `pulumi:"errorCodes"` - // Filter settings - FilterSettings WebAppRequestErrorsErrorRulesErrorRuleFilterSettingsInput `pulumi:"filterSettings"` -} - -func (WebAppRequestErrorsErrorRulesErrorRuleArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAppRequestErrorsErrorRulesErrorRule)(nil)).Elem() -} - -func (i WebAppRequestErrorsErrorRulesErrorRuleArgs) ToWebAppRequestErrorsErrorRulesErrorRuleOutput() WebAppRequestErrorsErrorRulesErrorRuleOutput { - return i.ToWebAppRequestErrorsErrorRulesErrorRuleOutputWithContext(context.Background()) -} - -func (i WebAppRequestErrorsErrorRulesErrorRuleArgs) ToWebAppRequestErrorsErrorRulesErrorRuleOutputWithContext(ctx context.Context) WebAppRequestErrorsErrorRulesErrorRuleOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAppRequestErrorsErrorRulesErrorRuleOutput) -} - -// WebAppRequestErrorsErrorRulesErrorRuleArrayInput is an input type that accepts WebAppRequestErrorsErrorRulesErrorRuleArray and WebAppRequestErrorsErrorRulesErrorRuleArrayOutput values. -// You can construct a concrete instance of `WebAppRequestErrorsErrorRulesErrorRuleArrayInput` via: -// -// WebAppRequestErrorsErrorRulesErrorRuleArray{ WebAppRequestErrorsErrorRulesErrorRuleArgs{...} } -type WebAppRequestErrorsErrorRulesErrorRuleArrayInput interface { - pulumi.Input - - ToWebAppRequestErrorsErrorRulesErrorRuleArrayOutput() WebAppRequestErrorsErrorRulesErrorRuleArrayOutput - ToWebAppRequestErrorsErrorRulesErrorRuleArrayOutputWithContext(context.Context) WebAppRequestErrorsErrorRulesErrorRuleArrayOutput -} - -type WebAppRequestErrorsErrorRulesErrorRuleArray []WebAppRequestErrorsErrorRulesErrorRuleInput - -func (WebAppRequestErrorsErrorRulesErrorRuleArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAppRequestErrorsErrorRulesErrorRule)(nil)).Elem() -} - -func (i WebAppRequestErrorsErrorRulesErrorRuleArray) ToWebAppRequestErrorsErrorRulesErrorRuleArrayOutput() WebAppRequestErrorsErrorRulesErrorRuleArrayOutput { - return i.ToWebAppRequestErrorsErrorRulesErrorRuleArrayOutputWithContext(context.Background()) -} - -func (i WebAppRequestErrorsErrorRulesErrorRuleArray) ToWebAppRequestErrorsErrorRulesErrorRuleArrayOutputWithContext(ctx context.Context) WebAppRequestErrorsErrorRulesErrorRuleArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAppRequestErrorsErrorRulesErrorRuleArrayOutput) -} - -type WebAppRequestErrorsErrorRulesErrorRuleOutput struct{ *pulumi.OutputState } - -func (WebAppRequestErrorsErrorRulesErrorRuleOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAppRequestErrorsErrorRulesErrorRule)(nil)).Elem() -} - -func (o WebAppRequestErrorsErrorRulesErrorRuleOutput) ToWebAppRequestErrorsErrorRulesErrorRuleOutput() WebAppRequestErrorsErrorRulesErrorRuleOutput { - return o -} - -func (o WebAppRequestErrorsErrorRulesErrorRuleOutput) ToWebAppRequestErrorsErrorRulesErrorRuleOutputWithContext(ctx context.Context) WebAppRequestErrorsErrorRulesErrorRuleOutput { - return o -} - -// Capture settings -func (o WebAppRequestErrorsErrorRulesErrorRuleOutput) CaptureSettings() WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput { - return o.ApplyT(func(v WebAppRequestErrorsErrorRulesErrorRule) WebAppRequestErrorsErrorRulesErrorRuleCaptureSettings { - return v.CaptureSettings - }).(WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput) -} - -// Match by errors that have CSP violations -func (o WebAppRequestErrorsErrorRulesErrorRuleOutput) ConsiderCspViolations() pulumi.BoolOutput { - return o.ApplyT(func(v WebAppRequestErrorsErrorRulesErrorRule) bool { return v.ConsiderCspViolations }).(pulumi.BoolOutput) -} - -// Match by errors that have failed image requests -func (o WebAppRequestErrorsErrorRulesErrorRuleOutput) ConsiderFailedImages() pulumi.BoolOutput { - return o.ApplyT(func(v WebAppRequestErrorsErrorRulesErrorRule) bool { return v.ConsiderFailedImages }).(pulumi.BoolOutput) -} - -// Match by error code -func (o WebAppRequestErrorsErrorRulesErrorRuleOutput) ErrorCodes() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAppRequestErrorsErrorRulesErrorRule) *string { return v.ErrorCodes }).(pulumi.StringPtrOutput) -} - -// Filter settings -func (o WebAppRequestErrorsErrorRulesErrorRuleOutput) FilterSettings() WebAppRequestErrorsErrorRulesErrorRuleFilterSettingsOutput { - return o.ApplyT(func(v WebAppRequestErrorsErrorRulesErrorRule) WebAppRequestErrorsErrorRulesErrorRuleFilterSettings { - return v.FilterSettings - }).(WebAppRequestErrorsErrorRulesErrorRuleFilterSettingsOutput) -} - -type WebAppRequestErrorsErrorRulesErrorRuleArrayOutput struct{ *pulumi.OutputState } - -func (WebAppRequestErrorsErrorRulesErrorRuleArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAppRequestErrorsErrorRulesErrorRule)(nil)).Elem() -} - -func (o WebAppRequestErrorsErrorRulesErrorRuleArrayOutput) ToWebAppRequestErrorsErrorRulesErrorRuleArrayOutput() WebAppRequestErrorsErrorRulesErrorRuleArrayOutput { - return o -} - -func (o WebAppRequestErrorsErrorRulesErrorRuleArrayOutput) ToWebAppRequestErrorsErrorRulesErrorRuleArrayOutputWithContext(ctx context.Context) WebAppRequestErrorsErrorRulesErrorRuleArrayOutput { - return o -} - -func (o WebAppRequestErrorsErrorRulesErrorRuleArrayOutput) Index(i pulumi.IntInput) WebAppRequestErrorsErrorRulesErrorRuleOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAppRequestErrorsErrorRulesErrorRule { - return vs[0].([]WebAppRequestErrorsErrorRulesErrorRule)[vs[1].(int)] - }).(WebAppRequestErrorsErrorRulesErrorRuleOutput) -} - -type WebAppRequestErrorsErrorRulesErrorRuleCaptureSettings struct { - // Capture this error - Capture bool `pulumi:"capture"` - // [View more details](https://dt-url.net/hd580p2k) - ConsiderForAi *bool `pulumi:"considerForAi"` - // Include error in Apdex calculations - ImpactApdex *bool `pulumi:"impactApdex"` -} - -// WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsInput is an input type that accepts WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsArgs and WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput values. -// You can construct a concrete instance of `WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsInput` via: -// -// WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsArgs{...} -type WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsInput interface { - pulumi.Input - - ToWebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput() WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput - ToWebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutputWithContext(context.Context) WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput -} - -type WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsArgs struct { - // Capture this error - Capture pulumi.BoolInput `pulumi:"capture"` - // [View more details](https://dt-url.net/hd580p2k) - ConsiderForAi pulumi.BoolPtrInput `pulumi:"considerForAi"` - // Include error in Apdex calculations - ImpactApdex pulumi.BoolPtrInput `pulumi:"impactApdex"` -} - -func (WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAppRequestErrorsErrorRulesErrorRuleCaptureSettings)(nil)).Elem() -} - -func (i WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsArgs) ToWebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput() WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput { - return i.ToWebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutputWithContext(context.Background()) -} - -func (i WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsArgs) ToWebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutputWithContext(ctx context.Context) WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput) -} - -type WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput struct{ *pulumi.OutputState } - -func (WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAppRequestErrorsErrorRulesErrorRuleCaptureSettings)(nil)).Elem() -} - -func (o WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput) ToWebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput() WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput { - return o -} - -func (o WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput) ToWebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutputWithContext(ctx context.Context) WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput { - return o -} - -// Capture this error -func (o WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput) Capture() pulumi.BoolOutput { - return o.ApplyT(func(v WebAppRequestErrorsErrorRulesErrorRuleCaptureSettings) bool { return v.Capture }).(pulumi.BoolOutput) -} - -// [View more details](https://dt-url.net/hd580p2k) -func (o WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput) ConsiderForAi() pulumi.BoolPtrOutput { - return o.ApplyT(func(v WebAppRequestErrorsErrorRulesErrorRuleCaptureSettings) *bool { return v.ConsiderForAi }).(pulumi.BoolPtrOutput) -} - -// Include error in Apdex calculations -func (o WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput) ImpactApdex() pulumi.BoolPtrOutput { - return o.ApplyT(func(v WebAppRequestErrorsErrorRulesErrorRuleCaptureSettings) *bool { return v.ImpactApdex }).(pulumi.BoolPtrOutput) -} - func init() { + pulumi.RegisterInputType(reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingInput)(nil)).Elem(), MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrInput)(nil)).Elem(), MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedInput)(nil)).Elem(), MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrInput)(nil)).Elem(), MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdSlowestInput)(nil)).Elem(), MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdSlowestArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdSlowestPtrInput)(nil)).Elem(), MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdSlowestArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*MobileAppAnomaliesUnexpectedHighLoadInput)(nil)).Elem(), MobileAppAnomaliesUnexpectedHighLoadArgs{}) @@ -80115,9 +80190,10 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*WebAppKeyPerformanceXhrThresholdsPtrInput)(nil)).Elem(), WebAppKeyPerformanceXhrThresholdsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WebAppRequestErrorsErrorRulesInput)(nil)).Elem(), WebAppRequestErrorsErrorRulesArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WebAppRequestErrorsErrorRulesPtrInput)(nil)).Elem(), WebAppRequestErrorsErrorRulesArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAppRequestErrorsErrorRulesErrorRuleInput)(nil)).Elem(), WebAppRequestErrorsErrorRulesErrorRuleArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAppRequestErrorsErrorRulesErrorRuleArrayInput)(nil)).Elem(), WebAppRequestErrorsErrorRulesErrorRuleArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsInput)(nil)).Elem(), WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsArgs{}) + pulumi.RegisterOutputType(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingOutput{}) + pulumi.RegisterOutputType(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationAvoidOveralertingPtrOutput{}) + pulumi.RegisterOutputType(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedOutput{}) + pulumi.RegisterOutputType(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdAllFixedPtrOutput{}) pulumi.RegisterOutputType(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdSlowestOutput{}) pulumi.RegisterOutputType(MobileAppAnomaliesSlowUserActionsSlowUserActionsFixedDurationThresholdSlowestPtrOutput{}) pulumi.RegisterOutputType(MobileAppAnomaliesUnexpectedHighLoadOutput{}) @@ -81103,7 +81179,4 @@ func init() { pulumi.RegisterOutputType(WebAppKeyPerformanceXhrThresholdsPtrOutput{}) pulumi.RegisterOutputType(WebAppRequestErrorsErrorRulesOutput{}) pulumi.RegisterOutputType(WebAppRequestErrorsErrorRulesPtrOutput{}) - pulumi.RegisterOutputType(WebAppRequestErrorsErrorRulesErrorRuleOutput{}) - pulumi.RegisterOutputType(WebAppRequestErrorsErrorRulesErrorRuleArrayOutput{}) - pulumi.RegisterOutputType(WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput{}) } diff --git a/sdk/go/dynatrace/pulumiTypes3.go b/sdk/go/dynatrace/pulumiTypes3.go index 45e74493..d1054ea2 100644 --- a/sdk/go/dynatrace/pulumiTypes3.go +++ b/sdk/go/dynatrace/pulumiTypes3.go @@ -13,6 +13,213 @@ import ( var _ = internal.GetEnvOrDefault +type WebAppRequestErrorsErrorRulesErrorRule struct { + // Capture settings + CaptureSettings WebAppRequestErrorsErrorRulesErrorRuleCaptureSettings `pulumi:"captureSettings"` + // Match by errors that have CSP violations + ConsiderCspViolations bool `pulumi:"considerCspViolations"` + // Match by errors that have failed image requests + ConsiderFailedImages bool `pulumi:"considerFailedImages"` + // Match by error code + ErrorCodes *string `pulumi:"errorCodes"` + // Filter settings + FilterSettings WebAppRequestErrorsErrorRulesErrorRuleFilterSettings `pulumi:"filterSettings"` +} + +// WebAppRequestErrorsErrorRulesErrorRuleInput is an input type that accepts WebAppRequestErrorsErrorRulesErrorRuleArgs and WebAppRequestErrorsErrorRulesErrorRuleOutput values. +// You can construct a concrete instance of `WebAppRequestErrorsErrorRulesErrorRuleInput` via: +// +// WebAppRequestErrorsErrorRulesErrorRuleArgs{...} +type WebAppRequestErrorsErrorRulesErrorRuleInput interface { + pulumi.Input + + ToWebAppRequestErrorsErrorRulesErrorRuleOutput() WebAppRequestErrorsErrorRulesErrorRuleOutput + ToWebAppRequestErrorsErrorRulesErrorRuleOutputWithContext(context.Context) WebAppRequestErrorsErrorRulesErrorRuleOutput +} + +type WebAppRequestErrorsErrorRulesErrorRuleArgs struct { + // Capture settings + CaptureSettings WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsInput `pulumi:"captureSettings"` + // Match by errors that have CSP violations + ConsiderCspViolations pulumi.BoolInput `pulumi:"considerCspViolations"` + // Match by errors that have failed image requests + ConsiderFailedImages pulumi.BoolInput `pulumi:"considerFailedImages"` + // Match by error code + ErrorCodes pulumi.StringPtrInput `pulumi:"errorCodes"` + // Filter settings + FilterSettings WebAppRequestErrorsErrorRulesErrorRuleFilterSettingsInput `pulumi:"filterSettings"` +} + +func (WebAppRequestErrorsErrorRulesErrorRuleArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAppRequestErrorsErrorRulesErrorRule)(nil)).Elem() +} + +func (i WebAppRequestErrorsErrorRulesErrorRuleArgs) ToWebAppRequestErrorsErrorRulesErrorRuleOutput() WebAppRequestErrorsErrorRulesErrorRuleOutput { + return i.ToWebAppRequestErrorsErrorRulesErrorRuleOutputWithContext(context.Background()) +} + +func (i WebAppRequestErrorsErrorRulesErrorRuleArgs) ToWebAppRequestErrorsErrorRulesErrorRuleOutputWithContext(ctx context.Context) WebAppRequestErrorsErrorRulesErrorRuleOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAppRequestErrorsErrorRulesErrorRuleOutput) +} + +// WebAppRequestErrorsErrorRulesErrorRuleArrayInput is an input type that accepts WebAppRequestErrorsErrorRulesErrorRuleArray and WebAppRequestErrorsErrorRulesErrorRuleArrayOutput values. +// You can construct a concrete instance of `WebAppRequestErrorsErrorRulesErrorRuleArrayInput` via: +// +// WebAppRequestErrorsErrorRulesErrorRuleArray{ WebAppRequestErrorsErrorRulesErrorRuleArgs{...} } +type WebAppRequestErrorsErrorRulesErrorRuleArrayInput interface { + pulumi.Input + + ToWebAppRequestErrorsErrorRulesErrorRuleArrayOutput() WebAppRequestErrorsErrorRulesErrorRuleArrayOutput + ToWebAppRequestErrorsErrorRulesErrorRuleArrayOutputWithContext(context.Context) WebAppRequestErrorsErrorRulesErrorRuleArrayOutput +} + +type WebAppRequestErrorsErrorRulesErrorRuleArray []WebAppRequestErrorsErrorRulesErrorRuleInput + +func (WebAppRequestErrorsErrorRulesErrorRuleArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAppRequestErrorsErrorRulesErrorRule)(nil)).Elem() +} + +func (i WebAppRequestErrorsErrorRulesErrorRuleArray) ToWebAppRequestErrorsErrorRulesErrorRuleArrayOutput() WebAppRequestErrorsErrorRulesErrorRuleArrayOutput { + return i.ToWebAppRequestErrorsErrorRulesErrorRuleArrayOutputWithContext(context.Background()) +} + +func (i WebAppRequestErrorsErrorRulesErrorRuleArray) ToWebAppRequestErrorsErrorRulesErrorRuleArrayOutputWithContext(ctx context.Context) WebAppRequestErrorsErrorRulesErrorRuleArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAppRequestErrorsErrorRulesErrorRuleArrayOutput) +} + +type WebAppRequestErrorsErrorRulesErrorRuleOutput struct{ *pulumi.OutputState } + +func (WebAppRequestErrorsErrorRulesErrorRuleOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAppRequestErrorsErrorRulesErrorRule)(nil)).Elem() +} + +func (o WebAppRequestErrorsErrorRulesErrorRuleOutput) ToWebAppRequestErrorsErrorRulesErrorRuleOutput() WebAppRequestErrorsErrorRulesErrorRuleOutput { + return o +} + +func (o WebAppRequestErrorsErrorRulesErrorRuleOutput) ToWebAppRequestErrorsErrorRulesErrorRuleOutputWithContext(ctx context.Context) WebAppRequestErrorsErrorRulesErrorRuleOutput { + return o +} + +// Capture settings +func (o WebAppRequestErrorsErrorRulesErrorRuleOutput) CaptureSettings() WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput { + return o.ApplyT(func(v WebAppRequestErrorsErrorRulesErrorRule) WebAppRequestErrorsErrorRulesErrorRuleCaptureSettings { + return v.CaptureSettings + }).(WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput) +} + +// Match by errors that have CSP violations +func (o WebAppRequestErrorsErrorRulesErrorRuleOutput) ConsiderCspViolations() pulumi.BoolOutput { + return o.ApplyT(func(v WebAppRequestErrorsErrorRulesErrorRule) bool { return v.ConsiderCspViolations }).(pulumi.BoolOutput) +} + +// Match by errors that have failed image requests +func (o WebAppRequestErrorsErrorRulesErrorRuleOutput) ConsiderFailedImages() pulumi.BoolOutput { + return o.ApplyT(func(v WebAppRequestErrorsErrorRulesErrorRule) bool { return v.ConsiderFailedImages }).(pulumi.BoolOutput) +} + +// Match by error code +func (o WebAppRequestErrorsErrorRulesErrorRuleOutput) ErrorCodes() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAppRequestErrorsErrorRulesErrorRule) *string { return v.ErrorCodes }).(pulumi.StringPtrOutput) +} + +// Filter settings +func (o WebAppRequestErrorsErrorRulesErrorRuleOutput) FilterSettings() WebAppRequestErrorsErrorRulesErrorRuleFilterSettingsOutput { + return o.ApplyT(func(v WebAppRequestErrorsErrorRulesErrorRule) WebAppRequestErrorsErrorRulesErrorRuleFilterSettings { + return v.FilterSettings + }).(WebAppRequestErrorsErrorRulesErrorRuleFilterSettingsOutput) +} + +type WebAppRequestErrorsErrorRulesErrorRuleArrayOutput struct{ *pulumi.OutputState } + +func (WebAppRequestErrorsErrorRulesErrorRuleArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAppRequestErrorsErrorRulesErrorRule)(nil)).Elem() +} + +func (o WebAppRequestErrorsErrorRulesErrorRuleArrayOutput) ToWebAppRequestErrorsErrorRulesErrorRuleArrayOutput() WebAppRequestErrorsErrorRulesErrorRuleArrayOutput { + return o +} + +func (o WebAppRequestErrorsErrorRulesErrorRuleArrayOutput) ToWebAppRequestErrorsErrorRulesErrorRuleArrayOutputWithContext(ctx context.Context) WebAppRequestErrorsErrorRulesErrorRuleArrayOutput { + return o +} + +func (o WebAppRequestErrorsErrorRulesErrorRuleArrayOutput) Index(i pulumi.IntInput) WebAppRequestErrorsErrorRulesErrorRuleOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAppRequestErrorsErrorRulesErrorRule { + return vs[0].([]WebAppRequestErrorsErrorRulesErrorRule)[vs[1].(int)] + }).(WebAppRequestErrorsErrorRulesErrorRuleOutput) +} + +type WebAppRequestErrorsErrorRulesErrorRuleCaptureSettings struct { + // Capture this error + Capture bool `pulumi:"capture"` + // [View more details](https://dt-url.net/hd580p2k) + ConsiderForAi *bool `pulumi:"considerForAi"` + // Include error in Apdex calculations + ImpactApdex *bool `pulumi:"impactApdex"` +} + +// WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsInput is an input type that accepts WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsArgs and WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput values. +// You can construct a concrete instance of `WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsInput` via: +// +// WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsArgs{...} +type WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsInput interface { + pulumi.Input + + ToWebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput() WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput + ToWebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutputWithContext(context.Context) WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput +} + +type WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsArgs struct { + // Capture this error + Capture pulumi.BoolInput `pulumi:"capture"` + // [View more details](https://dt-url.net/hd580p2k) + ConsiderForAi pulumi.BoolPtrInput `pulumi:"considerForAi"` + // Include error in Apdex calculations + ImpactApdex pulumi.BoolPtrInput `pulumi:"impactApdex"` +} + +func (WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAppRequestErrorsErrorRulesErrorRuleCaptureSettings)(nil)).Elem() +} + +func (i WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsArgs) ToWebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput() WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput { + return i.ToWebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutputWithContext(context.Background()) +} + +func (i WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsArgs) ToWebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutputWithContext(ctx context.Context) WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput) +} + +type WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput struct{ *pulumi.OutputState } + +func (WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAppRequestErrorsErrorRulesErrorRuleCaptureSettings)(nil)).Elem() +} + +func (o WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput) ToWebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput() WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput { + return o +} + +func (o WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput) ToWebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutputWithContext(ctx context.Context) WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput { + return o +} + +// Capture this error +func (o WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput) Capture() pulumi.BoolOutput { + return o.ApplyT(func(v WebAppRequestErrorsErrorRulesErrorRuleCaptureSettings) bool { return v.Capture }).(pulumi.BoolOutput) +} + +// [View more details](https://dt-url.net/hd580p2k) +func (o WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput) ConsiderForAi() pulumi.BoolPtrOutput { + return o.ApplyT(func(v WebAppRequestErrorsErrorRulesErrorRuleCaptureSettings) *bool { return v.ConsiderForAi }).(pulumi.BoolPtrOutput) +} + +// Include error in Apdex calculations +func (o WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput) ImpactApdex() pulumi.BoolPtrOutput { + return o.ApplyT(func(v WebAppRequestErrorsErrorRulesErrorRuleCaptureSettings) *bool { return v.ImpactApdex }).(pulumi.BoolPtrOutput) +} + type WebAppRequestErrorsErrorRulesErrorRuleFilterSettings struct { // Possible Values: `BEGINS_WITH`, `CONTAINS`, `ENDS_WITH`, `EQUALS` Filter *string `pulumi:"filter"` @@ -12514,6 +12721,9 @@ func (o GetSyntheticNodesNodeArrayOutput) Index(i pulumi.IntInput) GetSyntheticN } func init() { + pulumi.RegisterInputType(reflect.TypeOf((*WebAppRequestErrorsErrorRulesErrorRuleInput)(nil)).Elem(), WebAppRequestErrorsErrorRulesErrorRuleArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAppRequestErrorsErrorRulesErrorRuleArrayInput)(nil)).Elem(), WebAppRequestErrorsErrorRulesErrorRuleArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsInput)(nil)).Elem(), WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WebAppRequestErrorsErrorRulesErrorRuleFilterSettingsInput)(nil)).Elem(), WebAppRequestErrorsErrorRulesErrorRuleFilterSettingsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WebApplicationConversionGoalsInput)(nil)).Elem(), WebApplicationConversionGoalsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WebApplicationConversionGoalsPtrInput)(nil)).Elem(), WebApplicationConversionGoalsArgs{}) @@ -12659,6 +12869,9 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*GetSyntheticLocationsLocationsPtrInput)(nil)).Elem(), GetSyntheticLocationsLocationsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetSyntheticNodesNodeInput)(nil)).Elem(), GetSyntheticNodesNodeArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetSyntheticNodesNodeArrayInput)(nil)).Elem(), GetSyntheticNodesNodeArray{}) + pulumi.RegisterOutputType(WebAppRequestErrorsErrorRulesErrorRuleOutput{}) + pulumi.RegisterOutputType(WebAppRequestErrorsErrorRulesErrorRuleArrayOutput{}) + pulumi.RegisterOutputType(WebAppRequestErrorsErrorRulesErrorRuleCaptureSettingsOutput{}) pulumi.RegisterOutputType(WebAppRequestErrorsErrorRulesErrorRuleFilterSettingsOutput{}) pulumi.RegisterOutputType(WebApplicationConversionGoalsOutput{}) pulumi.RegisterOutputType(WebApplicationConversionGoalsPtrOutput{}) diff --git a/sdk/nodejs/appMonitoring.ts b/sdk/nodejs/appMonitoring.ts index 160c734f..63560f7f 100644 --- a/sdk/nodejs/appMonitoring.ts +++ b/sdk/nodejs/appMonitoring.ts @@ -2,6 +2,8 @@ // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "./types/input"; +import * as outputs from "./types/output"; import * as utilities from "./utilities"; export class AppMonitoring extends pulumi.CustomResource { @@ -32,6 +34,10 @@ export class AppMonitoring extends pulumi.CustomResource { return obj['__pulumiType'] === AppMonitoring.__pulumiType; } + /** + * You can override the default monitoring setting for each app separately + */ + public readonly appMonitoring!: pulumi.Output; /** * Possible Values: `All`, `Off` */ @@ -50,12 +56,14 @@ export class AppMonitoring extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as AppMonitoringState | undefined; + resourceInputs["appMonitoring"] = state ? state.appMonitoring : undefined; resourceInputs["defaultLogLevel"] = state ? state.defaultLogLevel : undefined; } else { const args = argsOrState as AppMonitoringArgs | undefined; if ((!args || args.defaultLogLevel === undefined) && !opts.urn) { throw new Error("Missing required property 'defaultLogLevel'"); } + resourceInputs["appMonitoring"] = args ? args.appMonitoring : undefined; resourceInputs["defaultLogLevel"] = args ? args.defaultLogLevel : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); @@ -67,6 +75,10 @@ export class AppMonitoring extends pulumi.CustomResource { * Input properties used for looking up and filtering AppMonitoring resources. */ export interface AppMonitoringState { + /** + * You can override the default monitoring setting for each app separately + */ + appMonitoring?: pulumi.Input; /** * Possible Values: `All`, `Off` */ @@ -77,6 +89,10 @@ export interface AppMonitoringState { * The set of arguments for constructing a AppMonitoring resource. */ export interface AppMonitoringArgs { + /** + * You can override the default monitoring setting for each app separately + */ + appMonitoring?: pulumi.Input; /** * Possible Values: `All`, `Off` */ diff --git a/sdk/nodejs/config/vars.ts b/sdk/nodejs/config/vars.ts index 6d397f86..77d6d8b8 100644 --- a/sdk/nodejs/config/vars.ts +++ b/sdk/nodejs/config/vars.ts @@ -129,3 +129,19 @@ Object.defineProperty(exports, "iamClientSecret", { enumerable: true, }); +export declare const iamEndpointUrl: string | undefined; +Object.defineProperty(exports, "iamEndpointUrl", { + get() { + return __config.get("iamEndpointUrl"); + }, + enumerable: true, +}); + +export declare const iamTokenUrl: string | undefined; +Object.defineProperty(exports, "iamTokenUrl", { + get() { + return __config.get("iamTokenUrl"); + }, + enumerable: true, +}); + diff --git a/sdk/nodejs/devobsGitOnprem.ts b/sdk/nodejs/devobsGitOnprem.ts new file mode 100644 index 00000000..8a299251 --- /dev/null +++ b/sdk/nodejs/devobsGitOnprem.ts @@ -0,0 +1,118 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "./utilities"; + +export class DevobsGitOnprem extends pulumi.CustomResource { + /** + * Get an existing DevobsGitOnprem resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: DevobsGitOnpremState, opts?: pulumi.CustomResourceOptions): DevobsGitOnprem { + return new DevobsGitOnprem(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'dynatrace:index/devobsGitOnprem:DevobsGitOnprem'; + + /** + * Returns true if the given object is an instance of DevobsGitOnprem. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is DevobsGitOnprem { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === DevobsGitOnprem.__pulumiType; + } + + /** + * Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem` + */ + public readonly gitProvider!: pulumi.Output; + /** + * If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be + * set to `omit`. + */ + public readonly includeCredentials!: pulumi.Output; + /** + * An HTTP/HTTPS URL of your server + */ + public readonly url!: pulumi.Output; + + /** + * Create a DevobsGitOnprem resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: DevobsGitOnpremArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: DevobsGitOnpremArgs | DevobsGitOnpremState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as DevobsGitOnpremState | undefined; + resourceInputs["gitProvider"] = state ? state.gitProvider : undefined; + resourceInputs["includeCredentials"] = state ? state.includeCredentials : undefined; + resourceInputs["url"] = state ? state.url : undefined; + } else { + const args = argsOrState as DevobsGitOnpremArgs | undefined; + if ((!args || args.gitProvider === undefined) && !opts.urn) { + throw new Error("Missing required property 'gitProvider'"); + } + if ((!args || args.url === undefined) && !opts.urn) { + throw new Error("Missing required property 'url'"); + } + resourceInputs["gitProvider"] = args ? args.gitProvider : undefined; + resourceInputs["includeCredentials"] = args ? args.includeCredentials : undefined; + resourceInputs["url"] = args ? args.url : undefined; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(DevobsGitOnprem.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering DevobsGitOnprem resources. + */ +export interface DevobsGitOnpremState { + /** + * Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem` + */ + gitProvider?: pulumi.Input; + /** + * If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be + * set to `omit`. + */ + includeCredentials?: pulumi.Input; + /** + * An HTTP/HTTPS URL of your server + */ + url?: pulumi.Input; +} + +/** + * The set of arguments for constructing a DevobsGitOnprem resource. + */ +export interface DevobsGitOnpremArgs { + /** + * Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem` + */ + gitProvider: pulumi.Input; + /** + * If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be + * set to `omit`. + */ + includeCredentials?: pulumi.Input; + /** + * An HTTP/HTTPS URL of your server + */ + url: pulumi.Input; +} diff --git a/sdk/nodejs/index.ts b/sdk/nodejs/index.ts index 1eb12bfe..e97c8c99 100644 --- a/sdk/nodejs/index.ts +++ b/sdk/nodejs/index.ts @@ -420,6 +420,11 @@ export type DeclarativeGrouping = import("./declarativeGrouping").DeclarativeGro export const DeclarativeGrouping: typeof import("./declarativeGrouping").DeclarativeGrouping = null as any; utilities.lazyLoad(exports, ["DeclarativeGrouping"], () => require("./declarativeGrouping")); +export { DevobsGitOnpremArgs, DevobsGitOnpremState } from "./devobsGitOnprem"; +export type DevobsGitOnprem = import("./devobsGitOnprem").DevobsGitOnprem; +export const DevobsGitOnprem: typeof import("./devobsGitOnprem").DevobsGitOnprem = null as any; +utilities.lazyLoad(exports, ["DevobsGitOnprem"], () => require("./devobsGitOnprem")); + export { DirectSharesArgs, DirectSharesState } from "./directShares"; export type DirectShares = import("./directShares").DirectShares; export const DirectShares: typeof import("./directShares").DirectShares = null as any; @@ -1995,6 +2000,8 @@ const _module = { return new DduPool(name, undefined, { urn }) case "dynatrace:index/declarativeGrouping:DeclarativeGrouping": return new DeclarativeGrouping(name, undefined, { urn }) + case "dynatrace:index/devobsGitOnprem:DevobsGitOnprem": + return new DevobsGitOnprem(name, undefined, { urn }) case "dynatrace:index/directShares:DirectShares": return new DirectShares(name, undefined, { urn }) case "dynatrace:index/discoveryDefaultRules:DiscoveryDefaultRules": @@ -2547,6 +2554,7 @@ pulumi.runtime.registerResourceModule("dynatrace", "index/davisAnomalyDetectors" pulumi.runtime.registerResourceModule("dynatrace", "index/dbAppFeatureFlags", _module) pulumi.runtime.registerResourceModule("dynatrace", "index/dduPool", _module) pulumi.runtime.registerResourceModule("dynatrace", "index/declarativeGrouping", _module) +pulumi.runtime.registerResourceModule("dynatrace", "index/devobsGitOnprem", _module) pulumi.runtime.registerResourceModule("dynatrace", "index/directShares", _module) pulumi.runtime.registerResourceModule("dynatrace", "index/discoveryDefaultRules", _module) pulumi.runtime.registerResourceModule("dynatrace", "index/discoveryFeatureFlags", _module) diff --git a/sdk/nodejs/provider.ts b/sdk/nodejs/provider.ts index d8e28cc9..b010987a 100644 --- a/sdk/nodejs/provider.ts +++ b/sdk/nodejs/provider.ts @@ -49,6 +49,8 @@ export class Provider extends pulumi.ProviderResource { public readonly iamAccountId!: pulumi.Output; public readonly iamClientId!: pulumi.Output; public readonly iamClientSecret!: pulumi.Output; + public readonly iamEndpointUrl!: pulumi.Output; + public readonly iamTokenUrl!: pulumi.Output; /** * Create a Provider resource with the given unique name, arguments, and options. @@ -75,9 +77,11 @@ export class Provider extends pulumi.ProviderResource { resourceInputs["iamAccountId"] = args?.iamAccountId ? pulumi.secret(args.iamAccountId) : undefined; resourceInputs["iamClientId"] = args?.iamClientId ? pulumi.secret(args.iamClientId) : undefined; resourceInputs["iamClientSecret"] = args?.iamClientSecret ? pulumi.secret(args.iamClientSecret) : undefined; + resourceInputs["iamEndpointUrl"] = args?.iamEndpointUrl ? pulumi.secret(args.iamEndpointUrl) : undefined; + resourceInputs["iamTokenUrl"] = args?.iamTokenUrl ? pulumi.secret(args.iamTokenUrl) : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - const secretOpts = { additionalSecretOutputs: ["accountId", "automationClientId", "automationClientSecret", "clientId", "clientSecret", "dtApiToken", "dtClusterApiToken", "dtClusterUrl", "iamAccountId", "iamClientId", "iamClientSecret"] }; + const secretOpts = { additionalSecretOutputs: ["accountId", "automationClientId", "automationClientSecret", "clientId", "clientSecret", "dtApiToken", "dtClusterApiToken", "dtClusterUrl", "iamAccountId", "iamClientId", "iamClientSecret", "iamEndpointUrl", "iamTokenUrl"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(Provider.__pulumiType, name, resourceInputs, opts); } @@ -111,4 +115,6 @@ export interface ProviderArgs { iamAccountId?: pulumi.Input; iamClientId?: pulumi.Input; iamClientSecret?: pulumi.Input; + iamEndpointUrl?: pulumi.Input; + iamTokenUrl?: pulumi.Input; } diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index e64a4818..676ade57 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -98,6 +98,7 @@ "dbAppFeatureFlags.ts", "dduPool.ts", "declarativeGrouping.ts", + "devobsGitOnprem.ts", "directShares.ts", "discoveryDefaultRules.ts", "discoveryFeatureFlags.ts", diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 96ea6bb5..a14997e3 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -329,6 +329,21 @@ export interface ApiDetectionConditionsCondition { pattern: pulumi.Input; } +export interface AppMonitoringAppMonitoring { + appMonitorings: pulumi.Input[]>; +} + +export interface AppMonitoringAppMonitoringAppMonitoring { + /** + * App ID + */ + appId: pulumi.Input; + /** + * Possible Values: `Debug`, `Error`, `Info`, `Off`, `UseDefault`, `Warn` + */ + customLogLevel: pulumi.Input; +} + export interface ApplicationAnomaliesFailureRate { /** * Parameters of failure rate increase auto-detection. Example: If the expected error rate is 1.5%, and you set an absolute increase of 1%, and a relative increase of 50%, the thresholds will be: Absolute: 1.5% + **1%** = 2.5% Relative: 1.5% + 1.5% * **50%** = 2.25% diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index a992d2b8..31177ecd 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -329,6 +329,21 @@ export interface ApiDetectionConditionsCondition { pattern: string; } +export interface AppMonitoringAppMonitoring { + appMonitorings: outputs.AppMonitoringAppMonitoringAppMonitoring[]; +} + +export interface AppMonitoringAppMonitoringAppMonitoring { + /** + * App ID + */ + appId: string; + /** + * Possible Values: `Debug`, `Error`, `Info`, `Off`, `UseDefault`, `Warn` + */ + customLogLevel: string; +} + export interface ApplicationAnomaliesFailureRate { /** * Parameters of failure rate increase auto-detection. Example: If the expected error rate is 1.5%, and you set an absolute increase of 1%, and a relative increase of 50%, the thresholds will be: Absolute: 1.5% + **1%** = 2.5% Relative: 1.5% + 1.5% * **50%** = 2.25% diff --git a/sdk/python/pulumiverse_dynatrace/__init__.py b/sdk/python/pulumiverse_dynatrace/__init__.py index cd8aa543..ffc90ac1 100644 --- a/sdk/python/pulumiverse_dynatrace/__init__.py +++ b/sdk/python/pulumiverse_dynatrace/__init__.py @@ -88,6 +88,7 @@ from .db_app_feature_flags import * from .ddu_pool import * from .declarative_grouping import * +from .devobs_git_onprem import * from .direct_shares import * from .discovery_default_rules import * from .discovery_feature_flags import * @@ -1044,6 +1045,14 @@ "dynatrace:index/declarativeGrouping:DeclarativeGrouping": "DeclarativeGrouping" } }, + { + "pkg": "dynatrace", + "mod": "index/devobsGitOnprem", + "fqn": "pulumiverse_dynatrace", + "classes": { + "dynatrace:index/devobsGitOnprem:DevobsGitOnprem": "DevobsGitOnprem" + } + }, { "pkg": "dynatrace", "mod": "index/directShares", diff --git a/sdk/python/pulumiverse_dynatrace/_inputs.py b/sdk/python/pulumiverse_dynatrace/_inputs.py index c5a19215..3840e0d6 100644 --- a/sdk/python/pulumiverse_dynatrace/_inputs.py +++ b/sdk/python/pulumiverse_dynatrace/_inputs.py @@ -32,6 +32,8 @@ 'AlertingRulesRuleArgs', 'ApiDetectionConditionsArgs', 'ApiDetectionConditionsConditionArgs', + 'AppMonitoringAppMonitoringArgs', + 'AppMonitoringAppMonitoringAppMonitoringArgs', 'ApplicationAnomaliesFailureRateArgs', 'ApplicationAnomaliesFailureRateAutoArgs', 'ApplicationAnomaliesFailureRateThresholdsArgs', @@ -2744,6 +2746,59 @@ def pattern(self, value: pulumi.Input[str]): pulumi.set(self, "pattern", value) +@pulumi.input_type +class AppMonitoringAppMonitoringArgs: + def __init__(__self__, *, + app_monitorings: pulumi.Input[Sequence[pulumi.Input['AppMonitoringAppMonitoringAppMonitoringArgs']]]): + pulumi.set(__self__, "app_monitorings", app_monitorings) + + @property + @pulumi.getter(name="appMonitorings") + def app_monitorings(self) -> pulumi.Input[Sequence[pulumi.Input['AppMonitoringAppMonitoringAppMonitoringArgs']]]: + return pulumi.get(self, "app_monitorings") + + @app_monitorings.setter + def app_monitorings(self, value: pulumi.Input[Sequence[pulumi.Input['AppMonitoringAppMonitoringAppMonitoringArgs']]]): + pulumi.set(self, "app_monitorings", value) + + +@pulumi.input_type +class AppMonitoringAppMonitoringAppMonitoringArgs: + def __init__(__self__, *, + app_id: pulumi.Input[str], + custom_log_level: pulumi.Input[str]): + """ + :param pulumi.Input[str] app_id: App ID + :param pulumi.Input[str] custom_log_level: Possible Values: `Debug`, `Error`, `Info`, `Off`, `UseDefault`, `Warn` + """ + pulumi.set(__self__, "app_id", app_id) + pulumi.set(__self__, "custom_log_level", custom_log_level) + + @property + @pulumi.getter(name="appId") + def app_id(self) -> pulumi.Input[str]: + """ + App ID + """ + return pulumi.get(self, "app_id") + + @app_id.setter + def app_id(self, value: pulumi.Input[str]): + pulumi.set(self, "app_id", value) + + @property + @pulumi.getter(name="customLogLevel") + def custom_log_level(self) -> pulumi.Input[str]: + """ + Possible Values: `Debug`, `Error`, `Info`, `Off`, `UseDefault`, `Warn` + """ + return pulumi.get(self, "custom_log_level") + + @custom_log_level.setter + def custom_log_level(self, value: pulumi.Input[str]): + pulumi.set(self, "custom_log_level", value) + + @pulumi.input_type class ApplicationAnomaliesFailureRateArgs: def __init__(__self__, *, diff --git a/sdk/python/pulumiverse_dynatrace/app_monitoring.py b/sdk/python/pulumiverse_dynatrace/app_monitoring.py index 86f0abf7..906ea0b5 100644 --- a/sdk/python/pulumiverse_dynatrace/app_monitoring.py +++ b/sdk/python/pulumiverse_dynatrace/app_monitoring.py @@ -8,18 +8,24 @@ import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities +from . import outputs +from ._inputs import * __all__ = ['AppMonitoringArgs', 'AppMonitoring'] @pulumi.input_type class AppMonitoringArgs: def __init__(__self__, *, - default_log_level: pulumi.Input[str]): + default_log_level: pulumi.Input[str], + app_monitoring: Optional[pulumi.Input['AppMonitoringAppMonitoringArgs']] = None): """ The set of arguments for constructing a AppMonitoring resource. :param pulumi.Input[str] default_log_level: Possible Values: `All`, `Off` + :param pulumi.Input['AppMonitoringAppMonitoringArgs'] app_monitoring: You can override the default monitoring setting for each app separately """ pulumi.set(__self__, "default_log_level", default_log_level) + if app_monitoring is not None: + pulumi.set(__self__, "app_monitoring", app_monitoring) @property @pulumi.getter(name="defaultLogLevel") @@ -33,18 +39,46 @@ def default_log_level(self) -> pulumi.Input[str]: def default_log_level(self, value: pulumi.Input[str]): pulumi.set(self, "default_log_level", value) + @property + @pulumi.getter(name="appMonitoring") + def app_monitoring(self) -> Optional[pulumi.Input['AppMonitoringAppMonitoringArgs']]: + """ + You can override the default monitoring setting for each app separately + """ + return pulumi.get(self, "app_monitoring") + + @app_monitoring.setter + def app_monitoring(self, value: Optional[pulumi.Input['AppMonitoringAppMonitoringArgs']]): + pulumi.set(self, "app_monitoring", value) + @pulumi.input_type class _AppMonitoringState: def __init__(__self__, *, + app_monitoring: Optional[pulumi.Input['AppMonitoringAppMonitoringArgs']] = None, default_log_level: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering AppMonitoring resources. + :param pulumi.Input['AppMonitoringAppMonitoringArgs'] app_monitoring: You can override the default monitoring setting for each app separately :param pulumi.Input[str] default_log_level: Possible Values: `All`, `Off` """ + if app_monitoring is not None: + pulumi.set(__self__, "app_monitoring", app_monitoring) if default_log_level is not None: pulumi.set(__self__, "default_log_level", default_log_level) + @property + @pulumi.getter(name="appMonitoring") + def app_monitoring(self) -> Optional[pulumi.Input['AppMonitoringAppMonitoringArgs']]: + """ + You can override the default monitoring setting for each app separately + """ + return pulumi.get(self, "app_monitoring") + + @app_monitoring.setter + def app_monitoring(self, value: Optional[pulumi.Input['AppMonitoringAppMonitoringArgs']]): + pulumi.set(self, "app_monitoring", value) + @property @pulumi.getter(name="defaultLogLevel") def default_log_level(self) -> Optional[pulumi.Input[str]]: @@ -63,12 +97,14 @@ class AppMonitoring(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + app_monitoring: Optional[pulumi.Input[Union['AppMonitoringAppMonitoringArgs', 'AppMonitoringAppMonitoringArgsDict']]] = None, default_log_level: Optional[pulumi.Input[str]] = None, __props__=None): """ Create a AppMonitoring resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Union['AppMonitoringAppMonitoringArgs', 'AppMonitoringAppMonitoringArgsDict']] app_monitoring: You can override the default monitoring setting for each app separately :param pulumi.Input[str] default_log_level: Possible Values: `All`, `Off` """ ... @@ -94,6 +130,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + app_monitoring: Optional[pulumi.Input[Union['AppMonitoringAppMonitoringArgs', 'AppMonitoringAppMonitoringArgsDict']]] = None, default_log_level: Optional[pulumi.Input[str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) @@ -104,6 +141,7 @@ def _internal_init(__self__, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = AppMonitoringArgs.__new__(AppMonitoringArgs) + __props__.__dict__["app_monitoring"] = app_monitoring if default_log_level is None and not opts.urn: raise TypeError("Missing required property 'default_log_level'") __props__.__dict__["default_log_level"] = default_log_level @@ -117,6 +155,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, + app_monitoring: Optional[pulumi.Input[Union['AppMonitoringAppMonitoringArgs', 'AppMonitoringAppMonitoringArgsDict']]] = None, default_log_level: Optional[pulumi.Input[str]] = None) -> 'AppMonitoring': """ Get an existing AppMonitoring resource's state with the given name, id, and optional extra @@ -125,15 +164,25 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Union['AppMonitoringAppMonitoringArgs', 'AppMonitoringAppMonitoringArgsDict']] app_monitoring: You can override the default monitoring setting for each app separately :param pulumi.Input[str] default_log_level: Possible Values: `All`, `Off` """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = _AppMonitoringState.__new__(_AppMonitoringState) + __props__.__dict__["app_monitoring"] = app_monitoring __props__.__dict__["default_log_level"] = default_log_level return AppMonitoring(resource_name, opts=opts, __props__=__props__) + @property + @pulumi.getter(name="appMonitoring") + def app_monitoring(self) -> pulumi.Output[Optional['outputs.AppMonitoringAppMonitoring']]: + """ + You can override the default monitoring setting for each app separately + """ + return pulumi.get(self, "app_monitoring") + @property @pulumi.getter(name="defaultLogLevel") def default_log_level(self) -> pulumi.Output[str]: diff --git a/sdk/python/pulumiverse_dynatrace/config/__init__.pyi b/sdk/python/pulumiverse_dynatrace/config/__init__.pyi index c71e7436..4d02285f 100644 --- a/sdk/python/pulumiverse_dynatrace/config/__init__.pyi +++ b/sdk/python/pulumiverse_dynatrace/config/__init__.pyi @@ -47,3 +47,7 @@ iamClientId: Optional[str] iamClientSecret: Optional[str] +iamEndpointUrl: Optional[str] + +iamTokenUrl: Optional[str] + diff --git a/sdk/python/pulumiverse_dynatrace/config/vars.py b/sdk/python/pulumiverse_dynatrace/config/vars.py index aab2bbb5..6e3eaac4 100644 --- a/sdk/python/pulumiverse_dynatrace/config/vars.py +++ b/sdk/python/pulumiverse_dynatrace/config/vars.py @@ -81,3 +81,11 @@ def iam_client_id(self) -> Optional[str]: def iam_client_secret(self) -> Optional[str]: return __config__.get('iamClientSecret') + @property + def iam_endpoint_url(self) -> Optional[str]: + return __config__.get('iamEndpointUrl') + + @property + def iam_token_url(self) -> Optional[str]: + return __config__.get('iamTokenUrl') + diff --git a/sdk/python/pulumiverse_dynatrace/devobs_git_onprem.py b/sdk/python/pulumiverse_dynatrace/devobs_git_onprem.py new file mode 100644 index 00000000..7d83dfcd --- /dev/null +++ b/sdk/python/pulumiverse_dynatrace/devobs_git_onprem.py @@ -0,0 +1,246 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +from . import _utilities + +__all__ = ['DevobsGitOnpremArgs', 'DevobsGitOnprem'] + +@pulumi.input_type +class DevobsGitOnpremArgs: + def __init__(__self__, *, + git_provider: pulumi.Input[str], + url: pulumi.Input[str], + include_credentials: Optional[pulumi.Input[bool]] = None): + """ + The set of arguments for constructing a DevobsGitOnprem resource. + :param pulumi.Input[str] git_provider: Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem` + :param pulumi.Input[str] url: An HTTP/HTTPS URL of your server + :param pulumi.Input[bool] include_credentials: If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be + set to `omit`. + """ + pulumi.set(__self__, "git_provider", git_provider) + pulumi.set(__self__, "url", url) + if include_credentials is not None: + pulumi.set(__self__, "include_credentials", include_credentials) + + @property + @pulumi.getter(name="gitProvider") + def git_provider(self) -> pulumi.Input[str]: + """ + Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem` + """ + return pulumi.get(self, "git_provider") + + @git_provider.setter + def git_provider(self, value: pulumi.Input[str]): + pulumi.set(self, "git_provider", value) + + @property + @pulumi.getter + def url(self) -> pulumi.Input[str]: + """ + An HTTP/HTTPS URL of your server + """ + return pulumi.get(self, "url") + + @url.setter + def url(self, value: pulumi.Input[str]): + pulumi.set(self, "url", value) + + @property + @pulumi.getter(name="includeCredentials") + def include_credentials(self) -> Optional[pulumi.Input[bool]]: + """ + If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be + set to `omit`. + """ + return pulumi.get(self, "include_credentials") + + @include_credentials.setter + def include_credentials(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "include_credentials", value) + + +@pulumi.input_type +class _DevobsGitOnpremState: + def __init__(__self__, *, + git_provider: Optional[pulumi.Input[str]] = None, + include_credentials: Optional[pulumi.Input[bool]] = None, + url: Optional[pulumi.Input[str]] = None): + """ + Input properties used for looking up and filtering DevobsGitOnprem resources. + :param pulumi.Input[str] git_provider: Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem` + :param pulumi.Input[bool] include_credentials: If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be + set to `omit`. + :param pulumi.Input[str] url: An HTTP/HTTPS URL of your server + """ + if git_provider is not None: + pulumi.set(__self__, "git_provider", git_provider) + if include_credentials is not None: + pulumi.set(__self__, "include_credentials", include_credentials) + if url is not None: + pulumi.set(__self__, "url", url) + + @property + @pulumi.getter(name="gitProvider") + def git_provider(self) -> Optional[pulumi.Input[str]]: + """ + Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem` + """ + return pulumi.get(self, "git_provider") + + @git_provider.setter + def git_provider(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "git_provider", value) + + @property + @pulumi.getter(name="includeCredentials") + def include_credentials(self) -> Optional[pulumi.Input[bool]]: + """ + If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be + set to `omit`. + """ + return pulumi.get(self, "include_credentials") + + @include_credentials.setter + def include_credentials(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "include_credentials", value) + + @property + @pulumi.getter + def url(self) -> Optional[pulumi.Input[str]]: + """ + An HTTP/HTTPS URL of your server + """ + return pulumi.get(self, "url") + + @url.setter + def url(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "url", value) + + +class DevobsGitOnprem(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + git_provider: Optional[pulumi.Input[str]] = None, + include_credentials: Optional[pulumi.Input[bool]] = None, + url: Optional[pulumi.Input[str]] = None, + __props__=None): + """ + Create a DevobsGitOnprem resource with the given unique name, props, and options. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] git_provider: Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem` + :param pulumi.Input[bool] include_credentials: If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be + set to `omit`. + :param pulumi.Input[str] url: An HTTP/HTTPS URL of your server + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: DevobsGitOnpremArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Create a DevobsGitOnprem resource with the given unique name, props, and options. + :param str resource_name: The name of the resource. + :param DevobsGitOnpremArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(DevobsGitOnpremArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + git_provider: Optional[pulumi.Input[str]] = None, + include_credentials: Optional[pulumi.Input[bool]] = None, + url: Optional[pulumi.Input[str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = DevobsGitOnpremArgs.__new__(DevobsGitOnpremArgs) + + if git_provider is None and not opts.urn: + raise TypeError("Missing required property 'git_provider'") + __props__.__dict__["git_provider"] = git_provider + __props__.__dict__["include_credentials"] = include_credentials + if url is None and not opts.urn: + raise TypeError("Missing required property 'url'") + __props__.__dict__["url"] = url + super(DevobsGitOnprem, __self__).__init__( + 'dynatrace:index/devobsGitOnprem:DevobsGitOnprem', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + git_provider: Optional[pulumi.Input[str]] = None, + include_credentials: Optional[pulumi.Input[bool]] = None, + url: Optional[pulumi.Input[str]] = None) -> 'DevobsGitOnprem': + """ + Get an existing DevobsGitOnprem resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] git_provider: Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem` + :param pulumi.Input[bool] include_credentials: If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be + set to `omit`. + :param pulumi.Input[str] url: An HTTP/HTTPS URL of your server + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _DevobsGitOnpremState.__new__(_DevobsGitOnpremState) + + __props__.__dict__["git_provider"] = git_provider + __props__.__dict__["include_credentials"] = include_credentials + __props__.__dict__["url"] = url + return DevobsGitOnprem(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter(name="gitProvider") + def git_provider(self) -> pulumi.Output[str]: + """ + Possible Values: `AzureOnPrem`, `BitbucketOnPrem`, `GithubOnPrem`, `GitlabOnPrem` + """ + return pulumi.get(self, "git_provider") + + @property + @pulumi.getter(name="includeCredentials") + def include_credentials(self) -> pulumi.Output[Optional[bool]]: + """ + If turned on, requests to your Gitlab server will have the `credentials` option set to `include`. Otherwise, it will be + set to `omit`. + """ + return pulumi.get(self, "include_credentials") + + @property + @pulumi.getter + def url(self) -> pulumi.Output[str]: + """ + An HTTP/HTTPS URL of your server + """ + return pulumi.get(self, "url") + diff --git a/sdk/python/pulumiverse_dynatrace/outputs.py b/sdk/python/pulumiverse_dynatrace/outputs.py index ae528ee8..6e9b3da2 100644 --- a/sdk/python/pulumiverse_dynatrace/outputs.py +++ b/sdk/python/pulumiverse_dynatrace/outputs.py @@ -33,6 +33,8 @@ 'AlertingRulesRule', 'ApiDetectionConditions', 'ApiDetectionConditionsCondition', + 'AppMonitoringAppMonitoring', + 'AppMonitoringAppMonitoringAppMonitoring', 'ApplicationAnomaliesFailureRate', 'ApplicationAnomaliesFailureRateAuto', 'ApplicationAnomaliesFailureRateThresholds', @@ -2698,6 +2700,83 @@ def pattern(self) -> str: return pulumi.get(self, "pattern") +@pulumi.output_type +class AppMonitoringAppMonitoring(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "appMonitorings": + suggest = "app_monitorings" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in AppMonitoringAppMonitoring. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + AppMonitoringAppMonitoring.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + AppMonitoringAppMonitoring.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + app_monitorings: Sequence['outputs.AppMonitoringAppMonitoringAppMonitoring']): + pulumi.set(__self__, "app_monitorings", app_monitorings) + + @property + @pulumi.getter(name="appMonitorings") + def app_monitorings(self) -> Sequence['outputs.AppMonitoringAppMonitoringAppMonitoring']: + return pulumi.get(self, "app_monitorings") + + +@pulumi.output_type +class AppMonitoringAppMonitoringAppMonitoring(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "appId": + suggest = "app_id" + elif key == "customLogLevel": + suggest = "custom_log_level" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in AppMonitoringAppMonitoringAppMonitoring. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + AppMonitoringAppMonitoringAppMonitoring.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + AppMonitoringAppMonitoringAppMonitoring.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + app_id: str, + custom_log_level: str): + """ + :param str app_id: App ID + :param str custom_log_level: Possible Values: `Debug`, `Error`, `Info`, `Off`, `UseDefault`, `Warn` + """ + pulumi.set(__self__, "app_id", app_id) + pulumi.set(__self__, "custom_log_level", custom_log_level) + + @property + @pulumi.getter(name="appId") + def app_id(self) -> str: + """ + App ID + """ + return pulumi.get(self, "app_id") + + @property + @pulumi.getter(name="customLogLevel") + def custom_log_level(self) -> str: + """ + Possible Values: `Debug`, `Error`, `Info`, `Off`, `UseDefault`, `Warn` + """ + return pulumi.get(self, "custom_log_level") + + @pulumi.output_type class ApplicationAnomaliesFailureRate(dict): def __init__(__self__, *, diff --git a/sdk/python/pulumiverse_dynatrace/provider.py b/sdk/python/pulumiverse_dynatrace/provider.py index 23a761e4..57363914 100644 --- a/sdk/python/pulumiverse_dynatrace/provider.py +++ b/sdk/python/pulumiverse_dynatrace/provider.py @@ -27,7 +27,9 @@ def __init__(__self__, *, dt_env_url: Optional[pulumi.Input[str]] = None, iam_account_id: Optional[pulumi.Input[str]] = None, iam_client_id: Optional[pulumi.Input[str]] = None, - iam_client_secret: Optional[pulumi.Input[str]] = None): + iam_client_secret: Optional[pulumi.Input[str]] = None, + iam_endpoint_url: Optional[pulumi.Input[str]] = None, + iam_token_url: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a Provider resource. :param pulumi.Input[str] automation_env_url: The URL of the Dynatrace Environment with Platform capabilities turned on (`https://#####.apps.dynatrace.com)`. This is @@ -73,6 +75,10 @@ def __init__(__self__, *, pulumi.set(__self__, "iam_client_id", iam_client_id) if iam_client_secret is not None: pulumi.set(__self__, "iam_client_secret", iam_client_secret) + if iam_endpoint_url is not None: + pulumi.set(__self__, "iam_endpoint_url", iam_endpoint_url) + if iam_token_url is not None: + pulumi.set(__self__, "iam_token_url", iam_token_url) @property @pulumi.getter(name="accountId") @@ -210,6 +216,24 @@ def iam_client_secret(self) -> Optional[pulumi.Input[str]]: def iam_client_secret(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "iam_client_secret", value) + @property + @pulumi.getter(name="iamEndpointUrl") + def iam_endpoint_url(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "iam_endpoint_url") + + @iam_endpoint_url.setter + def iam_endpoint_url(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "iam_endpoint_url", value) + + @property + @pulumi.getter(name="iamTokenUrl") + def iam_token_url(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "iam_token_url") + + @iam_token_url.setter + def iam_token_url(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "iam_token_url", value) + class Provider(pulumi.ProviderResource): @overload @@ -230,6 +254,8 @@ def __init__(__self__, iam_account_id: Optional[pulumi.Input[str]] = None, iam_client_id: Optional[pulumi.Input[str]] = None, iam_client_secret: Optional[pulumi.Input[str]] = None, + iam_endpoint_url: Optional[pulumi.Input[str]] = None, + iam_token_url: Optional[pulumi.Input[str]] = None, __props__=None): """ The provider type for the dynatrace package. By default, resources use package-wide configuration @@ -287,6 +313,8 @@ def _internal_init(__self__, iam_account_id: Optional[pulumi.Input[str]] = None, iam_client_id: Optional[pulumi.Input[str]] = None, iam_client_secret: Optional[pulumi.Input[str]] = None, + iam_endpoint_url: Optional[pulumi.Input[str]] = None, + iam_token_url: Optional[pulumi.Input[str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -318,7 +346,9 @@ def _internal_init(__self__, __props__.__dict__["iam_account_id"] = None if iam_account_id is None else pulumi.Output.secret(iam_account_id) __props__.__dict__["iam_client_id"] = None if iam_client_id is None else pulumi.Output.secret(iam_client_id) __props__.__dict__["iam_client_secret"] = None if iam_client_secret is None else pulumi.Output.secret(iam_client_secret) - secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["accountId", "automationClientId", "automationClientSecret", "clientId", "clientSecret", "dtApiToken", "dtClusterApiToken", "dtClusterUrl", "iamAccountId", "iamClientId", "iamClientSecret"]) + __props__.__dict__["iam_endpoint_url"] = None if iam_endpoint_url is None else pulumi.Output.secret(iam_endpoint_url) + __props__.__dict__["iam_token_url"] = None if iam_token_url is None else pulumi.Output.secret(iam_token_url) + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["accountId", "automationClientId", "automationClientSecret", "clientId", "clientSecret", "dtApiToken", "dtClusterApiToken", "dtClusterUrl", "iamAccountId", "iamClientId", "iamClientSecret", "iamEndpointUrl", "iamTokenUrl"]) opts = pulumi.ResourceOptions.merge(opts, secret_opts) super(Provider, __self__).__init__( 'dynatrace', @@ -406,3 +436,13 @@ def iam_client_id(self) -> pulumi.Output[Optional[str]]: def iam_client_secret(self) -> pulumi.Output[Optional[str]]: return pulumi.get(self, "iam_client_secret") + @property + @pulumi.getter(name="iamEndpointUrl") + def iam_endpoint_url(self) -> pulumi.Output[Optional[str]]: + return pulumi.get(self, "iam_endpoint_url") + + @property + @pulumi.getter(name="iamTokenUrl") + def iam_token_url(self) -> pulumi.Output[Optional[str]]: + return pulumi.get(self, "iam_token_url") +