Skip to content

Commit 3fc3012

Browse files
authored
Merge pull request #298 from ably/moderation-stats-collapse
moderation: collapse beforePublishRules.* into httpEvent, remove outbound.hiveDashboard
2 parents 6c83869 + a93ba32 commit 3fc3012

File tree

2 files changed

+41
-240
lines changed

2 files changed

+41
-240
lines changed

json-schemas/src/account-stats.json

Lines changed: 20 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,56 +1034,6 @@
10341034
"inclusiveMinimum": 0,
10351035
"description": "Total number of outbound presence messages that were refused by Ably (generally due to rate limits)"
10361036
},
1037-
"messages.outbound.hiveDashboard.all.count": {
1038-
"type": "number",
1039-
"inclusiveMinimum": 0,
1040-
"description": "Total messages sent to the Hive moderation dashboard."
1041-
},
1042-
"messages.outbound.hiveDashboard.all.data": {
1043-
"type": "number",
1044-
"inclusiveMinimum": 0,
1045-
"description": "Total size of messages sent to the Hive moderation dashboard."
1046-
},
1047-
"messages.outbound.hiveDashboard.all.uncompressedData": {
1048-
"type": "number",
1049-
"inclusiveMinimum": 0,
1050-
"description": "Total uncompressed size of messages sent to the Hive moderation dashboard."
1051-
},
1052-
"messages.outbound.hiveDashboard.all.failed": {
1053-
"type": "number",
1054-
"inclusiveMinimum": 0,
1055-
"description": "Total number of messages sent to the Hive moderation dashboard that failed (which were rejected by the external endpoint for some reason)"
1056-
},
1057-
"messages.outbound.hiveDashboard.all.refused": {
1058-
"type": "number",
1059-
"inclusiveMinimum": 0,
1060-
"description": "Total number of messages sent to the Hive moderation dashboard that Ably refused to send or Hive refused to accept (generally due to a rate limit)"
1061-
},
1062-
"messages.outbound.hiveDashboard.messages.count": {
1063-
"type": "number",
1064-
"inclusiveMinimum": 0,
1065-
"description": "Total messages sent to the Hive moderation dashboard, excluding presence and object messages."
1066-
},
1067-
"messages.outbound.hiveDashboard.messages.data": {
1068-
"type": "number",
1069-
"inclusiveMinimum": 0,
1070-
"description": "Total size of messages sent to the Hive moderation dashboard, excluding presence and object messages."
1071-
},
1072-
"messages.outbound.hiveDashboard.messages.uncompressedData": {
1073-
"type": "number",
1074-
"inclusiveMinimum": 0,
1075-
"description": "Total uncompressed size of messages sent to the Hive moderation dashboard, excluding delta compression https://ably.com/docs/channels/options/deltas, excluding presence and object messages."
1076-
},
1077-
"messages.outbound.hiveDashboard.messages.failed": {
1078-
"type": "number",
1079-
"inclusiveMinimum": 0,
1080-
"description": "Total number of messages sent to the Hive moderation dashboard excluding presence and object messages that failed (which were rejected by the external endpoint for some reason)"
1081-
},
1082-
"messages.outbound.hiveDashboard.messages.refused": {
1083-
"type": "number",
1084-
"inclusiveMinimum": 0,
1085-
"description": "Total number of messages sent to the Hive moderation dashboard excluding presence and object messages that Ably refused to send or Hive refused to accept (generally due to a rate limit)"
1086-
},
10871037
"messages.persisted.all.count": {
10881038
"type": "number",
10891039
"inclusiveMinimum": 0,
@@ -1169,105 +1119,55 @@
11691119
"inclusiveMinimum": 0,
11701120
"description": "Total number of messages discarded by the 'conflating' batching policy."
11711121
},
1172-
"messages.processed.beforePublishRule.hiveTextModelOnly.messages.count": {
1173-
"type": "number",
1174-
"inclusiveMinimum": 0,
1175-
"description": "Total number of messages that were successfully processed by a Hive text model only rule before being published."
1176-
},
1177-
"messages.processed.beforePublishRule.hiveTextModelOnly.messages.data": {
1178-
"type": "number",
1179-
"inclusiveMinimum": 0,
1180-
"description": "Total size of messages that were processed by a Hive text model only rule before being published."
1181-
},
1182-
"messages.processed.beforePublishRule.hiveTextModelOnly.messages.uncompressedData": {
1183-
"type": "number",
1184-
"inclusiveMinimum": 0,
1185-
"description": "Total uncompressed size of messages that were processed by a Hive text model only rule before being published."
1186-
},
1187-
"messages.processed.beforePublishRule.hiveTextModelOnly.messages.failed": {
1188-
"type": "number",
1189-
"inclusiveMinimum": 0,
1190-
"description": "Total number of messages that were to be processed by a Hive text model only rule, but failed to be processed."
1191-
},
1192-
"messages.processed.beforePublishRule.hiveTextModelOnly.messages.refused": {
1193-
"type": "number",
1194-
"inclusiveMinimum": 0,
1195-
"description": "Total number of messages that were to be processed by a Hive text model only rule, but were refused by Ably or Hive."
1196-
},
1197-
"messages.processed.beforePublishRule.hiveTextModelOnly.messages.rejected": {
1198-
"type": "number",
1199-
"inclusiveMinimum": 0,
1200-
"description": "Total number of messages that were processed by a Hive text model only rule, but were rejected as a result of the processing, i.e. - they were violative of the category thresholds."
1201-
},
1202-
"messages.processed.beforePublishRule.hiveTextModelOnly.messages.editedBeforePublish": {
1203-
"type": "number",
1204-
"inclusiveMinimum": 0,
1205-
"description": "Total number of messages that were processed by a Hive text model only rule and were edited before subsequently being published."
1206-
},
1207-
"messages.processed.beforePublishRule.hiveTextModelOnly.messages.retries": {
1208-
"type": "number",
1209-
"inclusiveMinimum": 0,
1210-
"description": "The total number of times a message was attempted to be sent to Hive, but had to be retried due to a 5xx or 429 error."
1211-
},
1212-
"messages.processed.beforePublishRule.hiveTextModelOnly.messages.rateLimited": {
1213-
"type": "number",
1214-
"inclusiveMinimum": 0,
1215-
"description": "The total number of messages that were attempted to be sent to Hive, but were rate limited."
1216-
},
1217-
"messages.processed.beforePublishRule.hiveTextModelOnly.messages.acceptedWithoutSuccessfulInvocation": {
1218-
"type": "number",
1219-
"inclusiveMinimum": 0,
1220-
"description": "The total number of messages that were attempted to be sent to Hive but a 5xx or 429 error was returned, and the message was accepted for publishing anyway."
1221-
},
1222-
"messages.processed.beforePublishRule.lambda.messages.count": {
1122+
"messages.processed.beforePublishRules.httpEvent.messages.count": {
12231123
"type": "number",
12241124
"inclusiveMinimum": 0,
1225-
"description": "Total number of messages that were successfully processed by a Lambda rule before being published."
1125+
"description": "Total number of messages that were successfully processed by a HTTP trigger (typically a serverless function on a service such as AWS Lambda, Google Cloud Functions, or Azure Functions) before being published."
12261126
},
1227-
"messages.processed.beforePublishRule.lambda.messages.data": {
1127+
"messages.processed.beforePublishRules.httpEvent.messages.data": {
12281128
"type": "number",
12291129
"inclusiveMinimum": 0,
1230-
"description": "Total size of messages that were processed by a Lambda rule before being published."
1130+
"description": "Total size of messages that were processed by a HTTP trigger (typically a serverless function on a service such as AWS Lambda, Google Cloud Functions, or Azure Functions) before being published."
12311131
},
1232-
"messages.processed.beforePublishRule.lambda.messages.uncompressedData": {
1132+
"messages.processed.beforePublishRules.httpEvent.messages.uncompressedData": {
12331133
"type": "number",
12341134
"inclusiveMinimum": 0,
1235-
"description": "Total uncompressed size of messages that were processed by a Lambda rule before being published."
1135+
"description": "Total uncompressed size of messages that were processed by a HTTP trigger (typically a serverless function on a service such as AWS Lambda, Google Cloud Functions, or Azure Functions) before being published."
12361136
},
1237-
"messages.processed.beforePublishRule.lambda.messages.failed": {
1137+
"messages.processed.beforePublishRules.httpEvent.messages.failed": {
12381138
"type": "number",
12391139
"inclusiveMinimum": 0,
1240-
"description": "Total number of messages that were to be processed by a Lambda rule, but failed to be processed."
1140+
"description": "Total number of messages that were to be processed by a HTTP trigger (typically a serverless function on a service such as AWS Lambda, Google Cloud Functions, or Azure Functions), but failed to be processed."
12411141
},
1242-
"messages.processed.beforePublishRule.lambda.messages.refused": {
1142+
"messages.processed.beforePublishRules.httpEvent.messages.refused": {
12431143
"type": "number",
12441144
"inclusiveMinimum": 0,
1245-
"description": "Total number of messages that were to be processed by a Lambda rule, but were refused by Ably or Lambda."
1145+
"description": "Total number of messages that were to be processed by a HTTP trigger (typically a serverless function on a service such as AWS Lambda, Google Cloud Functions, or Azure Functions), but were refused by Ably or the trigger."
12461146
},
1247-
"messages.processed.beforePublishRule.lambda.messages.rejected": {
1147+
"messages.processed.beforePublishRules.httpEvent.messages.rejected": {
12481148
"type": "number",
12491149
"inclusiveMinimum": 0,
1250-
"description": "Total number of messages that were processed by a Lambda rule, but were rejected as a result of the processing, e.g. they were violative of some moderation policy."
1150+
"description": "Total number of messages that were processed by a HTTP trigger (typically a serverless function on a service such as AWS Lambda, Google Cloud Functions, or Azure Functions), but were rejected as a result of the processing, i.e. - they were violative of the category thresholds."
12511151
},
1252-
"messages.processed.beforePublishRule.lambda.messages.editedBeforePublish": {
1152+
"messages.processed.beforePublishRules.httpEvent.messages.editedBeforePublish": {
12531153
"type": "number",
12541154
"inclusiveMinimum": 0,
1255-
"description": "Total number of messages that were processed by a Lambda rule and were edited before subsequently being published."
1155+
"description": "Total number of messages that were processed by a HTTP trigger (typically a serverless function on a service such as AWS Lambda, Google Cloud Functions, or Azure Functions) and were edited before subsequently being published."
12561156
},
1257-
"messages.processed.beforePublishRule.lambda.messages.retries": {
1157+
"messages.processed.beforePublishRules.httpEvent.messages.retries": {
12581158
"type": "number",
12591159
"inclusiveMinimum": 0,
1260-
"description": "The total number of times a message was attempted to be sent to Lambda, but had to be retried due to a 5xx or 429 error."
1160+
"description": "The total number of times a message was attempted to be sent to a HTTP trigger (typically a serverless function on a service such as AWS Lambda, Google Cloud Functions, or Azure Functions), but had to be retried due to a 5xx or 429 error."
12611161
},
1262-
"messages.processed.beforePublishRule.lambda.messages.rateLimited": {
1162+
"messages.processed.beforePublishRules.httpEvent.messages.rateLimited": {
12631163
"type": "number",
12641164
"inclusiveMinimum": 0,
1265-
"description": "The total number of messages that were attempted to be sent to Lambda, but were rate limited."
1165+
"description": "The total number of messages that were attempted to be sent to a HTTP trigger (typically a serverless function on a service such as AWS Lambda, Google Cloud Functions, or Azure Functions), but were rate limited."
12661166
},
1267-
"messages.processed.beforePublishRule.lambda.messages.acceptedWithoutSuccessfulInvocation": {
1167+
"messages.processed.beforePublishRules.httpEvent.messages.acceptedWithoutSuccessfulInvocation": {
12681168
"type": "number",
12691169
"inclusiveMinimum": 0,
1270-
"description": "The total number of messages that were attempted to be sent to Lambda but a 5xx or 429 error was returned, and the message was accepted for publishing anyway."
1170+
"description": "The total number of messages that were attempted to be sent to a HTTP trigger (typically a serverless function on a service such as AWS Lambda, Google Cloud Functions, or Azure Functions) but a 5xx or 429 error was returned, and the message was accepted for publishing anyway."
12711171
},
12721172
"connections.all.peak": {
12731173
"type": "number",

0 commit comments

Comments
 (0)