-
Notifications
You must be signed in to change notification settings - Fork 16
/
cloudwatch_contributor_insights.aws.txt
163 lines (124 loc) · 6.64 KB
/
cloudwatch_contributor_insights.aws.txt
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
CLOUDWATCH_CONTRIBUTOR_INSIGHTS
TODO ==>
- unfinished docs about IRULE, MANAGED_RULE, IRULE_REPORT_REQ
- https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html
- limits: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_limits.html
VERSION ==> #See CloudWatch doc
SUMMARY ==> #???
/=+===============================+=\
/ : : \
)==: API :==(
\ :_______________________________: /
\=+===============================+=/
SERVICE_DOMAIN
FORMAT ==>
PAGINATION ==> #See CloudWatch doc
PRICING ==> #1$ per 2 IRULEs
# - free: 1 IRULE/month
#1$ per 5e7|3e7 matching events for Logs|DynamoDB
# - free: 1e6 matching events/month
#GetInsightRuleReport() API call: same as GetMetricData() (see its doc)
/=+===============================+=\
/ : : \
)==: INSIGHT RULE :==(
\ :_______________________________: /
\=+===============================+=/
PutInsightRule() #Req: IRULE
# - only Definition|Name|State -> RuleDefinition|RuleName|RuleState
#Res: empty
EnableInsightRules() #Req: IRULE
# - only Name -> RuleNames ARR
#Res: Failures IFAILURE_ARR
DisableInsightRules() #Req: IRULE
# - only Name -> RuleNames ARR
#Res: Failures FAILURE_ARR
DescribeInsightRules() #Req: empty
#Res: InsightRules IRULE_ARR
DeleteInsightRules() #Req: IRULE
# - only Name -> RuleNames ARR
#Res: Failures IFAILURE_ARR
IRULE #"Contributor insight rule"
IRULE.Definition #
IRULE.ManagedRule #
IRULE.Name #
IRULE.Schema #
IRULE.State #
IFAILURE #
IFAILURE.ExceptionType #
IFAILURE.FailureCode #
IFAILURE.FailureDescription #
IFAILURE.FailureResource #
TagResource()
ListTagsForResource()
UntagResource()
RESOURCE_TAGS.ResourceARN
RESOURCE_TAGS.Tags
IRULE.Tags #
COND_KEY cloudwatch:
requestInsightRuleLogGroups #STR_ARR. Only with PutInsightRule()
/=+===============================+=\
/ : : \
)==: INSIGHT RULE MANAGED :==(
\ :_______________________________: /
\=+===============================+=/
ListManagedInsightRules() #Req: MANAGED_IRULE
# - only ResourceARN
#Res: ManagedRules MANAGED_IRULE_ARR
PutManagedInsightRules() #Req: ManagedRules MANAGED_IRULE_ARR
#Res: Failures IFAILURE_ARR
MANAGED_IRULE #
MANAGED_IRULE.ResourceARN #'arn:aws:cloudwatch:REGION:ACCOUNT_ID:insight-rule/IRULE'???
COND_KEY cloudwatch:
requestManagedResourceARNs #ARN_ARR of MANAGED_IRULE.ResourceARN
MANAGED_IRULE.TemplateName #
MANAGED_IRULE.RuleState #RULE_STATE
RULE_STATE #
RULE_STATE.RuleName #
RULE_STATE.State #
/=+===============================+=\
/ : : \
)==: INSIGHT RULE REPORT :==(
\ :_______________________________: /
\=+===============================+=/
GetInsightRuleReport() #Req: IRULE_REPORT_REQ
#Res: IRULE_REPORT
IRULE_REPORT_REQ #
IRULE_REPORT_REQ.EndTime #
IRULE_REPORT_REQ
.MaxContributorCount #
IRULE_REPORT_REQ.Metrics #
IRULE_REPORT_REQ.OrderBy #
IRULE_REPORT_REQ.Period #
IRULE_REPORT_REQ.RuleName #
IRULE_REPORT_REQ.StartTime #
IRULE_REPORT #
IRULE_REPORT.AggregateValue #
IRULE_REPORT
.AggregationStatistic #
IRULE_REPORT
.ApproximateUniqueCount #
IRULE_REPORT.KeyLabels #
IRULE_REPORT.Contributors #CONTRIBUTOR_ARR
CONTRIBUTOR #
CONTRIBUTOR
.ApproximateAggregateValue #
CONTRIBUTOR.Keys #
CONTRIBUTOR.Datapoints #CDATAPOINT_ARR
CDATAPOINT #
CDATAPOINT.ApproximateValue #
CDATAPOINT.Timestamp #
IRULE_REPORT.MetricDatapoints #CSDATAPOINT_ARR
CSDATAPOINT #
CSDATAPOINT.Average #
CSDATAPOINT
.MaxContributorValue #
CSDATAPOINT.Maximum #
CSDATAPOINT.Minimum #
CSDATAPOINT.SampleCount #
CSDATAPOINT.Sum #
CSDATAPOINT.Timestamp #
CSDATAPOINT.UniqueContributors#
INSIGHT_RULE_METRIC() in METRIC_MATH???
- https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-GraphReportData.html