@gradientedge/cdk-utils 9.39.1 → 9.39.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/lib/azure/services/application-insights/main.js +2 -1
- package/dist/src/lib/azure/services/application-insights/types.d.ts +3 -1
- package/dist/src/lib/azure/services/function/main.js +1 -0
- package/dist/src/lib/azure/services/function/types.d.ts +1 -0
- package/package.json +1 -1
- package/src/lib/azure/services/application-insights/main.ts +2 -1
- package/src/lib/azure/services/application-insights/types.ts +4 -1
- package/src/lib/azure/services/function/main.ts +1 -0
- package/src/lib/azure/services/function/types.ts +1 -0
|
@@ -41,8 +41,9 @@ class AzureApplicationInsightsManager {
|
|
|
41
41
|
throw `Resource group undefined for ${id}`;
|
|
42
42
|
const applicationInsights = new application_insights_1.ApplicationInsights(scope, `${id}-am`, {
|
|
43
43
|
...props,
|
|
44
|
-
name: `${props.name}-${scope.props.stage}
|
|
44
|
+
name: `${props.name}-${scope.props.stage}` || '',
|
|
45
45
|
resourceGroupName: resourceGroup.name,
|
|
46
|
+
applicationType: props.applicationType || 'web',
|
|
46
47
|
tags: props.tags ?? {
|
|
47
48
|
environment: scope.props.stage,
|
|
48
49
|
},
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { ApplicationInsightsConfig } from '@cdktf/provider-azurerm/lib/application-insights';
|
|
2
|
-
export interface ApplicationInsightsProps extends ApplicationInsightsConfig {
|
|
2
|
+
export interface ApplicationInsightsProps extends Omit<ApplicationInsightsConfig, 'applicationType' | 'name'> {
|
|
3
|
+
name?: string | undefined;
|
|
4
|
+
applicationType?: string | undefined;
|
|
3
5
|
}
|
|
@@ -117,6 +117,7 @@ class AzureFunctionManager {
|
|
|
117
117
|
version: props.runtimeVersion || '20',
|
|
118
118
|
},
|
|
119
119
|
scaleAndConcurrency: {
|
|
120
|
+
alwaysReady: props.alwaysReady,
|
|
120
121
|
instanceMemoryMB: props.instanceMemory || 2048,
|
|
121
122
|
maximumInstanceCount: props.maximumInstanceCount || 40,
|
|
122
123
|
triggers: {},
|
|
@@ -5,6 +5,7 @@ export interface FunctionAppProps extends LinuxFunctionAppConfig {
|
|
|
5
5
|
export interface FunctionProps extends FunctionAppFunctionConfig {
|
|
6
6
|
}
|
|
7
7
|
export interface FunctionAppFlexConsumptionProps {
|
|
8
|
+
alwaysReady?: any;
|
|
8
9
|
appServicePlanId: string;
|
|
9
10
|
appSettings: any;
|
|
10
11
|
blobEndpoint: string;
|
package/package.json
CHANGED
|
@@ -42,8 +42,9 @@ export class AzureApplicationInsightsManager {
|
|
|
42
42
|
|
|
43
43
|
const applicationInsights = new ApplicationInsights(scope, `${id}-am`, {
|
|
44
44
|
...props,
|
|
45
|
-
name: `${props.name}-${scope.props.stage}
|
|
45
|
+
name: `${props.name}-${scope.props.stage}` || '',
|
|
46
46
|
resourceGroupName: resourceGroup.name,
|
|
47
|
+
applicationType: props.applicationType || 'web',
|
|
47
48
|
tags: props.tags ?? {
|
|
48
49
|
environment: scope.props.stage,
|
|
49
50
|
},
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { ApplicationInsightsConfig } from '@cdktf/provider-azurerm/lib/application-insights'
|
|
2
2
|
|
|
3
|
-
export interface ApplicationInsightsProps extends ApplicationInsightsConfig {
|
|
3
|
+
export interface ApplicationInsightsProps extends Omit<ApplicationInsightsConfig, 'applicationType' | 'name'> {
|
|
4
|
+
name?: string | undefined
|
|
5
|
+
applicationType?: string | undefined
|
|
6
|
+
}
|
|
@@ -133,6 +133,7 @@ export class AzureFunctionManager {
|
|
|
133
133
|
version: props.runtimeVersion || '20',
|
|
134
134
|
},
|
|
135
135
|
scaleAndConcurrency: {
|
|
136
|
+
alwaysReady: props.alwaysReady,
|
|
136
137
|
instanceMemoryMB: props.instanceMemory || 2048,
|
|
137
138
|
maximumInstanceCount: props.maximumInstanceCount || 40,
|
|
138
139
|
triggers: {},
|
|
@@ -7,6 +7,7 @@ export interface FunctionAppProps extends LinuxFunctionAppConfig {}
|
|
|
7
7
|
export interface FunctionProps extends FunctionAppFunctionConfig {}
|
|
8
8
|
|
|
9
9
|
export interface FunctionAppFlexConsumptionProps {
|
|
10
|
+
alwaysReady?: any
|
|
10
11
|
appServicePlanId: string
|
|
11
12
|
appSettings: any
|
|
12
13
|
blobEndpoint: string
|