-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathcheck-group-ref.ts
More file actions
43 lines (37 loc) · 1.4 KB
/
check-group-ref.ts
File metadata and controls
43 lines (37 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { CheckConfigDefaults, MonitorConfigDefaults } from '../services/checkly-config-loader'
import { CheckGroupV1 } from './check-group-v1'
import { Construct } from './construct'
import { Session } from './project'
/**
* Creates a reference to an existing Check Group (both v1 and v2).
*
* References link existing resources to a project without managing them.
*/
export class CheckGroupRef extends Construct {
constructor (logicalId: string, physicalId: string|number) {
super(CheckGroupV1.__checklyType, logicalId, physicalId, false)
Session.registerConstruct(this)
}
public getCheckDefaults (): CheckConfigDefaults {
// The only value CheckGroup.getCheckDefaults() returns is frequency,
// which exists purely for convenience, and only at CLI-level. It never
// gets sent to the backend. If references are being used, no access to
// this feature is required, and it can be ignored entirely.
return {}
}
public getBrowserCheckDefaults (): CheckConfigDefaults {
// See the comment for getCheckDefaults(), the same applies here.
return {}
}
public getMultiStepCheckDefaults (): CheckConfigDefaults {
// See the comment for getCheckDefaults(), the same applies here.
return {}
}
public getMonitorDefaults (): MonitorConfigDefaults {
// See the comment for getCheckDefaults(), the same applies here.
return {}
}
synthesize () {
return null
}
}