-
Notifications
You must be signed in to change notification settings - Fork 13
/
enum.go
1189 lines (1038 loc) · 62.8 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
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by gen.go; DO NOT EDIT.
package opslevel
// AlertSourceStatusTypeEnum represents 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).
AlertSourceTypeEnumIncidentIo AlertSourceTypeEnum = "incident_io" // An incident.io alert source (aka service).
AlertSourceTypeEnumNewRelic AlertSourceTypeEnum = "new_relic" // A New Relic alert source (aka service).
AlertSourceTypeEnumOpsgenie AlertSourceTypeEnum = "opsgenie" // An Opsgenie alert source (aka service).
AlertSourceTypeEnumPagerduty AlertSourceTypeEnum = "pagerduty" // A PagerDuty alert source (aka service).
)
// All AlertSourceTypeEnum as []string
var AllAlertSourceTypeEnum = []string{
string(AlertSourceTypeEnumDatadog),
string(AlertSourceTypeEnumIncidentIo),
string(AlertSourceTypeEnumNewRelic),
string(AlertSourceTypeEnumOpsgenie),
string(AlertSourceTypeEnumPagerduty),
}
// AliasOwnerTypeEnum represents the owner type an alias is assigned to.
type AliasOwnerTypeEnum string
const (
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.
AliasOwnerTypeEnumScorecard AliasOwnerTypeEnum = "scorecard" // Aliases that are assigned to scorecards.
AliasOwnerTypeEnumService AliasOwnerTypeEnum = "service" // Aliases that are assigned to services.
AliasOwnerTypeEnumSystem AliasOwnerTypeEnum = "system" // Aliases that are assigned to systems.
AliasOwnerTypeEnumTeam AliasOwnerTypeEnum = "team" // Aliases that are assigned to teams.
)
// All AliasOwnerTypeEnum as []string
var AllAliasOwnerTypeEnum = []string{
string(AliasOwnerTypeEnumDomain),
string(AliasOwnerTypeEnumGroup),
string(AliasOwnerTypeEnumInfrastructureResource),
string(AliasOwnerTypeEnumScorecard),
string(AliasOwnerTypeEnumService),
string(AliasOwnerTypeEnumSystem),
string(AliasOwnerTypeEnumTeam),
}
// 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 represents operations that can be used on filters.
type BasicTypeEnum string
const (
BasicTypeEnumDoesNotEqual BasicTypeEnum = "does_not_equal" // Does not equal a specific value.
BasicTypeEnumEquals BasicTypeEnum = "equals" // Equals a specific value.
)
// All BasicTypeEnum as []string
var AllBasicTypeEnum = []string{
string(BasicTypeEnumDoesNotEqual),
string(BasicTypeEnumEquals),
}
// CampaignFilterEnum represents fields that can be used as part of filter for campaigns.
type CampaignFilterEnum string
const (
CampaignFilterEnumID CampaignFilterEnum = "id" // Filter by `id` of campaign.
CampaignFilterEnumOwner CampaignFilterEnum = "owner" // Filter by campaign owner.
CampaignFilterEnumStatus CampaignFilterEnum = "status" // Filter by campaign status.
)
// All CampaignFilterEnum as []string
var AllCampaignFilterEnum = []string{
string(CampaignFilterEnumID),
string(CampaignFilterEnumOwner),
string(CampaignFilterEnumStatus),
}
// CampaignReminderChannelEnum represents the possible communication channels through which a campaign reminder can be delivered.
type CampaignReminderChannelEnum string
const (
CampaignReminderChannelEnumEmail CampaignReminderChannelEnum = "email" // A system for sending messages to one or more recipients via telecommunications links between computers using dedicated software or a web-based service.
CampaignReminderChannelEnumMicrosoftTeams CampaignReminderChannelEnum = "microsoft_teams" // A proprietary business communication platform developed by Microsoft.
CampaignReminderChannelEnumSlack CampaignReminderChannelEnum = "slack" // A cloud-based team communication platform developed by Slack Technologies.
)
// All CampaignReminderChannelEnum as []string
var AllCampaignReminderChannelEnum = []string{
string(CampaignReminderChannelEnumEmail),
string(CampaignReminderChannelEnumMicrosoftTeams),
string(CampaignReminderChannelEnumSlack),
}
// CampaignReminderFrequencyUnitEnum represents possible time units for the frequency at which campaign reminders are delivered.
type CampaignReminderFrequencyUnitEnum string
const (
CampaignReminderFrequencyUnitEnumDay CampaignReminderFrequencyUnitEnum = "day" // A period of twenty-four hours as a unit of time, reckoned from one midnight to the next, corresponding to a rotation of the earth on its axis.
CampaignReminderFrequencyUnitEnumMonth CampaignReminderFrequencyUnitEnum = "month" // Each of the twelve named periods into which a year is divided.
CampaignReminderFrequencyUnitEnumWeek CampaignReminderFrequencyUnitEnum = "week" // A period of seven days.
)
// All CampaignReminderFrequencyUnitEnum as []string
var AllCampaignReminderFrequencyUnitEnum = []string{
string(CampaignReminderFrequencyUnitEnumDay),
string(CampaignReminderFrequencyUnitEnumMonth),
string(CampaignReminderFrequencyUnitEnumWeek),
}
// CampaignReminderTypeEnum represents type/Format of the notification.
type CampaignReminderTypeEnum string
const (
CampaignReminderTypeEnumEmail CampaignReminderTypeEnum = "email" // Notification will be sent via email.
CampaignReminderTypeEnumMicrosoftTeams CampaignReminderTypeEnum = "microsoft_teams" // Notification will be sent by microsoft teams.
CampaignReminderTypeEnumSlack CampaignReminderTypeEnum = "slack" // Notification will be sent by slack.
)
// All CampaignReminderTypeEnum as []string
var AllCampaignReminderTypeEnum = []string{
string(CampaignReminderTypeEnumEmail),
string(CampaignReminderTypeEnumMicrosoftTeams),
string(CampaignReminderTypeEnumSlack),
}
// CampaignServiceStatusEnum represents status of whether a service is passing all checks for a campaign or not.
type CampaignServiceStatusEnum string
const (
CampaignServiceStatusEnumFailing CampaignServiceStatusEnum = "failing" // Service is failing one or more checks in the campaign.
CampaignServiceStatusEnumPassing CampaignServiceStatusEnum = "passing" // Service is passing all the checks in the campaign.
)
// All CampaignServiceStatusEnum as []string
var AllCampaignServiceStatusEnum = []string{
string(CampaignServiceStatusEnumFailing),
string(CampaignServiceStatusEnumPassing),
}
// CampaignSortEnum represents sort possibilities for campaigns.
type CampaignSortEnum string
const (
CampaignSortEnumChecksPassingAsc CampaignSortEnum = "checks_passing_ASC" // Sort by number of `checks passing` ascending.
CampaignSortEnumChecksPassingDesc CampaignSortEnum = "checks_passing_DESC" // Sort by number of `checks passing` descending.
CampaignSortEnumEndedDateAsc CampaignSortEnum = "ended_date_ASC" // Sort by `endedDate` ascending.
CampaignSortEnumEndedDateDesc CampaignSortEnum = "ended_date_DESC" // Sort by `endedDate` descending.
CampaignSortEnumFilterAsc CampaignSortEnum = "filter_ASC" // Sort by `filter` ascending.
CampaignSortEnumFilterDesc CampaignSortEnum = "filter_DESC" // Sort by `filter` descending.
CampaignSortEnumNameAsc CampaignSortEnum = "name_ASC" // Sort by `name` ascending.
CampaignSortEnumNameDesc CampaignSortEnum = "name_DESC" // Sort by `name` descending.
CampaignSortEnumOwnerAsc CampaignSortEnum = "owner_ASC" // Sort by `owner` ascending.
CampaignSortEnumOwnerDesc CampaignSortEnum = "owner_DESC" // Sort by `owner` descending.
CampaignSortEnumServicesCompleteAsc CampaignSortEnum = "services_complete_ASC" // Sort by number of `services complete` ascending.
CampaignSortEnumServicesCompleteDesc CampaignSortEnum = "services_complete_DESC" // Sort by number of `services complete` descending.
CampaignSortEnumStartDateAsc CampaignSortEnum = "start_date_ASC" // Sort by `startDate` ascending.
CampaignSortEnumStartDateDesc CampaignSortEnum = "start_date_DESC" // Sort by `startDate` descending.
CampaignSortEnumStatusAsc CampaignSortEnum = "status_ASC" // Sort by `status` ascending.
CampaignSortEnumStatusDesc CampaignSortEnum = "status_DESC" // Sort by `status` descending.
CampaignSortEnumTargetDateAsc CampaignSortEnum = "target_date_ASC" // Sort by `targetDate` ascending.
CampaignSortEnumTargetDateDesc CampaignSortEnum = "target_date_DESC" // Sort by `targetDate` descending.
)
// 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 represents the campaign status.
type CampaignStatusEnum string
const (
CampaignStatusEnumDelayed CampaignStatusEnum = "delayed" // Campaign is delayed.
CampaignStatusEnumDraft CampaignStatusEnum = "draft" // Campaign has been created but is not yet active.
CampaignStatusEnumEnded CampaignStatusEnum = "ended" // Campaign ended.
CampaignStatusEnumInProgress CampaignStatusEnum = "in_progress" // Campaign is in progress.
CampaignStatusEnumScheduled CampaignStatusEnum = "scheduled" // Campaign has been scheduled to begin in the future.
)
// All CampaignStatusEnum as []string
var AllCampaignStatusEnum = []string{
string(CampaignStatusEnumDelayed),
string(CampaignStatusEnumDraft),
string(CampaignStatusEnumEnded),
string(CampaignStatusEnumInProgress),
string(CampaignStatusEnumScheduled),
}
// CheckCodeIssueConstraintEnum represents the values allowed for the constraint type for the code issues check.
type CheckCodeIssueConstraintEnum string
const (
CheckCodeIssueConstraintEnumAny CheckCodeIssueConstraintEnum = "any" // The check will look for any code issues regardless of issue name.
CheckCodeIssueConstraintEnumContains CheckCodeIssueConstraintEnum = "contains" // The check will look for any code issues by name containing the issue name.
CheckCodeIssueConstraintEnumExact CheckCodeIssueConstraintEnum = "exact" // The check will look for any code issues matching the issue name exactly.
)
// All CheckCodeIssueConstraintEnum as []string
var AllCheckCodeIssueConstraintEnum = []string{
string(CheckCodeIssueConstraintEnumAny),
string(CheckCodeIssueConstraintEnumContains),
string(CheckCodeIssueConstraintEnumExact),
}
// CheckResultStatusEnum represents the status of the check result.
type CheckResultStatusEnum string
const (
CheckResultStatusEnumFailed CheckResultStatusEnum = "failed" // Indicates that the check has failed for the associated service.
CheckResultStatusEnumPassed CheckResultStatusEnum = "passed" // Indicates that the check has passed for the associated service..
)
// All CheckResultStatusEnum as []string
var AllCheckResultStatusEnum = []string{
string(CheckResultStatusEnumFailed),
string(CheckResultStatusEnumPassed),
}
// 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.
CheckTypeCodeIssue CheckType = "code_issue" // Verifies that the severity and quantity of code issues does not exceed defined thresholds.
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" // Verifies 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.
CheckTypePackageVersion CheckType = "package_version" // Verifies certain aspects of a service using or not using software packages.
CheckTypePayload CheckType = "payload" // Requires a payload integration api call to complete a check for the service.
CheckTypeRepoFile CheckType = "repo_file" // Quickly scan the service’s repository for the existence or contents of a specific file.
CheckTypeRepoGrep CheckType = "repo_grep" // Run a comprehensive search across the service's repository using advanced search parameters.
CheckTypeRepoSearch CheckType = "repo_search" // Quickly search the service’s repository for specific contents in any file.
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(CheckTypeCodeIssue),
string(CheckTypeCustom),
string(CheckTypeGeneric),
string(CheckTypeGitBranchProtection),
string(CheckTypeHasDocumentation),
string(CheckTypeHasOwner),
string(CheckTypeHasRecentDeploy),
string(CheckTypeHasRepository),
string(CheckTypeHasServiceConfig),
string(CheckTypeManual),
string(CheckTypePackageVersion),
string(CheckTypePayload),
string(CheckTypeRepoFile),
string(CheckTypeRepoGrep),
string(CheckTypeRepoSearch),
string(CheckTypeServiceDependency),
string(CheckTypeServiceProperty),
string(CheckTypeTagDefined),
string(CheckTypeToolUsage),
}
// CodeIssueResolutionTimeUnitEnum represents the allowed values for duration units for the resolution time.
type CodeIssueResolutionTimeUnitEnum string
const (
CodeIssueResolutionTimeUnitEnumDay CodeIssueResolutionTimeUnitEnum = "day" // Day, as a duration.
CodeIssueResolutionTimeUnitEnumMonth CodeIssueResolutionTimeUnitEnum = "month" // Month, as a duration.
CodeIssueResolutionTimeUnitEnumWeek CodeIssueResolutionTimeUnitEnum = "week" // Week, as a duration.
)
// All CodeIssueResolutionTimeUnitEnum as []string
var AllCodeIssueResolutionTimeUnitEnum = []string{
string(CodeIssueResolutionTimeUnitEnumDay),
string(CodeIssueResolutionTimeUnitEnumMonth),
string(CodeIssueResolutionTimeUnitEnumWeek),
}
// 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" // A GitHub handle.
ContactTypeMicrosoftTeams ContactType = "microsoft_teams" // A Microsoft Teams channel.
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(ContactTypeMicrosoftTeams),
string(ContactTypeSlack),
string(ContactTypeSlackHandle),
string(ContactTypeWeb),
}
// CustomActionsEntityTypeEnum represents the entity types a custom action can be associated with.
type CustomActionsEntityTypeEnum string
const (
CustomActionsEntityTypeEnumGlobal CustomActionsEntityTypeEnum = "GLOBAL" // A custom action associated with the global scope (no particular entity type).
CustomActionsEntityTypeEnumService CustomActionsEntityTypeEnum = "SERVICE" // A custom action associated with services.
)
// All CustomActionsEntityTypeEnum as []string
var AllCustomActionsEntityTypeEnum = []string{
string(CustomActionsEntityTypeEnumGlobal),
string(CustomActionsEntityTypeEnumService),
}
// CustomActionsHttpMethodEnum represents an HTTP request method.
type CustomActionsHttpMethodEnum string
const (
CustomActionsHttpMethodEnumDelete CustomActionsHttpMethodEnum = "DELETE" // An HTTP DELETE request.
CustomActionsHttpMethodEnumGet CustomActionsHttpMethodEnum = "GET" // An HTTP GET request.
CustomActionsHttpMethodEnumPatch CustomActionsHttpMethodEnum = "PATCH" // An HTTP PATCH request.
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 represents 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 represents the status of the custom action trigger event.
type CustomActionsTriggerEventStatusEnum string
const (
CustomActionsTriggerEventStatusEnumFailure CustomActionsTriggerEventStatusEnum = "FAILURE" // The action failed to complete.
CustomActionsTriggerEventStatusEnumPending CustomActionsTriggerEventStatusEnum = "PENDING" // A result has not been determined.
CustomActionsTriggerEventStatusEnumSuccess CustomActionsTriggerEventStatusEnum = "SUCCESS" // The action completed successfully.
)
// All CustomActionsTriggerEventStatusEnum as []string
var AllCustomActionsTriggerEventStatusEnum = []string{
string(CustomActionsTriggerEventStatusEnumFailure),
string(CustomActionsTriggerEventStatusEnumPending),
string(CustomActionsTriggerEventStatusEnumSuccess),
}
// DayOfWeekEnum represents possible days of the week.
type DayOfWeekEnum string
const (
DayOfWeekEnumFriday DayOfWeekEnum = "friday" // Yesterday was Thursday. Tomorrow is Saturday. We so excited.
DayOfWeekEnumMonday DayOfWeekEnum = "monday" // Monday is the day of the week that takes place between Sunday and Tuesday.
DayOfWeekEnumSaturday DayOfWeekEnum = "saturday" // The day of the week before Sunday and following Friday, and (together with Sunday) forming part of the weekend.
DayOfWeekEnumSunday DayOfWeekEnum = "sunday" // The day of the week before Monday and following Saturday, (together with Saturday) forming part of the weekend.
DayOfWeekEnumThursday DayOfWeekEnum = "thursday" // The day of the week before Friday and following Wednesday.
DayOfWeekEnumTuesday DayOfWeekEnum = "tuesday" // Tuesday is the day of the week between Monday and Wednesday.
DayOfWeekEnumWednesday DayOfWeekEnum = "wednesday" // The day of the week before Thursday and following Tuesday.
)
// All DayOfWeekEnum as []string
var AllDayOfWeekEnum = []string{
string(DayOfWeekEnumFriday),
string(DayOfWeekEnumMonday),
string(DayOfWeekEnumSaturday),
string(DayOfWeekEnumSunday),
string(DayOfWeekEnumThursday),
string(DayOfWeekEnumTuesday),
string(DayOfWeekEnumWednesday),
}
// EventIntegrationEnum represents the type of event integration.
type EventIntegrationEnum string
const (
EventIntegrationEnumApidoc EventIntegrationEnum = "apiDoc" // API Documentation integration.
EventIntegrationEnumAquasecurity EventIntegrationEnum = "aquaSecurity" // Aqua Security Custom Event Check integration.
EventIntegrationEnumArgocd EventIntegrationEnum = "argocd" // ArgoCD deploy integration.
EventIntegrationEnumAwsecr EventIntegrationEnum = "awsEcr" // AWS ECR Custom Event Check integration.
EventIntegrationEnumBugsnag EventIntegrationEnum = "bugsnag" // Bugsnag Custom Event Check integration.
EventIntegrationEnumCircleci EventIntegrationEnum = "circleci" // CircleCI deploy integration.
EventIntegrationEnumCodacy EventIntegrationEnum = "codacy" // Codacy Custom Event Check integration.
EventIntegrationEnumCoveralls EventIntegrationEnum = "coveralls" // Coveralls Custom Event Check integration.
EventIntegrationEnumCustomevent EventIntegrationEnum = "customEvent" // Custom Event integration.
EventIntegrationEnumDatadogcheck EventIntegrationEnum = "datadogCheck" // Datadog Check integration.
EventIntegrationEnumDeploy EventIntegrationEnum = "deploy" // Deploy integration.
EventIntegrationEnumDynatrace EventIntegrationEnum = "dynatrace" // Dynatrace Custom Event Check integration.
EventIntegrationEnumFlux EventIntegrationEnum = "flux" // Flux deploy integration.
EventIntegrationEnumGithubactions EventIntegrationEnum = "githubActions" // Github Actions deploy integration.
EventIntegrationEnumGitlabci EventIntegrationEnum = "gitlabCi" // Gitlab CI deploy integration.
EventIntegrationEnumGrafana EventIntegrationEnum = "grafana" // Grafana Custom Event Check integration.
EventIntegrationEnumGrype EventIntegrationEnum = "grype" // Grype Custom Event Check integration.
EventIntegrationEnumJenkins EventIntegrationEnum = "jenkins" // Jenkins deploy integration.
EventIntegrationEnumJfrogxray EventIntegrationEnum = "jfrogXray" // JFrog Xray Custom Event Check integration.
EventIntegrationEnumLacework EventIntegrationEnum = "lacework" // Lacework Custom Event Check integration.
EventIntegrationEnumNewreliccheck EventIntegrationEnum = "newRelicCheck" // New Relic Check integration.
EventIntegrationEnumOctopus EventIntegrationEnum = "octopus" // Octopus deploy integration.
EventIntegrationEnumPrismacloud EventIntegrationEnum = "prismaCloud" // Prisma Cloud Custom Event Check integration.
EventIntegrationEnumPrometheus EventIntegrationEnum = "prometheus" // Prometheus Custom Event Check integration.
EventIntegrationEnumRollbar EventIntegrationEnum = "rollbar" // Rollbar Custom Event Check integration.
EventIntegrationEnumSentry EventIntegrationEnum = "sentry" // Sentry Custom Event Check integration.
EventIntegrationEnumSnyk EventIntegrationEnum = "snyk" // Snyk Custom Event Check integration.
EventIntegrationEnumSonarqube EventIntegrationEnum = "sonarqube" // SonarQube Custom Event Check integration.
EventIntegrationEnumStackhawk EventIntegrationEnum = "stackhawk" // StackHawk Custom Event Check integration.
EventIntegrationEnumSumologic EventIntegrationEnum = "sumoLogic" // Sumo Logic Custom Event Check integration.
EventIntegrationEnumVeracode EventIntegrationEnum = "veracode" // Veracode Custom Event Check integration.
)
// All EventIntegrationEnum as []string
var AllEventIntegrationEnum = []string{
string(EventIntegrationEnumApidoc),
string(EventIntegrationEnumAquasecurity),
string(EventIntegrationEnumArgocd),
string(EventIntegrationEnumAwsecr),
string(EventIntegrationEnumBugsnag),
string(EventIntegrationEnumCircleci),
string(EventIntegrationEnumCodacy),
string(EventIntegrationEnumCoveralls),
string(EventIntegrationEnumCustomevent),
string(EventIntegrationEnumDatadogcheck),
string(EventIntegrationEnumDeploy),
string(EventIntegrationEnumDynatrace),
string(EventIntegrationEnumFlux),
string(EventIntegrationEnumGithubactions),
string(EventIntegrationEnumGitlabci),
string(EventIntegrationEnumGrafana),
string(EventIntegrationEnumGrype),
string(EventIntegrationEnumJenkins),
string(EventIntegrationEnumJfrogxray),
string(EventIntegrationEnumLacework),
string(EventIntegrationEnumNewreliccheck),
string(EventIntegrationEnumOctopus),
string(EventIntegrationEnumPrismacloud),
string(EventIntegrationEnumPrometheus),
string(EventIntegrationEnumRollbar),
string(EventIntegrationEnumSentry),
string(EventIntegrationEnumSnyk),
string(EventIntegrationEnumSonarqube),
string(EventIntegrationEnumStackhawk),
string(EventIntegrationEnumSumologic),
string(EventIntegrationEnumVeracode),
}
// 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" // Document is a Tech document.
)
// All HasDocumentationTypeEnum as []string
var AllHasDocumentationTypeEnum = []string{
string(HasDocumentationTypeEnumAPI),
string(HasDocumentationTypeEnumTech),
}
// PackageConstraintEnum represents possible values of a package version check constraint.
type PackageConstraintEnum string
const (
PackageConstraintEnumDoesNotExist PackageConstraintEnum = "does_not_exist" // The package must not be used by a service.
PackageConstraintEnumExists PackageConstraintEnum = "exists" // The package must be used by a service.
PackageConstraintEnumMatchesVersion PackageConstraintEnum = "matches_version" // The package usage by a service must match certain specified version constraints.
)
// All PackageConstraintEnum as []string
var AllPackageConstraintEnum = []string{
string(PackageConstraintEnumDoesNotExist),
string(PackageConstraintEnumExists),
string(PackageConstraintEnumMatchesVersion),
}
// PackageManagerEnum represents supported software package manager types.
type PackageManagerEnum string
const (
PackageManagerEnumAlpm PackageManagerEnum = "alpm" // .
PackageManagerEnumApk PackageManagerEnum = "apk" // .
PackageManagerEnumBitbucket PackageManagerEnum = "bitbucket" // .
PackageManagerEnumBitnami PackageManagerEnum = "bitnami" // .
PackageManagerEnumCargo PackageManagerEnum = "cargo" // .
PackageManagerEnumCocoapods PackageManagerEnum = "cocoapods" // .
PackageManagerEnumComposer PackageManagerEnum = "composer" // .
PackageManagerEnumConan PackageManagerEnum = "conan" // .
PackageManagerEnumConda PackageManagerEnum = "conda" // .
PackageManagerEnumCpan PackageManagerEnum = "cpan" // .
PackageManagerEnumCran PackageManagerEnum = "cran" // .
PackageManagerEnumDeb PackageManagerEnum = "deb" // .
PackageManagerEnumDocker PackageManagerEnum = "docker" // .
PackageManagerEnumGem PackageManagerEnum = "gem" // .
PackageManagerEnumGeneric PackageManagerEnum = "generic" // .
PackageManagerEnumGitHub PackageManagerEnum = "github" // .
PackageManagerEnumGolang PackageManagerEnum = "golang" // .
PackageManagerEnumGradle PackageManagerEnum = "gradle" // .
PackageManagerEnumHackage PackageManagerEnum = "hackage" // .
PackageManagerEnumHelm PackageManagerEnum = "helm" // .
PackageManagerEnumHex PackageManagerEnum = "hex" // .
PackageManagerEnumMaven PackageManagerEnum = "maven" // .
PackageManagerEnumMlflow PackageManagerEnum = "mlflow" // .
PackageManagerEnumNpm PackageManagerEnum = "npm" // .
PackageManagerEnumNuget PackageManagerEnum = "nuget" // .
PackageManagerEnumOci PackageManagerEnum = "oci" // .
PackageManagerEnumPub PackageManagerEnum = "pub" // .
PackageManagerEnumPypi PackageManagerEnum = "pypi" // .
PackageManagerEnumQpkg PackageManagerEnum = "qpkg" // .
PackageManagerEnumRpm PackageManagerEnum = "rpm" // .
PackageManagerEnumSwid PackageManagerEnum = "swid" // .
PackageManagerEnumSwift PackageManagerEnum = "swift" // .
)
// All PackageManagerEnum as []string
var AllPackageManagerEnum = []string{
string(PackageManagerEnumAlpm),
string(PackageManagerEnumApk),
string(PackageManagerEnumBitbucket),
string(PackageManagerEnumBitnami),
string(PackageManagerEnumCargo),
string(PackageManagerEnumCocoapods),
string(PackageManagerEnumComposer),
string(PackageManagerEnumConan),
string(PackageManagerEnumConda),
string(PackageManagerEnumCpan),
string(PackageManagerEnumCran),
string(PackageManagerEnumDeb),
string(PackageManagerEnumDocker),
string(PackageManagerEnumGem),
string(PackageManagerEnumGeneric),
string(PackageManagerEnumGitHub),
string(PackageManagerEnumGolang),
string(PackageManagerEnumGradle),
string(PackageManagerEnumHackage),
string(PackageManagerEnumHelm),
string(PackageManagerEnumHex),
string(PackageManagerEnumMaven),
string(PackageManagerEnumMlflow),
string(PackageManagerEnumNpm),
string(PackageManagerEnumNuget),
string(PackageManagerEnumOci),
string(PackageManagerEnumPub),
string(PackageManagerEnumPypi),
string(PackageManagerEnumQpkg),
string(PackageManagerEnumRpm),
string(PackageManagerEnumSwid),
string(PackageManagerEnumSwift),
}
// PayloadFilterEnum represents fields that can be used as part of filters for payloads.
type PayloadFilterEnum string
const (
PayloadFilterEnumIntegrationID PayloadFilterEnum = "integration_id" // Filter by `integration` field. Note that this is an internal id, ex. "123".
)
// All PayloadFilterEnum as []string
var AllPayloadFilterEnum = []string{
string(PayloadFilterEnumIntegrationID),
}
// PayloadSortEnum represents sort possibilities for payloads.
type PayloadSortEnum string
const (
PayloadSortEnumCreatedAtAsc PayloadSortEnum = "created_at_ASC" // Order by `created_at` ascending.
PayloadSortEnumCreatedAtDesc PayloadSortEnum = "created_at_DESC" // Order by `created_at` descending.
PayloadSortEnumProcessedAtAsc PayloadSortEnum = "processed_at_ASC" // Order by `processed_at` ascending.
PayloadSortEnumProcessedAtDesc PayloadSortEnum = "processed_at_DESC" // Order by `processed_at` descending.
)
// 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 (
PredicateKeyEnumAliases PredicateKeyEnum = "aliases" // Filter by Alias attached to this service, if any.
PredicateKeyEnumCreationSource PredicateKeyEnum = "creation_source" // Filter by the creation source.
PredicateKeyEnumDomainID PredicateKeyEnum = "domain_id" // Filter by Domain that includes the System this service is assigned to, if any.
PredicateKeyEnumFilterID PredicateKeyEnum = "filter_id" // Filter by another filter.
PredicateKeyEnumFramework PredicateKeyEnum = "framework" // Filter by `framework` field.
PredicateKeyEnumGroupIDs PredicateKeyEnum = "group_ids" // Filter by group hierarchy. Will return resources who's owner is in the group ancestry chain.
PredicateKeyEnumLanguage PredicateKeyEnum = "language" // Filter by `language` field.
PredicateKeyEnumLifecycleIndex PredicateKeyEnum = "lifecycle_index" // Filter by `lifecycle` field.
PredicateKeyEnumName PredicateKeyEnum = "name" // Filter by `name` field.
PredicateKeyEnumOwnerID PredicateKeyEnum = "owner_id" // Filter by `owner` field.
PredicateKeyEnumOwnerIDs PredicateKeyEnum = "owner_ids" // Filter by `owner` hierarchy. Will return resources who's owner is in the team ancestry chain.
PredicateKeyEnumProduct PredicateKeyEnum = "product" // Filter by `product` field.
PredicateKeyEnumProperties PredicateKeyEnum = "properties" // Filter by custom-defined properties.
PredicateKeyEnumRepositoryIDs PredicateKeyEnum = "repository_ids" // Filter by Repository that this service is attached to, if any.
PredicateKeyEnumSystemID PredicateKeyEnum = "system_id" // Filter by System that this service is assigned to, if any.
PredicateKeyEnumTags PredicateKeyEnum = "tags" // Filter by `tags` field.
PredicateKeyEnumTierIndex PredicateKeyEnum = "tier_index" // Filter by `tier` field.
)
// All PredicateKeyEnum as []string
var AllPredicateKeyEnum = []string{
string(PredicateKeyEnumAliases),
string(PredicateKeyEnumCreationSource),
string(PredicateKeyEnumDomainID),
string(PredicateKeyEnumFilterID),
string(PredicateKeyEnumFramework),
string(PredicateKeyEnumGroupIDs),
string(PredicateKeyEnumLanguage),
string(PredicateKeyEnumLifecycleIndex),
string(PredicateKeyEnumName),
string(PredicateKeyEnumOwnerID),
string(PredicateKeyEnumOwnerIDs),
string(PredicateKeyEnumProduct),
string(PredicateKeyEnumProperties),
string(PredicateKeyEnumRepositoryIDs),
string(PredicateKeyEnumSystemID),
string(PredicateKeyEnumTags),
string(PredicateKeyEnumTierIndex),
}
// PredicateTypeEnum represents operations that can be used on predicates.
type PredicateTypeEnum string
const (
PredicateTypeEnumBelongsTo PredicateTypeEnum = "belongs_to" // Belongs to a group's hierarchy.
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.
PredicateTypeEnumDoesNotMatch PredicateTypeEnum = "does_not_match" // A certain filter is not matched.
PredicateTypeEnumDoesNotMatchRegex PredicateTypeEnum = "does_not_match_regex" // Does not match a value using a regular expression.
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).
PredicateTypeEnumMatches PredicateTypeEnum = "matches" // A certain filter is matched.
PredicateTypeEnumMatchesRegex PredicateTypeEnum = "matches_regex" // Matches a value using a regular expression.
PredicateTypeEnumSatisfiesJqExpression PredicateTypeEnum = "satisfies_jq_expression" // Satisfies an expression defined in jq.
PredicateTypeEnumSatisfiesVersionConstraint PredicateTypeEnum = "satisfies_version_constraint" // Satisfies version constraint (tag value only).
PredicateTypeEnumStartsWith PredicateTypeEnum = "starts_with" // Starts with a specific value.
)
// All PredicateTypeEnum as []string
var AllPredicateTypeEnum = []string{
string(PredicateTypeEnumBelongsTo),
string(PredicateTypeEnumContains),
string(PredicateTypeEnumDoesNotContain),
string(PredicateTypeEnumDoesNotEqual),
string(PredicateTypeEnumDoesNotExist),
string(PredicateTypeEnumDoesNotMatch),
string(PredicateTypeEnumDoesNotMatchRegex),
string(PredicateTypeEnumEndsWith),
string(PredicateTypeEnumEquals),
string(PredicateTypeEnumExists),
string(PredicateTypeEnumGreaterThanOrEqualTo),
string(PredicateTypeEnumLessThanOrEqualTo),
string(PredicateTypeEnumMatches),
string(PredicateTypeEnumMatchesRegex),
string(PredicateTypeEnumSatisfiesJqExpression),
string(PredicateTypeEnumSatisfiesVersionConstraint),
string(PredicateTypeEnumStartsWith),
}
// PropertyDefinitionDisplayTypeEnum represents the set of possible display types of a property definition schema.
type PropertyDefinitionDisplayTypeEnum string
const (
PropertyDefinitionDisplayTypeEnumArray PropertyDefinitionDisplayTypeEnum = "ARRAY" // An array.
PropertyDefinitionDisplayTypeEnumBoolean PropertyDefinitionDisplayTypeEnum = "BOOLEAN" // A boolean.
PropertyDefinitionDisplayTypeEnumDropdown PropertyDefinitionDisplayTypeEnum = "DROPDOWN" // A dropdown.
PropertyDefinitionDisplayTypeEnumNumber PropertyDefinitionDisplayTypeEnum = "NUMBER" // A number.
PropertyDefinitionDisplayTypeEnumObject PropertyDefinitionDisplayTypeEnum = "OBJECT" // An object.
PropertyDefinitionDisplayTypeEnumText PropertyDefinitionDisplayTypeEnum = "TEXT" // A text string.
)
// All PropertyDefinitionDisplayTypeEnum as []string
var AllPropertyDefinitionDisplayTypeEnum = []string{
string(PropertyDefinitionDisplayTypeEnumArray),
string(PropertyDefinitionDisplayTypeEnumBoolean),
string(PropertyDefinitionDisplayTypeEnumDropdown),
string(PropertyDefinitionDisplayTypeEnumNumber),
string(PropertyDefinitionDisplayTypeEnumObject),
string(PropertyDefinitionDisplayTypeEnumText),
}
// PropertyDisplayStatusEnum represents the display status of a custom property on service pages.
type PropertyDisplayStatusEnum string
const (
PropertyDisplayStatusEnumHidden PropertyDisplayStatusEnum = "hidden" // The property is not shown on the service page.
PropertyDisplayStatusEnumVisible PropertyDisplayStatusEnum = "visible" // The property is shown on the service page.
)
// All PropertyDisplayStatusEnum as []string
var AllPropertyDisplayStatusEnum = []string{
string(PropertyDisplayStatusEnumHidden),
string(PropertyDisplayStatusEnumVisible),
}
// RelatedResourceRelationshipTypeEnum represents the type of the relationship between two resources.
type RelatedResourceRelationshipTypeEnum string
const (
RelatedResourceRelationshipTypeEnumBelongsTo RelatedResourceRelationshipTypeEnum = "belongs_to" // The resource belongs to the node on the edge.
RelatedResourceRelationshipTypeEnumContains RelatedResourceRelationshipTypeEnum = "contains" // The resource contains the node on the edge.
RelatedResourceRelationshipTypeEnumDependencyOf RelatedResourceRelationshipTypeEnum = "dependency_of" // The resource is a dependency of the node on the edge.
RelatedResourceRelationshipTypeEnumDependsOn RelatedResourceRelationshipTypeEnum = "depends_on" // The resource depends on the node on the edge.
RelatedResourceRelationshipTypeEnumMemberOf RelatedResourceRelationshipTypeEnum = "member_of" // The resource is a member of the node on the edge.
)
// All RelatedResourceRelationshipTypeEnum as []string
var AllRelatedResourceRelationshipTypeEnum = []string{
string(RelatedResourceRelationshipTypeEnumBelongsTo),
string(RelatedResourceRelationshipTypeEnumContains),
string(RelatedResourceRelationshipTypeEnumDependencyOf),
string(RelatedResourceRelationshipTypeEnumDependsOn),
string(RelatedResourceRelationshipTypeEnumMemberOf),
}
// RelationshipTypeEnum represents the type of relationship between two resources.
type RelationshipTypeEnum string
const (
RelationshipTypeEnumBelongsTo RelationshipTypeEnum = "belongs_to" // The source resource belongs to the target resource.
RelationshipTypeEnumDependsOn RelationshipTypeEnum = "depends_on" // The source resource depends on the target resource.
)
// All RelationshipTypeEnum as []string
var AllRelationshipTypeEnum = []string{
string(RelationshipTypeEnumBelongsTo),
string(RelationshipTypeEnumDependsOn),
}
// RepositoryVisibilityEnum represents possible visibility levels for repositories.
type RepositoryVisibilityEnum string
const (
RepositoryVisibilityEnumInternal RepositoryVisibilityEnum = "INTERNAL" // Repositories that are only accessible to organization users (Github, Gitlab).
RepositoryVisibilityEnumOrganization RepositoryVisibilityEnum = "ORGANIZATION" // Repositories that are only accessible to organization users (ADO).
RepositoryVisibilityEnumPrivate RepositoryVisibilityEnum = "PRIVATE" // Repositories that are private to the user.
RepositoryVisibilityEnumPublic RepositoryVisibilityEnum = "PUBLIC" // Repositories that are publicly accessible.
)
// All RepositoryVisibilityEnum as []string
var AllRepositoryVisibilityEnum = []string{
string(RepositoryVisibilityEnumInternal),
string(RepositoryVisibilityEnumOrganization),
string(RepositoryVisibilityEnumPrivate),
string(RepositoryVisibilityEnumPublic),
}
// ResourceDocumentStatusTypeEnum represents status of a document on a resource.
type ResourceDocumentStatusTypeEnum string
const (
ResourceDocumentStatusTypeEnumHidden ResourceDocumentStatusTypeEnum = "hidden" // Document is hidden.
ResourceDocumentStatusTypeEnumPinned ResourceDocumentStatusTypeEnum = "pinned" // Document is pinned.
ResourceDocumentStatusTypeEnumVisible ResourceDocumentStatusTypeEnum = "visible" // Document is visible.
)
// All ResourceDocumentStatusTypeEnum as []string
var AllResourceDocumentStatusTypeEnum = []string{
string(ResourceDocumentStatusTypeEnumHidden),
string(ResourceDocumentStatusTypeEnumPinned),
string(ResourceDocumentStatusTypeEnumVisible),
}
// ScorecardSortEnum represents the possible options to sort the resulting list of scorecards.
type ScorecardSortEnum string
const (
ScorecardSortEnumAffectsoverallservicelevelsAsc ScorecardSortEnum = "affectsOverallServiceLevels_ASC" // Order by whether or not the checks on the scorecard affect the overall maturity, in ascending order.
ScorecardSortEnumAffectsoverallservicelevelsDesc ScorecardSortEnum = "affectsOverallServiceLevels_DESC" // Order by whether or not the checks on the scorecard affect the overall maturity, in descending order.
ScorecardSortEnumFilterAsc ScorecardSortEnum = "filter_ASC" // Order by the associated filter's name, in ascending order.
ScorecardSortEnumFilterDesc ScorecardSortEnum = "filter_DESC" // Order by the associated filter's name, in descending order.
ScorecardSortEnumNameAsc ScorecardSortEnum = "name_ASC" // Order by the scorecard's name, in ascending order.
ScorecardSortEnumNameDesc ScorecardSortEnum = "name_DESC" // Order by the scorecard's name, in descending order.
ScorecardSortEnumOwnerAsc ScorecardSortEnum = "owner_ASC" // Order by the scorecard owner's name, in ascending order.
ScorecardSortEnumOwnerDesc ScorecardSortEnum = "owner_DESC" // Order by the scorecard owner's name, in descending order.
ScorecardSortEnumPassingcheckfractionAsc ScorecardSortEnum = "passingCheckFraction_ASC" // Order by the fraction of passing checks on the scorecard, in ascending order.
ScorecardSortEnumPassingcheckfractionDesc ScorecardSortEnum = "passingCheckFraction_DESC" // Order by the fraction of passing checks on the scorecard, in descending order.
ScorecardSortEnumServicecountAsc ScorecardSortEnum = "serviceCount_ASC" // Order by the number of services covered by the scorecard, in ascending order.
ScorecardSortEnumServicecountDesc ScorecardSortEnum = "serviceCount_DESC" // Order by the number of services covered by the scorecard, in descending order.
)
// All ScorecardSortEnum as []string
var AllScorecardSortEnum = []string{
string(ScorecardSortEnumAffectsoverallservicelevelsAsc),
string(ScorecardSortEnumAffectsoverallservicelevelsDesc),
string(ScorecardSortEnumFilterAsc),
string(ScorecardSortEnumFilterDesc),
string(ScorecardSortEnumNameAsc),
string(ScorecardSortEnumNameDesc),
string(ScorecardSortEnumOwnerAsc),
string(ScorecardSortEnumOwnerDesc),
string(ScorecardSortEnumPassingcheckfractionAsc),
string(ScorecardSortEnumPassingcheckfractionDesc),
string(ScorecardSortEnumServicecountAsc),
string(ScorecardSortEnumServicecountDesc),
}
// ServicePropertyTypeEnum represents properties of services that can be validated.
type ServicePropertyTypeEnum string
const (
ServicePropertyTypeEnumCustomProperty ServicePropertyTypeEnum = "custom_property" // A custom property that is associated with the service.
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" // Additional information about the service.
ServicePropertyTypeEnumProduct ServicePropertyTypeEnum = "product" // The product that is associated with a service.
ServicePropertyTypeEnumSystem ServicePropertyTypeEnum = "system" // The system that the service belongs to.
ServicePropertyTypeEnumTierIndex ServicePropertyTypeEnum = "tier_index" // The index of the tier a service belongs to.
)
// All ServicePropertyTypeEnum as []string
var AllServicePropertyTypeEnum = []string{
string(ServicePropertyTypeEnumCustomProperty),
string(ServicePropertyTypeEnumDescription),
string(ServicePropertyTypeEnumFramework),
string(ServicePropertyTypeEnumLanguage),
string(ServicePropertyTypeEnumLifecycleIndex),
string(ServicePropertyTypeEnumName),
string(ServicePropertyTypeEnumNote),
string(ServicePropertyTypeEnumProduct),
string(ServicePropertyTypeEnumSystem),
string(ServicePropertyTypeEnumTierIndex),
}
// ServiceSortEnum represents sort possibilities for services.
type ServiceSortEnum string
const (
ServiceSortEnumAlertStatusAsc ServiceSortEnum = "alert_status_ASC" // Sort by alert status ascending.
ServiceSortEnumAlertStatusDesc ServiceSortEnum = "alert_status_DESC" // Sort by alert status descending.
ServiceSortEnumChecksPassingAsc ServiceSortEnum = "checks_passing_ASC" // Sort by `checks_passing` ascending.
ServiceSortEnumChecksPassingDesc ServiceSortEnum = "checks_passing_DESC" // Sort by `checks_passing` descending.
ServiceSortEnumComponentTypeAsc ServiceSortEnum = "component_type_ASC" // Sort by component type ascending.
ServiceSortEnumComponentTypeDesc ServiceSortEnum = "component_type_DESC" // Sort by component type descending.
ServiceSortEnumLastDeployAsc ServiceSortEnum = "last_deploy_ASC" // Sort by last deploy time ascending.
ServiceSortEnumLastDeployDesc ServiceSortEnum = "last_deploy_DESC" // Sort by last deploy time descending.
ServiceSortEnumLevelIndexAsc ServiceSortEnum = "level_index_ASC" // Sort by level ascending.
ServiceSortEnumLevelIndexDesc ServiceSortEnum = "level_index_DESC" // Sort by level descending.
ServiceSortEnumLifecycleAsc ServiceSortEnum = "lifecycle_ASC" // Sort by lifecycle ascending.
ServiceSortEnumLifecycleDesc ServiceSortEnum = "lifecycle_DESC" // Sort by lifecycle descending.
ServiceSortEnumNameAsc ServiceSortEnum = "name_ASC" // Sort by `name` ascending.
ServiceSortEnumNameDesc ServiceSortEnum = "name_DESC" // Sort by `name` descending.
ServiceSortEnumOwnerAsc ServiceSortEnum = "owner_ASC" // Sort by `owner` ascending.
ServiceSortEnumOwnerDesc ServiceSortEnum = "owner_DESC" // Sort by `owner` descending.
ServiceSortEnumProductAsc ServiceSortEnum = "product_ASC" // Sort by `product` ascending.
ServiceSortEnumProductDesc ServiceSortEnum = "product_DESC" // Sort by `product` descending.
ServiceSortEnumServiceStatAsc ServiceSortEnum = "service_stat_ASC" // Alias to sort by `checks_passing` ascending.
ServiceSortEnumServiceStatDesc ServiceSortEnum = "service_stat_DESC" // Alias to sort by `checks_passing` descending.
ServiceSortEnumTierAsc ServiceSortEnum = "tier_ASC" // Sort by `tier` ascending.
ServiceSortEnumTierDesc ServiceSortEnum = "tier_DESC" // Sort by `tier` descending.
)
// All ServiceSortEnum as []string
var AllServiceSortEnum = []string{