@tailglow/cli 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands.generated.js +228 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailglow/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The Tailglow command line. Every command is generated from the Tailglow API reference, so the CLI and the documentation can never describe different APIs.",
|
|
6
6
|
"bin": {
|
|
@@ -3014,7 +3014,7 @@ export const CLI_COMMANDS = [
|
|
|
3014
3014
|
"name": "preview_token",
|
|
3015
3015
|
"type": "string",
|
|
3016
3016
|
"required": false,
|
|
3017
|
-
"description": "The `edit_report.preview_token` from this edit's dry run. Required to save: it pins the save to the set of schema versions the preview reported on, so a version
|
|
3017
|
+
"description": "The `edit_report.preview_token` from this edit's dry run. Required to save: it pins the save to the set of schema versions the preview reported on, so a version assigned or reassigned in between is rejected instead of silently included. Optional. Minimum length: `1`. Maximum length: `128`.",
|
|
3018
3018
|
"allowed_values": [],
|
|
3019
3019
|
"deprecated": null
|
|
3020
3020
|
}
|
|
@@ -4713,9 +4713,10 @@ export const CLI_COMMANDS = [
|
|
|
4713
4713
|
"notes": [
|
|
4714
4714
|
"The monitor starts evaluating on its schedule as soon as it is created.",
|
|
4715
4715
|
"`scope` decides how many alerts a monitor can raise at once: `any_series` fires once for the metric as a whole, `each_series` tracks every series separately.",
|
|
4716
|
+
"No-data (`absence`) conditions require `chart_value=count` and a finite `time_window_minutes`.",
|
|
4716
4717
|
"`sustained_minutes` is required when `condition_type` is `sustained`, and `threshold_value` is required when it is `threshold`.",
|
|
4717
4718
|
"`min_occurrences` and `occurrence_window_minutes` must both be set or both be null, and occurrence-based triggering cannot be combined with a sustained condition.",
|
|
4718
|
-
"`schedule_cron` must be a valid cron expression.",
|
|
4719
|
+
"`schedule_cron` must be a valid cron expression. It is evaluated in UTC, and the finest granularity is one minute.",
|
|
4719
4720
|
"A monitor cannot be created active with an `expires_at` already in the past."
|
|
4720
4721
|
],
|
|
4721
4722
|
"path_params": [
|
|
@@ -4800,9 +4801,223 @@ export const CLI_COMMANDS = [
|
|
|
4800
4801
|
},
|
|
4801
4802
|
{
|
|
4802
4803
|
"name": "time_window_minutes",
|
|
4804
|
+
"type": "integer | null",
|
|
4805
|
+
"required": false,
|
|
4806
|
+
"description": "Evaluation lookback in whole minutes (1 to 525600). Null means since the metric was created. No-data conditions require a finite window. Optional.",
|
|
4807
|
+
"allowed_values": [],
|
|
4808
|
+
"deprecated": null
|
|
4809
|
+
},
|
|
4810
|
+
{
|
|
4811
|
+
"name": "condition_type",
|
|
4812
|
+
"type": "MonitorConditionType",
|
|
4813
|
+
"required": false,
|
|
4814
|
+
"description": "threshold compares a value, sustained requires that comparison to hold, existence fires when the selected value is greater than zero, and absence fires when no observations exist in the complete evaluation window, regardless of chart gap handling. Optional. Defaults to `\"threshold\"`.",
|
|
4815
|
+
"allowed_values": [
|
|
4816
|
+
"threshold",
|
|
4817
|
+
"sustained",
|
|
4818
|
+
"existence",
|
|
4819
|
+
"absence"
|
|
4820
|
+
],
|
|
4821
|
+
"deprecated": null
|
|
4822
|
+
},
|
|
4823
|
+
{
|
|
4824
|
+
"name": "operator",
|
|
4825
|
+
"type": "MonitorOperator",
|
|
4826
|
+
"required": false,
|
|
4827
|
+
"description": "How the metric value is compared against the threshold. Optional. Defaults to `\"gt\"`.",
|
|
4828
|
+
"allowed_values": [
|
|
4829
|
+
"gt",
|
|
4830
|
+
"gte",
|
|
4831
|
+
"lt",
|
|
4832
|
+
"lte",
|
|
4833
|
+
"eq",
|
|
4834
|
+
"neq"
|
|
4835
|
+
],
|
|
4836
|
+
"deprecated": null
|
|
4837
|
+
},
|
|
4838
|
+
{
|
|
4839
|
+
"name": "threshold_value",
|
|
4840
|
+
"type": "number | null",
|
|
4841
|
+
"required": false,
|
|
4842
|
+
"description": "The value the metric is compared against. Optional.",
|
|
4843
|
+
"allowed_values": [],
|
|
4844
|
+
"deprecated": null
|
|
4845
|
+
},
|
|
4846
|
+
{
|
|
4847
|
+
"name": "sustained_minutes",
|
|
4803
4848
|
"type": "number | null",
|
|
4804
4849
|
"required": false,
|
|
4805
|
-
"description": "How
|
|
4850
|
+
"description": "How long the condition must hold before the monitor fires. Optional.",
|
|
4851
|
+
"allowed_values": [],
|
|
4852
|
+
"deprecated": null
|
|
4853
|
+
},
|
|
4854
|
+
{
|
|
4855
|
+
"name": "schedule_cron",
|
|
4856
|
+
"type": "string",
|
|
4857
|
+
"required": false,
|
|
4858
|
+
"description": "Cron expression, in UTC, setting how often the monitor evaluates. Optional. Defaults to `\"* * * * *\"`. Minimum length: `1`. Maximum length: `128`.",
|
|
4859
|
+
"allowed_values": [],
|
|
4860
|
+
"deprecated": null
|
|
4861
|
+
},
|
|
4862
|
+
{
|
|
4863
|
+
"name": "alert_mode",
|
|
4864
|
+
"type": "MonitorAlertMode",
|
|
4865
|
+
"required": false,
|
|
4866
|
+
"description": "Whether an alert stays open until the condition clears, or opens and ends in one moment. Optional. Defaults to `\"spanning\"`.",
|
|
4867
|
+
"allowed_values": [
|
|
4868
|
+
"spanning",
|
|
4869
|
+
"instant"
|
|
4870
|
+
],
|
|
4871
|
+
"deprecated": null
|
|
4872
|
+
},
|
|
4873
|
+
{
|
|
4874
|
+
"name": "expires_at",
|
|
4875
|
+
"type": "ISODateString | null",
|
|
4876
|
+
"required": false,
|
|
4877
|
+
"description": "When the monitor stops evaluating. Leave null for no expiry. Optional.",
|
|
4878
|
+
"allowed_values": [],
|
|
4879
|
+
"deprecated": null
|
|
4880
|
+
},
|
|
4881
|
+
{
|
|
4882
|
+
"name": "series_filters",
|
|
4883
|
+
"type": "object | null",
|
|
4884
|
+
"required": false,
|
|
4885
|
+
"description": "Narrows which of the metric's series this monitor watches. Optional.",
|
|
4886
|
+
"allowed_values": [],
|
|
4887
|
+
"deprecated": null
|
|
4888
|
+
},
|
|
4889
|
+
{
|
|
4890
|
+
"name": "min_occurrences",
|
|
4891
|
+
"type": "integer | null",
|
|
4892
|
+
"required": false,
|
|
4893
|
+
"description": "How many times the condition must be met before the monitor fires. Optional.",
|
|
4894
|
+
"allowed_values": [],
|
|
4895
|
+
"deprecated": null
|
|
4896
|
+
},
|
|
4897
|
+
{
|
|
4898
|
+
"name": "occurrence_window_minutes",
|
|
4899
|
+
"type": "integer | null",
|
|
4900
|
+
"required": false,
|
|
4901
|
+
"description": "The window those occurrences have to fall within. Optional.",
|
|
4902
|
+
"allowed_values": [],
|
|
4903
|
+
"deprecated": null
|
|
4904
|
+
},
|
|
4905
|
+
{
|
|
4906
|
+
"name": "metric_id",
|
|
4907
|
+
"type": "string",
|
|
4908
|
+
"required": false,
|
|
4909
|
+
"description": "Metric to watch. Optional when using the /metrics/:metric/monitors route. Optional.",
|
|
4910
|
+
"allowed_values": [],
|
|
4911
|
+
"deprecated": null
|
|
4912
|
+
}
|
|
4913
|
+
]
|
|
4914
|
+
},
|
|
4915
|
+
{
|
|
4916
|
+
"resource": "monitors",
|
|
4917
|
+
"command": "preview",
|
|
4918
|
+
"operation_id": "previewMonitor",
|
|
4919
|
+
"summary": "Preview Monitor",
|
|
4920
|
+
"description": "Preview a monitor condition over its current evaluation window without saving or raising alerts.",
|
|
4921
|
+
"method": "POST",
|
|
4922
|
+
"path": "/v1/projects/:project_id/metrics/:metric_id/monitors/preview",
|
|
4923
|
+
"alternate_paths": [],
|
|
4924
|
+
"scopes": [
|
|
4925
|
+
"monitors:read"
|
|
4926
|
+
],
|
|
4927
|
+
"notes": [
|
|
4928
|
+
"Uses the same series filtering and condition evaluation as scheduled monitors. This is a condition preview, not a simulation of cron timing, sustained duration, or occurrence counting.",
|
|
4929
|
+
"An incomplete window returns ready=false with no verdicts. No-data conditions count observations across the whole window, including when the chart displays missing buckets as gaps.",
|
|
4930
|
+
"No-data (`absence`) conditions require `chart_value=count` and a finite `time_window_minutes`.",
|
|
4931
|
+
"`sustained_minutes` is required when `condition_type` is `sustained`, and `threshold_value` is required when it is `threshold`.",
|
|
4932
|
+
"`min_occurrences` and `occurrence_window_minutes` must both be set or both be null, and occurrence-based triggering cannot be combined with a sustained condition.",
|
|
4933
|
+
"`schedule_cron` must be a valid cron expression. It is evaluated in UTC, and the finest granularity is one minute.",
|
|
4934
|
+
"A monitor cannot be created active with an `expires_at` already in the past."
|
|
4935
|
+
],
|
|
4936
|
+
"path_params": [
|
|
4937
|
+
{
|
|
4938
|
+
"name": "project_id",
|
|
4939
|
+
"type": "string",
|
|
4940
|
+
"required": true,
|
|
4941
|
+
"description": "Unique identifier of the project.",
|
|
4942
|
+
"allowed_values": [],
|
|
4943
|
+
"deprecated": null
|
|
4944
|
+
},
|
|
4945
|
+
{
|
|
4946
|
+
"name": "metric_id",
|
|
4947
|
+
"type": "string",
|
|
4948
|
+
"required": true,
|
|
4949
|
+
"description": "Unique identifier of the metric.",
|
|
4950
|
+
"allowed_values": [],
|
|
4951
|
+
"deprecated": null
|
|
4952
|
+
}
|
|
4953
|
+
],
|
|
4954
|
+
"query_params": [],
|
|
4955
|
+
"body_fields": [
|
|
4956
|
+
{
|
|
4957
|
+
"name": "name",
|
|
4958
|
+
"type": "string",
|
|
4959
|
+
"required": false,
|
|
4960
|
+
"description": "Name shown for this monitor. Optional. Minimum length: `2`. Maximum length: `64`.",
|
|
4961
|
+
"allowed_values": [],
|
|
4962
|
+
"deprecated": null
|
|
4963
|
+
},
|
|
4964
|
+
{
|
|
4965
|
+
"name": "description",
|
|
4966
|
+
"type": "string | null",
|
|
4967
|
+
"required": false,
|
|
4968
|
+
"description": "What this monitor watches for. Optional.",
|
|
4969
|
+
"allowed_values": [],
|
|
4970
|
+
"deprecated": null
|
|
4971
|
+
},
|
|
4972
|
+
{
|
|
4973
|
+
"name": "status",
|
|
4974
|
+
"type": "string",
|
|
4975
|
+
"required": false,
|
|
4976
|
+
"description": "Whether the monitor starts evaluating immediately or switched off. `disabled` is not accepted: the system uses it to record that it stopped the monitor itself. Optional. Defaults to `\"active\"`.",
|
|
4977
|
+
"allowed_values": [
|
|
4978
|
+
"active",
|
|
4979
|
+
"paused"
|
|
4980
|
+
],
|
|
4981
|
+
"deprecated": null
|
|
4982
|
+
},
|
|
4983
|
+
{
|
|
4984
|
+
"name": "chart_value",
|
|
4985
|
+
"type": "MetricChartValue",
|
|
4986
|
+
"required": false,
|
|
4987
|
+
"description": "Which value of the metric is compared against the threshold. Optional. Defaults to `\"sum\"`.",
|
|
4988
|
+
"allowed_values": [
|
|
4989
|
+
"count",
|
|
4990
|
+
"average",
|
|
4991
|
+
"min",
|
|
4992
|
+
"max",
|
|
4993
|
+
"sum",
|
|
4994
|
+
"last",
|
|
4995
|
+
"cumulative_count",
|
|
4996
|
+
"cumulative_sum",
|
|
4997
|
+
"p50",
|
|
4998
|
+
"p95",
|
|
4999
|
+
"p99",
|
|
5000
|
+
"count_unique"
|
|
5001
|
+
],
|
|
5002
|
+
"deprecated": null
|
|
5003
|
+
},
|
|
5004
|
+
{
|
|
5005
|
+
"name": "scope",
|
|
5006
|
+
"type": "MonitorScope",
|
|
5007
|
+
"required": false,
|
|
5008
|
+
"description": "Whether the monitor fires once for the metric as a whole, or tracks each series separately. Optional. Defaults to `\"total\"`.",
|
|
5009
|
+
"allowed_values": [
|
|
5010
|
+
"total",
|
|
5011
|
+
"any_series",
|
|
5012
|
+
"each_series"
|
|
5013
|
+
],
|
|
5014
|
+
"deprecated": null
|
|
5015
|
+
},
|
|
5016
|
+
{
|
|
5017
|
+
"name": "time_window_minutes",
|
|
5018
|
+
"type": "integer | null",
|
|
5019
|
+
"required": false,
|
|
5020
|
+
"description": "Evaluation lookback in whole minutes (1 to 525600). Null means since the metric was created. No-data conditions require a finite window. Optional.",
|
|
4806
5021
|
"allowed_values": [],
|
|
4807
5022
|
"deprecated": null
|
|
4808
5023
|
},
|
|
@@ -4810,11 +5025,12 @@ export const CLI_COMMANDS = [
|
|
|
4810
5025
|
"name": "condition_type",
|
|
4811
5026
|
"type": "MonitorConditionType",
|
|
4812
5027
|
"required": false,
|
|
4813
|
-
"description": "
|
|
5028
|
+
"description": "threshold compares a value, sustained requires that comparison to hold, existence fires when the selected value is greater than zero, and absence fires when no observations exist in the complete evaluation window, regardless of chart gap handling. Optional. Defaults to `\"threshold\"`.",
|
|
4814
5029
|
"allowed_values": [
|
|
4815
5030
|
"threshold",
|
|
4816
5031
|
"sustained",
|
|
4817
|
-
"existence"
|
|
5032
|
+
"existence",
|
|
5033
|
+
"absence"
|
|
4818
5034
|
],
|
|
4819
5035
|
"deprecated": null
|
|
4820
5036
|
},
|
|
@@ -4927,9 +5143,10 @@ export const CLI_COMMANDS = [
|
|
|
4927
5143
|
"Changing what the monitor MEANS (its condition, scope, series filters or alert mode) ends any period currently firing, because the old alert no longer describes the new rule.",
|
|
4928
5144
|
"`metric_id` cannot be changed. Create a new monitor against the other metric instead.",
|
|
4929
5145
|
"The metric a monitor watches cannot be changed. Create a second monitor instead.",
|
|
5146
|
+
"No-data (`absence`) conditions require `chart_value=count` and a finite `time_window_minutes`.",
|
|
4930
5147
|
"`sustained_minutes` is required when `condition_type` is `sustained`, and `threshold_value` is required when it is `threshold`.",
|
|
4931
5148
|
"`min_occurrences` and `occurrence_window_minutes` must both be set or both be null, and occurrence-based triggering cannot be combined with a sustained condition.",
|
|
4932
|
-
"`schedule_cron` must be a valid cron expression.",
|
|
5149
|
+
"`schedule_cron` must be a valid cron expression. It is evaluated in UTC, and the finest granularity is one minute.",
|
|
4933
5150
|
"`status` is not editable here. Use the pause and resume operations, which is also what keeps a customer from writing the `disabled` the system uses for expiry.",
|
|
4934
5151
|
"Moving `expires_at` is rejected when that would leave an active monitor with an expiry already in the past. Editing a monitor that has already expired is allowed, including the update that extends its expiry.",
|
|
4935
5152
|
"Conditions are checked against the monitor as it will be stored, not against the fields you send, so a change that would leave the monitor in an invalid combination is rejected even when the conflicting value is one you did not send."
|
|
@@ -5013,9 +5230,9 @@ export const CLI_COMMANDS = [
|
|
|
5013
5230
|
},
|
|
5014
5231
|
{
|
|
5015
5232
|
"name": "time_window_minutes",
|
|
5016
|
-
"type": "
|
|
5233
|
+
"type": "integer | null",
|
|
5017
5234
|
"required": false,
|
|
5018
|
-
"description": "
|
|
5235
|
+
"description": "Evaluation lookback in whole minutes (1 to 525600). Null means since the metric was created. No-data conditions require a finite window. Optional.",
|
|
5019
5236
|
"allowed_values": [],
|
|
5020
5237
|
"deprecated": null
|
|
5021
5238
|
},
|
|
@@ -5023,11 +5240,12 @@ export const CLI_COMMANDS = [
|
|
|
5023
5240
|
"name": "condition_type",
|
|
5024
5241
|
"type": "MonitorConditionType",
|
|
5025
5242
|
"required": false,
|
|
5026
|
-
"description": "
|
|
5243
|
+
"description": "threshold compares a value, sustained requires that comparison to hold, existence fires when the selected value is greater than zero, and absence fires when no observations exist in the complete evaluation window, regardless of chart gap handling. Optional.",
|
|
5027
5244
|
"allowed_values": [
|
|
5028
5245
|
"threshold",
|
|
5029
5246
|
"sustained",
|
|
5030
|
-
"existence"
|
|
5247
|
+
"existence",
|
|
5248
|
+
"absence"
|
|
5031
5249
|
],
|
|
5032
5250
|
"deprecated": null
|
|
5033
5251
|
},
|