-
Notifications
You must be signed in to change notification settings - Fork 13
/
enum.go
723 lines (626 loc) · 34.1 KB
/
enum.go
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
// Code generated by gen.go; DO NOT EDIT.
package opslevel
// AlertSourceTypeEnum The monitor status level.
type AlertSourceStatusTypeEnum string
const (
AlertSourceStatusTypeEnumAlert AlertSourceStatusTypeEnum = "alert" // Monitor is reporting an alert.
AlertSourceStatusTypeEnumFetchingData AlertSourceStatusTypeEnum = "fetching_data" // Monitor currently being updated.
AlertSourceStatusTypeEnumNoData AlertSourceStatusTypeEnum = "no_data" // No data received yet. Ensure your monitors are configured correctly.
AlertSourceStatusTypeEnumOk AlertSourceStatusTypeEnum = "ok" // Monitor is not reporting any warnings or alerts.
AlertSourceStatusTypeEnumWarn AlertSourceStatusTypeEnum = "warn" // Monitor is reporting a warning.
)
// All AlertSourceStatusTypeEnum as []string
var AllAlertSourceStatusTypeEnum = []string{
string(AlertSourceStatusTypeEnumAlert),
string(AlertSourceStatusTypeEnumFetchingData),
string(AlertSourceStatusTypeEnumNoData),
string(AlertSourceStatusTypeEnumOk),
string(AlertSourceStatusTypeEnumWarn),
}
// AlertSourceTypeEnum represents the type of the alert source.
type AlertSourceTypeEnum string
const (
AlertSourceTypeEnumDatadog AlertSourceTypeEnum = "datadog" // A Datadog alert source (aka monitor).
AlertSourceTypeEnumOpsgenie AlertSourceTypeEnum = "opsgenie" // An Opsgenie alert source (aka service).
AlertSourceTypeEnumPagerduty AlertSourceTypeEnum = "pagerduty" // A PagerDuty alert source (aka service).
AlertSourceTypeEnumNewRelic AlertSourceTypeEnum = "new_relic" // A New Relic alert source (aka monitor).
)
// All AlertSourceTypeEnum as []string
var AllAlertSourceTypeEnum = []string{
string(AlertSourceTypeEnumDatadog),
string(AlertSourceTypeEnumOpsgenie),
string(AlertSourceTypeEnumPagerduty),
string(AlertSourceTypeEnumNewRelic),
}
// AliasOwnerTypeEnum represents the owner type an alias is assigned to.
type AliasOwnerTypeEnum string
const (
AliasOwnerTypeEnumService AliasOwnerTypeEnum = "service" // Aliases that are assigned to services.
AliasOwnerTypeEnumTeam AliasOwnerTypeEnum = "team" // Aliases that are assigned to teams.
AliasOwnerTypeEnumSystem AliasOwnerTypeEnum = "system" // Aliases that are assigned to systems.
AliasOwnerTypeEnumDomain AliasOwnerTypeEnum = "domain" // Aliases that are assigned to domains.
AliasOwnerTypeEnumGroup AliasOwnerTypeEnum = "group" // Aliases that are assigned to groups.
AliasOwnerTypeEnumInfrastructureResource AliasOwnerTypeEnum = "infrastructure_resource" // Aliases that are assigned to infrastructure resources
)
// All AliasOwnerTypeEnum as []string
var AllAliasOwnerTypeEnum = []string{
string(AliasOwnerTypeEnumService),
string(AliasOwnerTypeEnumTeam),
string(AliasOwnerTypeEnumSystem),
string(AliasOwnerTypeEnumDomain),
string(AliasOwnerTypeEnumGroup),
string(AliasOwnerTypeEnumInfrastructureResource),
}
// ApiDocumentSourceEnum represents the source used to determine the preferred API document.
type ApiDocumentSourceEnum string
const (
ApiDocumentSourceEnumPull ApiDocumentSourceEnum = "PULL" // Use the document that was pulled by OpsLevel via a repo.
ApiDocumentSourceEnumPush ApiDocumentSourceEnum = "PUSH" // Use the document that was pushed to OpsLevel via an API Docs integration.
)
// All ApiDocumentSourceEnum as []string
var AllApiDocumentSourceEnum = []string{
string(ApiDocumentSourceEnumPull),
string(ApiDocumentSourceEnumPush),
}
// BasicTypeEnum
type BasicTypeEnum string
const (
BasicTypeEnumDoesNotEqual BasicTypeEnum = "does_not_equal" //
BasicTypeEnumEquals BasicTypeEnum = "equals" //
)
// All BasicTypeEnum as []string
var AllBasicTypeEnum = []string{
string(BasicTypeEnumDoesNotEqual),
string(BasicTypeEnumEquals),
}
// CampaignFilterEnum
type CampaignFilterEnum string
const (
CampaignFilterEnumID CampaignFilterEnum = "id" //
CampaignFilterEnumOwner CampaignFilterEnum = "owner" //
CampaignFilterEnumStatus CampaignFilterEnum = "status" //
)
// All CampaignFilterEnum as []string
var AllCampaignFilterEnum = []string{
string(CampaignFilterEnumID),
string(CampaignFilterEnumOwner),
string(CampaignFilterEnumStatus),
}
// CampaignReminderTypeEnum
type CampaignReminderTypeEnum string
const (
CampaignReminderTypeEnumEmail CampaignReminderTypeEnum = "email" //
CampaignReminderTypeEnumSlack CampaignReminderTypeEnum = "slack" //
)
// All CampaignReminderTypeEnum as []string
var AllCampaignReminderTypeEnum = []string{
string(CampaignReminderTypeEnumEmail),
string(CampaignReminderTypeEnumSlack),
}
// CampaignServiceStatusEnum
type CampaignServiceStatusEnum string
const (
CampaignServiceStatusEnumFailing CampaignServiceStatusEnum = "failing" //
CampaignServiceStatusEnumPassing CampaignServiceStatusEnum = "passing" //
)
// All CampaignServiceStatusEnum as []string
var AllCampaignServiceStatusEnum = []string{
string(CampaignServiceStatusEnumFailing),
string(CampaignServiceStatusEnumPassing),
}
// CampaignSortEnum
type CampaignSortEnum string
const (
CampaignSortEnumChecksPassingAsc CampaignSortEnum = "checks_passing_ASC" //
CampaignSortEnumChecksPassingDesc CampaignSortEnum = "checks_passing_DESC" //
CampaignSortEnumEndedDateAsc CampaignSortEnum = "ended_date_ASC" //
CampaignSortEnumEndedDateDesc CampaignSortEnum = "ended_date_DESC" //
CampaignSortEnumFilterAsc CampaignSortEnum = "filter_ASC" //
CampaignSortEnumFilterDesc CampaignSortEnum = "filter_DESC" //
CampaignSortEnumNameAsc CampaignSortEnum = "name_ASC" //
CampaignSortEnumNameDesc CampaignSortEnum = "name_DESC" //
CampaignSortEnumOwnerAsc CampaignSortEnum = "owner_ASC" //
CampaignSortEnumOwnerDesc CampaignSortEnum = "owner_DESC" //
CampaignSortEnumServicesCompleteAsc CampaignSortEnum = "services_complete_ASC" //
CampaignSortEnumServicesCompleteDesc CampaignSortEnum = "services_complete_DESC" //
CampaignSortEnumStartDateAsc CampaignSortEnum = "start_date_ASC" //
CampaignSortEnumStartDateDesc CampaignSortEnum = "start_date_DESC" //
CampaignSortEnumStatusAsc CampaignSortEnum = "status_ASC" //
CampaignSortEnumStatusDesc CampaignSortEnum = "status_DESC" //
CampaignSortEnumTargetDateAsc CampaignSortEnum = "target_date_ASC" //
CampaignSortEnumTargetDateDesc CampaignSortEnum = "target_date_DESC" //
)
// All CampaignSortEnum as []string
var AllCampaignSortEnum = []string{
string(CampaignSortEnumChecksPassingAsc),
string(CampaignSortEnumChecksPassingDesc),
string(CampaignSortEnumEndedDateAsc),
string(CampaignSortEnumEndedDateDesc),
string(CampaignSortEnumFilterAsc),
string(CampaignSortEnumFilterDesc),
string(CampaignSortEnumNameAsc),
string(CampaignSortEnumNameDesc),
string(CampaignSortEnumOwnerAsc),
string(CampaignSortEnumOwnerDesc),
string(CampaignSortEnumServicesCompleteAsc),
string(CampaignSortEnumServicesCompleteDesc),
string(CampaignSortEnumStartDateAsc),
string(CampaignSortEnumStartDateDesc),
string(CampaignSortEnumStatusAsc),
string(CampaignSortEnumStatusDesc),
string(CampaignSortEnumTargetDateAsc),
string(CampaignSortEnumTargetDateDesc),
}
// CampaignStatusEnum
type CampaignStatusEnum string
const (
CampaignStatusEnumDelayed CampaignStatusEnum = "delayed" //
CampaignStatusEnumDraft CampaignStatusEnum = "draft" //
CampaignStatusEnumEnded CampaignStatusEnum = "ended" //
CampaignStatusEnumInProgress CampaignStatusEnum = "in_progress" //
CampaignStatusEnumScheduled CampaignStatusEnum = "scheduled" //
)
// All CampaignStatusEnum as []string
var AllCampaignStatusEnum = []string{
string(CampaignStatusEnumDelayed),
string(CampaignStatusEnumDraft),
string(CampaignStatusEnumEnded),
string(CampaignStatusEnumInProgress),
string(CampaignStatusEnumScheduled),
}
// CheckStatus represents the evaluation status of the check.
type CheckStatus string
const (
CheckStatusFailed CheckStatus = "failed" // The check evaluated to a falsy value based on some conditions.
CheckStatusPassed CheckStatus = "passed" // The check evaluated to a truthy value based on some conditions.
CheckStatusPending CheckStatus = "pending" // The check has not been evaluated yet..
)
// All CheckStatus as []string
var AllCheckStatus = []string{
string(CheckStatusFailed),
string(CheckStatusPassed),
string(CheckStatusPending),
}
// CheckType represents the type of check.
type CheckType string
const (
CheckTypeAlertSourceUsage CheckType = "alert_source_usage" // Verifies that the service has an alert source of a particular type or name.
CheckTypeCustom CheckType = "custom" // Allows for the creation of programmatic checks that use an API to mark the status as passing or failing.
CheckTypeGeneric CheckType = "generic" // Requires a generic integration api call to complete a series of checks for multiple services.
CheckTypeGitBranchProtection CheckType = "git_branch_protection" // Verifies that all the repositories on the service have branch protection enabled.
CheckTypeHasDocumentation CheckType = "has_documentation" // Verifies that the service has visible documentation of a particular type and subtype.
CheckTypeHasOwner CheckType = "has_owner" // Verifies that the service has an owner defined.
CheckTypeHasRecentDeploy CheckType = "has_recent_deploy" // Verified that the services has received a deploy within a specified number of days.
CheckTypeHasRepository CheckType = "has_repository" // Verifies that the service has a repository integrated.
CheckTypeHasServiceConfig CheckType = "has_service_config" // Verifies that the service is maintained though the use of an opslevel.yml service config.
CheckTypeManual CheckType = "manual" // Requires a service owner to manually complete a check for the service.
CheckTypePayload CheckType = "payload" // Requires a payload integration api call to complete a check for the service.
CheckTypeRepoFile CheckType = "repo_file" // Verifies that the service's repository contains a file with a certain path. (Optional: Can also be used to check for specific file contents).
CheckTypeRepoGrep CheckType = "repo_grep" // Runs a comprehensive search across the service's repository with advanced search parameters.
CheckTypeRepoSearch CheckType = "repo_search" // Searches the service's repository and verifies if any file matches the given contents.
CheckTypeServiceDependency CheckType = "service_dependency" // Verifies that the service has either a dependent or dependency.
CheckTypeServiceProperty CheckType = "service_property" // Verifies that a service property is set or matches a specified format.
CheckTypeTagDefined CheckType = "tag_defined" // Verifies that the service has the specified tag defined.
CheckTypeToolUsage CheckType = "tool_usage" // Verifies that the service is using a tool of a particular category or name.
)
// All CheckType as []string
var AllCheckType = []string{
string(CheckTypeAlertSourceUsage),
string(CheckTypeCustom),
string(CheckTypeGeneric),
string(CheckTypeGitBranchProtection),
string(CheckTypeHasDocumentation),
string(CheckTypeHasOwner),
string(CheckTypeHasRecentDeploy),
string(CheckTypeHasRepository),
string(CheckTypeHasServiceConfig),
string(CheckTypeManual),
string(CheckTypePayload),
string(CheckTypeRepoFile),
string(CheckTypeRepoGrep),
string(CheckTypeRepoSearch),
string(CheckTypeServiceDependency),
string(CheckTypeServiceProperty),
string(CheckTypeTagDefined),
string(CheckTypeToolUsage),
}
// ConnectiveEnum represents the logical operator to be used in conjunction with multiple filters (requires filters to be supplied).
type ConnectiveEnum string
const (
ConnectiveEnumAnd ConnectiveEnum = "and" // Used to ensure **all** filters match for a given resource.
ConnectiveEnumOr ConnectiveEnum = "or" // Used to ensure **any** filters match for a given resource.
)
// All ConnectiveEnum as []string
var AllConnectiveEnum = []string{
string(ConnectiveEnumAnd),
string(ConnectiveEnumOr),
}
// ContactType represents the method of contact.
type ContactType string
const (
ContactTypeEmail ContactType = "email" // An email contact method.
ContactTypeGitHub ContactType = "github" //
ContactTypeSlack ContactType = "slack" // A Slack channel contact method.
ContactTypeSlackHandle ContactType = "slack_handle" // A Slack handle contact method.
ContactTypeWeb ContactType = "web" // A website contact method.
)
// All ContactType as []string
var AllContactType = []string{
string(ContactTypeEmail),
string(ContactTypeGitHub),
string(ContactTypeSlack),
string(ContactTypeSlackHandle),
string(ContactTypeWeb),
}
// TODO: This appears to be duplicative of the above and i'm not sure why we need it
// ContactType represents the method of contact.
type ServiceOwnershipCheckContactType string
const (
ServiceOwnershipCheckContactTypeAny ServiceOwnershipCheckContactType = "any" // Any contact method.
ServiceOwnershipCheckContactTypeSlack ServiceOwnershipCheckContactType = "slack" // A Slack channel contact method.
ServiceOwnershipCheckContactTypeSlackHandle ServiceOwnershipCheckContactType = "slack_handle" // A Slack handle contact method.
ServiceOwnershipCheckContactTypeEmail ServiceOwnershipCheckContactType = "email" // An email contact method.
ServiceOwnershipCheckContactTypeWeb ServiceOwnershipCheckContactType = "web" // A website contact method.
)
// All ServiceOwnershipContactType as []string
var AllServiceOwnershipCheckContactType = []string{
string(ServiceOwnershipCheckContactTypeAny),
string(ServiceOwnershipCheckContactTypeSlack),
string(ServiceOwnershipCheckContactTypeSlackHandle),
string(ServiceOwnershipCheckContactTypeEmail),
string(ServiceOwnershipCheckContactTypeWeb),
}
// CustomActionsEntityTypeEnum
type CustomActionsEntityTypeEnum string
const (
CustomActionsEntityTypeEnumGlobal CustomActionsEntityTypeEnum = "GLOBAL" //
CustomActionsEntityTypeEnumService CustomActionsEntityTypeEnum = "SERVICE" //
)
// All CustomActionsEntityTypeEnum as []string
var AllCustomActionsEntityTypeEnum = []string{
string(CustomActionsEntityTypeEnumGlobal),
string(CustomActionsEntityTypeEnumService),
}
// CustomActionsHttpMethodEnum An HTTP request method
type CustomActionsHttpMethodEnum string
const (
CustomActionsHttpMethodEnumDelete CustomActionsHttpMethodEnum = "DELETE" // An HTTP DELETE request
CustomActionsHttpMethodEnumGet CustomActionsHttpMethodEnum = "GET" //
CustomActionsHttpMethodEnumPatch CustomActionsHttpMethodEnum = "PATCH" //
CustomActionsHttpMethodEnumPost CustomActionsHttpMethodEnum = "POST" // An HTTP POST request
CustomActionsHttpMethodEnumPut CustomActionsHttpMethodEnum = "PUT" // An HTTP PUT request
)
// All CustomActionsHttpMethodEnum as []string
var AllCustomActionsHttpMethodEnum = []string{
string(CustomActionsHttpMethodEnumDelete),
string(CustomActionsHttpMethodEnumGet),
string(CustomActionsHttpMethodEnumPatch),
string(CustomActionsHttpMethodEnumPost),
string(CustomActionsHttpMethodEnumPut),
}
// CustomActionsTriggerDefinitionAccessControlEnum Who can see and use the trigger definition
type CustomActionsTriggerDefinitionAccessControlEnum string
const (
CustomActionsTriggerDefinitionAccessControlEnumAdmins CustomActionsTriggerDefinitionAccessControlEnum = "admins" // Admin users
CustomActionsTriggerDefinitionAccessControlEnumEveryone CustomActionsTriggerDefinitionAccessControlEnum = "everyone" // All users of OpsLevel
CustomActionsTriggerDefinitionAccessControlEnumServiceOwners CustomActionsTriggerDefinitionAccessControlEnum = "service_owners" // The owners of a service
)
// All CustomActionsTriggerDefinitionAccessControlEnum as []string
var AllCustomActionsTriggerDefinitionAccessControlEnum = []string{
string(CustomActionsTriggerDefinitionAccessControlEnumAdmins),
string(CustomActionsTriggerDefinitionAccessControlEnumEveryone),
string(CustomActionsTriggerDefinitionAccessControlEnumServiceOwners),
}
// CustomActionsTriggerEventStatusEnum
type CustomActionsTriggerEventStatusEnum string
const (
CustomActionsTriggerEventStatusEnumFailure CustomActionsTriggerEventStatusEnum = "FAILURE" //
CustomActionsTriggerEventStatusEnumPending CustomActionsTriggerEventStatusEnum = "PENDING" //
CustomActionsTriggerEventStatusEnumSuccess CustomActionsTriggerEventStatusEnum = "SUCCESS" //
)
// All CustomActionsTriggerEventStatusEnum as []string
var AllCustomActionsTriggerEventStatusEnum = []string{
string(CustomActionsTriggerEventStatusEnumFailure),
string(CustomActionsTriggerEventStatusEnumPending),
string(CustomActionsTriggerEventStatusEnumSuccess),
}
// FrequencyTimeScale represents the time scale type for the frequency.
type FrequencyTimeScale string
const (
FrequencyTimeScaleDay FrequencyTimeScale = "day" // Consider the time scale of days.
FrequencyTimeScaleMonth FrequencyTimeScale = "month" // Consider the time scale of months.
FrequencyTimeScaleWeek FrequencyTimeScale = "week" // Consider the time scale of weeks.
FrequencyTimeScaleYear FrequencyTimeScale = "year" // Consider the time scale of years.
)
// All FrequencyTimeScale as []string
var AllFrequencyTimeScale = []string{
string(FrequencyTimeScaleDay),
string(FrequencyTimeScaleMonth),
string(FrequencyTimeScaleWeek),
string(FrequencyTimeScaleYear),
}
// HasDocumentationSubtypeEnum represents the subtype of the document.
type HasDocumentationSubtypeEnum string
const (
HasDocumentationSubtypeEnumOpenapi HasDocumentationSubtypeEnum = "openapi" // Document is an OpenAPI document.
)
// All HasDocumentationSubtypeEnum as []string
var AllHasDocumentationSubtypeEnum = []string{
string(HasDocumentationSubtypeEnumOpenapi),
}
// HasDocumentationTypeEnum represents the type of the document.
type HasDocumentationTypeEnum string
const (
HasDocumentationTypeEnumAPI HasDocumentationTypeEnum = "api" // Document is an API document.
HasDocumentationTypeEnumTech HasDocumentationTypeEnum = "tech" //
)
// All HasDocumentationTypeEnum as []string
var AllHasDocumentationTypeEnum = []string{
string(HasDocumentationTypeEnumAPI),
string(HasDocumentationTypeEnumTech),
}
// PayloadSortEnum
type PayloadSortEnum string
const (
PayloadSortEnumCreatedAtAsc PayloadSortEnum = "created_at_ASC" //
PayloadSortEnumCreatedAtDesc PayloadSortEnum = "created_at_DESC" //
PayloadSortEnumProcessedAtAsc PayloadSortEnum = "processed_at_ASC" //
PayloadSortEnumProcessedAtDesc PayloadSortEnum = "processed_at_DESC" //
)
// All PayloadSortEnum as []string
var AllPayloadSortEnum = []string{
string(PayloadSortEnumCreatedAtAsc),
string(PayloadSortEnumCreatedAtDesc),
string(PayloadSortEnumProcessedAtAsc),
string(PayloadSortEnumProcessedAtDesc),
}
// PredicateKeyEnum represents fields that can be used as part of filter for services.
type PredicateKeyEnum string
const (
PredicateKeyEnumTierIndex PredicateKeyEnum = "tier_index" // Filter by `tier` field.
PredicateKeyEnumLifecycleIndex PredicateKeyEnum = "lifecycle_index" // Filter by `lifecycle` field.
PredicateKeyEnumLanguage PredicateKeyEnum = "language" // Filter by `language` field.
PredicateKeyEnumFramework PredicateKeyEnum = "framework" // Filter by `framework` field.
PredicateKeyEnumProduct PredicateKeyEnum = "product" // Filter by `product` field.
PredicateKeyEnumName PredicateKeyEnum = "name" // Filter by `name` field.
PredicateKeyEnumTags PredicateKeyEnum = "tags" // Filter by `tags` field.
PredicateKeyEnumOwnerID PredicateKeyEnum = "owner_id" // Filter by `owner` field.
PredicateKeyEnumGroupIDs PredicateKeyEnum = "group_ids" // Filter by group hierarchy. Will return resources who's owner is in the group ancestry chain.
PredicateKeyEnumCreationSource PredicateKeyEnum = "creation_source" // Filter by the creation source.
PredicateKeyEnumRepositoryIDs PredicateKeyEnum = "repository_ids" // Filter by Repository that this service is attached to, if any.
PredicateKeyEnumDomainID PredicateKeyEnum = "domain_id" // Filter by Domain that includes the System this service is assigned to, if any.
PredicateKeyEnumSystemID PredicateKeyEnum = "system_id" // Filter by System that this service is assigned to, if any.
PredicateKeyEnumFilterID PredicateKeyEnum = "filter_id" // Filter by another filter.
)
// All PredicateKeyEnum as []string
var AllPredicateKeyEnum = []string{
string(PredicateKeyEnumTierIndex),
string(PredicateKeyEnumLifecycleIndex),
string(PredicateKeyEnumLanguage),
string(PredicateKeyEnumFramework),
string(PredicateKeyEnumProduct),
string(PredicateKeyEnumName),
string(PredicateKeyEnumTags),
string(PredicateKeyEnumOwnerID),
string(PredicateKeyEnumGroupIDs),
string(PredicateKeyEnumCreationSource),
string(PredicateKeyEnumRepositoryIDs),
string(PredicateKeyEnumDomainID),
string(PredicateKeyEnumSystemID),
string(PredicateKeyEnumFilterID),
}
// PredicateTypeEnum represents operations that can be used on predicates.
type PredicateTypeEnum string
const (
PredicateTypeEnumContains PredicateTypeEnum = "contains" // Contains a specific value.
PredicateTypeEnumDoesNotContain PredicateTypeEnum = "does_not_contain" // Does not contain a specific value.
PredicateTypeEnumDoesNotEqual PredicateTypeEnum = "does_not_equal" // Does not equal a specific value.
PredicateTypeEnumDoesNotExist PredicateTypeEnum = "does_not_exist" // Specific attribute does not exist.
PredicateTypeEnumEndsWith PredicateTypeEnum = "ends_with" // Ends with a specific value.
PredicateTypeEnumEquals PredicateTypeEnum = "equals" // Equals a specific value.
PredicateTypeEnumExists PredicateTypeEnum = "exists" // Specific attribute exists.
PredicateTypeEnumGreaterThanOrEqualTo PredicateTypeEnum = "greater_than_or_equal_to" // Greater than or equal to a specific value (numeric only).
PredicateTypeEnumLessThanOrEqualTo PredicateTypeEnum = "less_than_or_equal_to" // Less than or equal to a specific value (numeric only).
PredicateTypeEnumStartsWith PredicateTypeEnum = "starts_with" // Starts with a specific value.
PredicateTypeEnumSatisfiesVersionConstraint PredicateTypeEnum = "satisfies_version_constraint" // Satisfies version constraint (tag value only).
PredicateTypeEnumMatchesRegex PredicateTypeEnum = "matches_regex" // Matches a value using a regular expression.
PredicateTypeEnumDoesNotMatchRegex PredicateTypeEnum = "does_not_match_regex" // Does not match a value using a regular expression.
PredicateTypeEnumBelongsTo PredicateTypeEnum = "belongs_to" // Belongs to a group's hierarchy.
PredicateTypeEnumMatches PredicateTypeEnum = "matches" // A certain filter is matched.
PredicateTypeEnumDoesNotMatch PredicateTypeEnum = "does_not_match" // A certain filter is not matched.
PredicateTypeEnumSatisfiesJqExpression PredicateTypeEnum = "satisfies_jq_expression" // Satisfies an expression defined in jq.
)
// All PredicateTypeEnum as []string
var AllPredicateTypeEnum = []string{
string(PredicateTypeEnumContains),
string(PredicateTypeEnumDoesNotContain),
string(PredicateTypeEnumDoesNotEqual),
string(PredicateTypeEnumDoesNotExist),
string(PredicateTypeEnumEndsWith),
string(PredicateTypeEnumEquals),
string(PredicateTypeEnumExists),
string(PredicateTypeEnumGreaterThanOrEqualTo),
string(PredicateTypeEnumLessThanOrEqualTo),
string(PredicateTypeEnumStartsWith),
string(PredicateTypeEnumSatisfiesVersionConstraint),
string(PredicateTypeEnumMatchesRegex),
string(PredicateTypeEnumDoesNotMatchRegex),
string(PredicateTypeEnumBelongsTo),
string(PredicateTypeEnumMatches),
string(PredicateTypeEnumDoesNotMatch),
string(PredicateTypeEnumSatisfiesJqExpression),
}
type RepositoryVisibilityEnum string
const (
RepositoryVisibilityEnumInternal RepositoryVisibilityEnum = "INTERNAL" //
RepositoryVisibilityEnumPrivate RepositoryVisibilityEnum = "PRIVATE" //
RepositoryVisibilityEnumPublic RepositoryVisibilityEnum = "PUBLIC" //
)
// All RepositoryVisibilityEnum as []string
var AllRepositoryVisibilityEnum = []string{
string(RepositoryVisibilityEnumInternal),
string(RepositoryVisibilityEnumPrivate),
string(RepositoryVisibilityEnumPublic),
}
// ResourceDocumentStatusTypeEnum
type ResourceDocumentStatusTypeEnum string
const (
ResourceDocumentStatusTypeEnumHidden ResourceDocumentStatusTypeEnum = "hidden" //
ResourceDocumentStatusTypeEnumPinned ResourceDocumentStatusTypeEnum = "pinned" //
ResourceDocumentStatusTypeEnumVisible ResourceDocumentStatusTypeEnum = "visible" //
)
// All ResourceDocumentStatusTypeEnum as []string
var AllResourceDocumentStatusTypeEnum = []string{
string(ResourceDocumentStatusTypeEnumHidden),
string(ResourceDocumentStatusTypeEnumPinned),
string(ResourceDocumentStatusTypeEnumVisible),
}
// ServicePropertyTypeEnum represents properties of services that can be validated.
type ServicePropertyTypeEnum string
const (
ServicePropertyTypeEnumDescription ServicePropertyTypeEnum = "description" // The description of a service.
ServicePropertyTypeEnumFramework ServicePropertyTypeEnum = "framework" // The primary software development framework of a service.
ServicePropertyTypeEnumLanguage ServicePropertyTypeEnum = "language" // The primary programming language of a service.
ServicePropertyTypeEnumLifecycleIndex ServicePropertyTypeEnum = "lifecycle_index" // The index of the lifecycle a service belongs to.
ServicePropertyTypeEnumName ServicePropertyTypeEnum = "name" // The name of a service.
ServicePropertyTypeEnumNote ServicePropertyTypeEnum = "note" //
ServicePropertyTypeEnumProduct ServicePropertyTypeEnum = "product" // The product that is associated with a service.
ServicePropertyTypeEnumTierIndex ServicePropertyTypeEnum = "tier_index" // The index of the tier a service belongs to.
)
// All ServicePropertyTypeEnum as []string
var AllServicePropertyTypeEnum = []string{
string(ServicePropertyTypeEnumDescription),
string(ServicePropertyTypeEnumFramework),
string(ServicePropertyTypeEnumLanguage),
string(ServicePropertyTypeEnumLifecycleIndex),
string(ServicePropertyTypeEnumName),
string(ServicePropertyTypeEnumNote),
string(ServicePropertyTypeEnumProduct),
string(ServicePropertyTypeEnumTierIndex),
}
// ServiceSortEnum
type ServiceSortEnum string
const (
ServiceSortEnumAlertStatusAsc ServiceSortEnum = "alert_status_ASC" //
ServiceSortEnumAlertStatusDesc ServiceSortEnum = "alert_status_DESC" //
ServiceSortEnumChecksPassingAsc ServiceSortEnum = "checks_passing_ASC" //
ServiceSortEnumChecksPassingDesc ServiceSortEnum = "checks_passing_DESC" //
ServiceSortEnumLastDeployAsc ServiceSortEnum = "last_deploy_ASC" //
ServiceSortEnumLastDeployDesc ServiceSortEnum = "last_deploy_DESC" //
ServiceSortEnumLevelIndexAsc ServiceSortEnum = "level_index_ASC" //
ServiceSortEnumLevelIndexDesc ServiceSortEnum = "level_index_DESC" //
ServiceSortEnumLifecycleAsc ServiceSortEnum = "lifecycle_ASC" //
ServiceSortEnumLifecycleDesc ServiceSortEnum = "lifecycle_DESC" //
ServiceSortEnumNameAsc ServiceSortEnum = "name_ASC" //
ServiceSortEnumNameDesc ServiceSortEnum = "name_DESC" //
ServiceSortEnumOwnerAsc ServiceSortEnum = "owner_ASC" //
ServiceSortEnumOwnerDesc ServiceSortEnum = "owner_DESC" //
ServiceSortEnumProductAsc ServiceSortEnum = "product_ASC" //
ServiceSortEnumProductDesc ServiceSortEnum = "product_DESC" //
ServiceSortEnumServiceStatAsc ServiceSortEnum = "service_stat_ASC" //
ServiceSortEnumServiceStatDesc ServiceSortEnum = "service_stat_DESC" //
ServiceSortEnumTierAsc ServiceSortEnum = "tier_ASC" //
ServiceSortEnumTierDesc ServiceSortEnum = "tier_DESC" //
)
// All ServiceSortEnum as []string
var AllServiceSortEnum = []string{
string(ServiceSortEnumAlertStatusAsc),
string(ServiceSortEnumAlertStatusDesc),
string(ServiceSortEnumChecksPassingAsc),
string(ServiceSortEnumChecksPassingDesc),
string(ServiceSortEnumLastDeployAsc),
string(ServiceSortEnumLastDeployDesc),
string(ServiceSortEnumLevelIndexAsc),
string(ServiceSortEnumLevelIndexDesc),
string(ServiceSortEnumLifecycleAsc),
string(ServiceSortEnumLifecycleDesc),
string(ServiceSortEnumNameAsc),
string(ServiceSortEnumNameDesc),
string(ServiceSortEnumOwnerAsc),
string(ServiceSortEnumOwnerDesc),
string(ServiceSortEnumProductAsc),
string(ServiceSortEnumProductDesc),
string(ServiceSortEnumServiceStatAsc),
string(ServiceSortEnumServiceStatDesc),
string(ServiceSortEnumTierAsc),
string(ServiceSortEnumTierDesc),
}
// TaggableResource represents possible types to apply tags to.
type TaggableResource string
const (
TaggableResourceService TaggableResource = "Service" // Used to identify a Service.
TaggableResourceRepository TaggableResource = "Repository" // Used to identify a Repository.
TaggableResourceTeam TaggableResource = "Team" // Used to identify a Team.
TaggableResourceUser TaggableResource = "User" // Used to identify a User.
TaggableResourceDomain TaggableResource = "Domain" // Used to identify a Domain.
TaggableResourceSystem TaggableResource = "System" // Used to identify a System.
TaggableResourceInfrastructureresource TaggableResource = "InfrastructureResource" // Translation missing: en.graphql.types.taggable_resource.InfrastructureResource.
)
// All TaggableResource as []string
var AllTaggableResource = []string{
string(TaggableResourceService),
string(TaggableResourceRepository),
string(TaggableResourceTeam),
string(TaggableResourceUser),
string(TaggableResourceDomain),
string(TaggableResourceSystem),
string(TaggableResourceInfrastructureresource),
}
// ToolCategory represents the specific categories that a tool can belong to.
type ToolCategory string
const (
ToolCategoryAdmin ToolCategory = "admin" // Tools used for administrative purposes.
ToolCategoryAPIDocumentation ToolCategory = "api_documentation" // Tools used as API documentation for this service.
ToolCategoryBacklog ToolCategory = "backlog" // Tools used for tracking issues.
ToolCategoryCode ToolCategory = "code" // Tools used for source code.
ToolCategoryContinuousIntegration ToolCategory = "continuous_integration" // Tools used for building/unit testing a service.
ToolCategoryDeployment ToolCategory = "deployment" // Tools used for deploying changes to a service.
ToolCategoryErrors ToolCategory = "errors" // Tools used for tracking/reporting errors.
ToolCategoryFeatureFlag ToolCategory = "feature_flag" // Tools used for managing feature flags.
ToolCategoryHealthChecks ToolCategory = "health_checks" // Tools used for tracking/reporting the health of a service.
ToolCategoryIncidents ToolCategory = "incidents" // Tools used to surface incidents on a service.
ToolCategoryIssueTracking ToolCategory = "issue_tracking" // Tools used for tracking issues.
ToolCategoryLogs ToolCategory = "logs" // Tools used for displaying logs from services.
ToolCategoryMetrics ToolCategory = "metrics" // Tools used for tracking/reporting service metrics.
ToolCategoryOrchestrator ToolCategory = "orchestrator" // Tools used for orchestrating a service.
ToolCategoryOther ToolCategory = "other" // Tools that do not fit into the available categories.
ToolCategoryResiliency ToolCategory = "resiliency" // Tools used for testing the resiliency of a service.
ToolCategoryRunbooks ToolCategory = "runbooks" // Tools used for managing runbooks for a service.
ToolCategorySecurityScans ToolCategory = "security_scans" // Tools used for performing security scans.
ToolCategoryStatusPage ToolCategory = "status_page" // Tools used for reporting the status of a service.
ToolCategoryWiki ToolCategory = "wiki" // Tools used as a wiki for this service.
)
// All ToolCategory as []string
var AllToolCategory = []string{
string(ToolCategoryAdmin),
string(ToolCategoryAPIDocumentation),
string(ToolCategoryBacklog),
string(ToolCategoryCode),
string(ToolCategoryContinuousIntegration),
string(ToolCategoryDeployment),
string(ToolCategoryErrors),
string(ToolCategoryFeatureFlag),
string(ToolCategoryHealthChecks),
string(ToolCategoryIncidents),
string(ToolCategoryIssueTracking),
string(ToolCategoryLogs),
string(ToolCategoryMetrics),
string(ToolCategoryOrchestrator),
string(ToolCategoryOther),
string(ToolCategoryResiliency),
string(ToolCategoryRunbooks),
string(ToolCategorySecurityScans),
string(ToolCategoryStatusPage),
string(ToolCategoryWiki),
}
// UserRole represents a role that can be assigned to a user.
type UserRole string
const (
UserRoleUser UserRole = "user" // A regular user on the account.
UserRoleAdmin UserRole = "admin" // An administrator on the account.
)
// All UserRole as []string
var AllUserRole = []string{
string(UserRoleUser),
string(UserRoleAdmin),
}