Framework/Listeners/RemoteReports/TelemetryStrings.ps1

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
Set-StrictMode -Version Latest
class TelemetryKeys {
    static [string] $SubscriptionId = "SubscriptionId";
    static [string] $SubscriptionName = "SubscriptionName";
    static [string] $FeatureGroup = "FeatureGroup";
    static [string] $Feature = "Feature";
    static [string] $ResourceName = "ResourceName";
    static [string] $ResourceGroup = "ResourceGroup";
    static [string] $IsInterrupted = "IsInterrupted";
    static [string] $InterruptedReason = "InterruptedReason";
    static [string] $InterruptedReasonException = "InterruptedReasonException";
    static [string] $TimeTakenInMs = "TimeTakenInMs";
    static [string] $ControlId = "ControlId";
    static [string] $ControlStatus = "ControlStatus";
    static [string] $ControlFailedReason = "ControlFailedReason";
    static [string] $NestedComplaintCount = "NestedComplaintCount";
    static [string] $NestedNonComplaintCount = "NestedNonComplaintCount";
    static [string] $NestedTotalCount = "NestedTotalCount";
    static [string] $NestedResourceName = "NestedResourceName";
    static [string] $IsNestedResourceCheck = "IsNestedResourceCheck";
}

class TelemetryEvents {
    static [string] $OperationInterrupted = "Operation Interrupted";
    static [string] $OperationCompleted = "Operation Completed";
    static [string] $ControlScanned = "Control Scanned";
    static [string] $NestedResourceControlScanned = "Nested Resource Control Scanned";
    static [string] $AutoHealAttempted = "Auto Heal Attempted";
}

class TelemetryMessages {
    static [string] $Yes = "Yes";
    static [string] $InterruptedReasonException = "Exception";
    static [string] $InterruptedReasonControlJSONNotFound = "ControlJSONNotFound";
    static [string] $ControlPassed = "Passed";
    static [string] $ControlFailed = "Failed";
    static [string] $ControlManual = "Manual";
    static [string] $ControlVerify = "Verify";
    static [string] $ControlDisabled = "Disabled";
    static [string] $ControlNotApplicable = "N/A";
}

enum TraceLevel {
    Verbose
    Information
    Warning
    Error
    Fatal
}