@utdk/posthog 1.0.0-20260712.5-dev.e2949a6
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/LICENSE +373 -0
- package/README.md +172 -0
- package/docs/account_relationship_definitions.md +194 -0
- package/docs/accounts.md +380 -0
- package/docs/actions.md +274 -0
- package/docs/activity_logs.md +144 -0
- package/docs/advanced_activity_logs.md +101 -0
- package/docs/agent_platform.md +2525 -0
- package/docs/ai-observability.md +514 -0
- package/docs/alerts.md +444 -0
- package/docs/annotations.md +200 -0
- package/docs/batch_exports.md +2118 -0
- package/docs/business_knowledge.md +468 -0
- package/docs/code-invites.md +72 -0
- package/docs/cohorts.md +412 -0
- package/docs/comments.md +321 -0
- package/docs/conversations.md +695 -0
- package/docs/custom_property_definitions.md +442 -0
- package/docs/custom_property_sources.md +194 -0
- package/docs/customer_analytics.md +442 -0
- package/docs/customer_journeys.md +380 -0
- package/docs/customer_profile_configs.md +380 -0
- package/docs/dashboard_templates.md +258 -0
- package/docs/dashboards.md +1896 -0
- package/docs/data_color_themes.md +380 -0
- package/docs/data_modeling_jobs.md +264 -0
- package/docs/data_warehouse.md +928 -0
- package/docs/dataset_items.md +382 -0
- package/docs/datasets.md +382 -0
- package/docs/desktop_file_system.md +753 -0
- package/docs/desktop_file_system_shortcut.md +244 -0
- package/docs/docs.md +72 -0
- package/docs/early_access_feature.md +194 -0
- package/docs/elements.md +510 -0
- package/docs/endpoints.md +1030 -0
- package/docs/engineering_analytics.md +712 -0
- package/docs/environments.md +881 -0
- package/docs/error_tracking.md +5108 -0
- package/docs/evaluation_runs.md +78 -0
- package/docs/evaluations.md +446 -0
- package/docs/event_definitions.md +425 -0
- package/docs/event_filter.md +280 -0
- package/docs/event_schemas.md +163 -0
- package/docs/events.md +208 -0
- package/docs/experiment_holdouts.md +194 -0
- package/docs/experiment_saved_metrics.md +194 -0
- package/docs/experiments.md +1088 -0
- package/docs/exports.md +256 -0
- package/docs/external_data_schemas.md +752 -0
- package/docs/external_data_sources.md +2296 -0
- package/docs/feature_flags.md +808 -0
- package/docs/field_notes.md +206 -0
- package/docs/file_system.md +880 -0
- package/docs/file_system_shortcut.md +444 -0
- package/docs/flag_value.md +46 -0
- package/docs/groups.md +514 -0
- package/docs/groups_types.md +349 -0
- package/docs/health_issues.md +386 -0
- package/docs/heatmap_screenshots.md +72 -0
- package/docs/heatmaps.md +136 -0
- package/docs/hog_flows.md +1576 -0
- package/docs/hog_function_templates.md +101 -0
- package/docs/hog_functions.md +974 -0
- package/docs/ingestion_warnings_v2.md +40 -0
- package/docs/insight_variables.md +380 -0
- package/docs/insights.md +1722 -0
- package/docs/integrations.md +1954 -0
- package/docs/js-snippet.md +104 -0
- package/docs/live_debugger_breakpoints.md +264 -0
- package/docs/llm_analytics.md +3373 -0
- package/docs/llm_prompts.md +442 -0
- package/docs/llm_skills.md +952 -0
- package/docs/logs.md +2446 -0
- package/docs/managed_viewsets.md +140 -0
- package/docs/marketing_analytics.md +518 -0
- package/docs/max.md +772 -0
- package/docs/max_tools.md +70 -0
- package/docs/mcp_analytics.md +712 -0
- package/docs/mcp_server_installations.md +970 -0
- package/docs/mcp_servers.md +78 -0
- package/docs/mcp_tools.md +82 -0
- package/docs/messaging_templates.md +444 -0
- package/docs/metrics.md +462 -0
- package/docs/notebooks.md +838 -0
- package/docs/object_media_previews.md +228 -0
- package/docs/organizations.md +2958 -0
- package/docs/persons.md +1514 -0
- package/docs/platform_features.md +700 -0
- package/docs/plugin_configs.md +70 -0
- package/docs/product_enablement.md +39 -0
- package/docs/product_tours.md +357 -0
- package/docs/project_secret_api_keys.md +444 -0
- package/docs/property_access_controls.md +200 -0
- package/docs/property_definitions.md +244 -0
- package/docs/query.md +560 -0
- package/docs/quota_limits.md +40 -0
- package/docs/reminders.md +194 -0
- package/docs/replay.md +1020 -0
- package/docs/reverse_proxy.md +200 -0
- package/docs/sandbox-custom-images.md +209 -0
- package/docs/sandbox-environments.md +168 -0
- package/docs/saved.md +392 -0
- package/docs/saved_query_column_annotations.md +224 -0
- package/docs/scheduled_changes.md +200 -0
- package/docs/schema_property_groups.md +194 -0
- package/docs/sdk_health.md +40 -0
- package/docs/session_group_summaries.md +200 -0
- package/docs/session_recordings.md +260 -0
- package/docs/session_summaries.md +200 -0
- package/docs/sessions.md +132 -0
- package/docs/signals.md +1428 -0
- package/docs/single_session_summaries.md +72 -0
- package/docs/streamlit_apps.md +456 -0
- package/docs/subscriptions.md +634 -0
- package/docs/surveys.md +731 -0
- package/docs/taggers.md +446 -0
- package/docs/task-automations.md +200 -0
- package/docs/task-runs.md +654 -0
- package/docs/task_channels.md +136 -0
- package/docs/task_mentions.md +40 -0
- package/docs/tasks.md +776 -0
- package/docs/tracing.md +1186 -0
- package/docs/uploaded_media.md +44 -0
- package/docs/user_home_settings.md +72 -0
- package/docs/user_interview_topics.md +1288 -0
- package/docs/user_interviews.md +444 -0
- package/docs/users.md +1267 -0
- package/docs/vision.md +2022 -0
- package/docs/visual_review.md +816 -0
- package/docs/warehouse_column_annotations.md +224 -0
- package/docs/warehouse_column_statistics.md +80 -0
- package/docs/warehouse_dag.md +40 -0
- package/docs/warehouse_model_paths.md +70 -0
- package/docs/warehouse_saved_queries.md +1056 -0
- package/docs/warehouse_saved_query_folders.md +318 -0
- package/docs/warehouse_tables.md +584 -0
- package/docs/warehouse_view_link.md +456 -0
- package/docs/warehouse_view_links.md +456 -0
- package/docs/web_analytics.md +136 -0
- package/docs/web_analytics_achievements.md +200 -0
- package/docs/web_experiments.md +194 -0
- package/docs/web_vitals.md +74 -0
- package/docs/wizard.md +170 -0
- package/index.ts +22 -0
- package/metadata.ts +41419 -0
- package/openapi.json +297382 -0
- package/overlay.yaml +23 -0
- package/package.json +34 -0
- package/provenance.json +24 -0
- package/research.json +80 -0
- package/types/index.ts +17547 -0
package/docs/logs.md
ADDED
|
@@ -0,0 +1,2446 @@
|
|
|
1
|
+
# Logs
|
|
2
|
+
|
|
3
|
+
## Operations
|
|
4
|
+
|
|
5
|
+
### `posthog.environmentsLogsAlertsList`
|
|
6
|
+
|
|
7
|
+
- **HTTP**: `GET /api/environments/{environment_id}/logs/alerts/`
|
|
8
|
+
- **OpenAPI operationId**: `environments_logs_alerts_list`
|
|
9
|
+
- **Path params**: None
|
|
10
|
+
- **Query params**: `limit`, `offset`
|
|
11
|
+
- **Response codes**: `200`
|
|
12
|
+
- **Transport options**: None
|
|
13
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
14
|
+
|
|
15
|
+
**Inputs**
|
|
16
|
+
|
|
17
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
18
|
+
- Client transport options: None
|
|
19
|
+
|
|
20
|
+
**Outputs**
|
|
21
|
+
|
|
22
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: ...`
|
|
23
|
+
- OpenAPI response codes: `200`
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
import posthog from "@utdk/posthog";
|
|
27
|
+
|
|
28
|
+
type EnvironmentsLogsAlertsListInput = Parameters<typeof posthog.environmentsLogsAlertsList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
29
|
+
type EnvironmentsLogsAlertsListOutput = Awaited<ReturnType<typeof posthog.environmentsLogsAlertsList>>;
|
|
30
|
+
|
|
31
|
+
const result: EnvironmentsLogsAlertsListOutput = await posthog.environmentsLogsAlertsList();
|
|
32
|
+
|
|
33
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: ...
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### `posthog.environmentsLogsAlertsCreate`
|
|
37
|
+
|
|
38
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/alerts/`
|
|
39
|
+
- **OpenAPI operationId**: `environments_logs_alerts_create`
|
|
40
|
+
- **Path params**: None
|
|
41
|
+
- **Query params**: None
|
|
42
|
+
- **Response codes**: `201`
|
|
43
|
+
- **Transport options**: None
|
|
44
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
45
|
+
|
|
46
|
+
**Inputs**
|
|
47
|
+
|
|
48
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
49
|
+
- Client transport options: None
|
|
50
|
+
|
|
51
|
+
**Outputs**
|
|
52
|
+
|
|
53
|
+
- Client return type: `{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...`
|
|
54
|
+
- OpenAPI response codes: `201`
|
|
55
|
+
|
|
56
|
+
```ts
|
|
57
|
+
import posthog from "@utdk/posthog";
|
|
58
|
+
|
|
59
|
+
type EnvironmentsLogsAlertsCreateInput = Parameters<typeof posthog.environmentsLogsAlertsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
60
|
+
type EnvironmentsLogsAlertsCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsAlertsCreate>>;
|
|
61
|
+
|
|
62
|
+
const result: EnvironmentsLogsAlertsCreateOutput = await posthog.environmentsLogsAlertsCreate();
|
|
63
|
+
|
|
64
|
+
// Result shape (from schema): { id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### `posthog.environmentsLogsAlertsDestroy`
|
|
68
|
+
|
|
69
|
+
- **HTTP**: `DELETE /api/environments/{environment_id}/logs/alerts/{id}/`
|
|
70
|
+
- **OpenAPI operationId**: `environments_logs_alerts_destroy`
|
|
71
|
+
- **Path params**: `id`
|
|
72
|
+
- **Query params**: None
|
|
73
|
+
- **Response codes**: `204`
|
|
74
|
+
- **Transport options**: None
|
|
75
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
76
|
+
|
|
77
|
+
**Inputs**
|
|
78
|
+
|
|
79
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
80
|
+
- Client transport options: None
|
|
81
|
+
|
|
82
|
+
**Outputs**
|
|
83
|
+
|
|
84
|
+
- Client return type: `unknown`
|
|
85
|
+
- OpenAPI response codes: `204`
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
import posthog from "@utdk/posthog";
|
|
89
|
+
|
|
90
|
+
type EnvironmentsLogsAlertsDestroyInput = Parameters<typeof posthog.environmentsLogsAlertsDestroy> extends [infer T, ...unknown[]] ? T : undefined;
|
|
91
|
+
type EnvironmentsLogsAlertsDestroyOutput = Awaited<ReturnType<typeof posthog.environmentsLogsAlertsDestroy>>;
|
|
92
|
+
|
|
93
|
+
const result: EnvironmentsLogsAlertsDestroyOutput = await posthog.environmentsLogsAlertsDestroy();
|
|
94
|
+
|
|
95
|
+
// Result shape (from schema): unknown
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### `posthog.environmentsLogsAlertsRetrieve`
|
|
99
|
+
|
|
100
|
+
- **HTTP**: `GET /api/environments/{environment_id}/logs/alerts/{id}/`
|
|
101
|
+
- **OpenAPI operationId**: `environments_logs_alerts_retrieve`
|
|
102
|
+
- **Path params**: `id`
|
|
103
|
+
- **Query params**: None
|
|
104
|
+
- **Response codes**: `200`
|
|
105
|
+
- **Transport options**: None
|
|
106
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
107
|
+
|
|
108
|
+
**Inputs**
|
|
109
|
+
|
|
110
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
111
|
+
- Client transport options: None
|
|
112
|
+
|
|
113
|
+
**Outputs**
|
|
114
|
+
|
|
115
|
+
- Client return type: `{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...`
|
|
116
|
+
- OpenAPI response codes: `200`
|
|
117
|
+
|
|
118
|
+
```ts
|
|
119
|
+
import posthog from "@utdk/posthog";
|
|
120
|
+
|
|
121
|
+
type EnvironmentsLogsAlertsRetrieveInput = Parameters<typeof posthog.environmentsLogsAlertsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
122
|
+
type EnvironmentsLogsAlertsRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsLogsAlertsRetrieve>>;
|
|
123
|
+
|
|
124
|
+
const result: EnvironmentsLogsAlertsRetrieveOutput = await posthog.environmentsLogsAlertsRetrieve();
|
|
125
|
+
|
|
126
|
+
// Result shape (from schema): { id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### `posthog.environmentsLogsAlertsPartialUpdate`
|
|
130
|
+
|
|
131
|
+
- **HTTP**: `PATCH /api/environments/{environment_id}/logs/alerts/{id}/`
|
|
132
|
+
- **OpenAPI operationId**: `environments_logs_alerts_partial_update`
|
|
133
|
+
- **Path params**: `id`
|
|
134
|
+
- **Query params**: None
|
|
135
|
+
- **Response codes**: `200`
|
|
136
|
+
- **Transport options**: None
|
|
137
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
138
|
+
|
|
139
|
+
**Inputs**
|
|
140
|
+
|
|
141
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
142
|
+
- Client transport options: None
|
|
143
|
+
|
|
144
|
+
**Outputs**
|
|
145
|
+
|
|
146
|
+
- Client return type: `{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...`
|
|
147
|
+
- OpenAPI response codes: `200`
|
|
148
|
+
|
|
149
|
+
```ts
|
|
150
|
+
import posthog from "@utdk/posthog";
|
|
151
|
+
|
|
152
|
+
type EnvironmentsLogsAlertsPartialUpdateInput = Parameters<typeof posthog.environmentsLogsAlertsPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
153
|
+
type EnvironmentsLogsAlertsPartialUpdateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsAlertsPartialUpdate>>;
|
|
154
|
+
|
|
155
|
+
const result: EnvironmentsLogsAlertsPartialUpdateOutput = await posthog.environmentsLogsAlertsPartialUpdate();
|
|
156
|
+
|
|
157
|
+
// Result shape (from schema): { id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### `posthog.environmentsLogsAlertsUpdate`
|
|
161
|
+
|
|
162
|
+
- **HTTP**: `PUT /api/environments/{environment_id}/logs/alerts/{id}/`
|
|
163
|
+
- **OpenAPI operationId**: `environments_logs_alerts_update`
|
|
164
|
+
- **Path params**: `id`
|
|
165
|
+
- **Query params**: None
|
|
166
|
+
- **Response codes**: `200`
|
|
167
|
+
- **Transport options**: None
|
|
168
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
169
|
+
|
|
170
|
+
**Inputs**
|
|
171
|
+
|
|
172
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
173
|
+
- Client transport options: None
|
|
174
|
+
|
|
175
|
+
**Outputs**
|
|
176
|
+
|
|
177
|
+
- Client return type: `{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...`
|
|
178
|
+
- OpenAPI response codes: `200`
|
|
179
|
+
|
|
180
|
+
```ts
|
|
181
|
+
import posthog from "@utdk/posthog";
|
|
182
|
+
|
|
183
|
+
type EnvironmentsLogsAlertsUpdateInput = Parameters<typeof posthog.environmentsLogsAlertsUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
184
|
+
type EnvironmentsLogsAlertsUpdateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsAlertsUpdate>>;
|
|
185
|
+
|
|
186
|
+
const result: EnvironmentsLogsAlertsUpdateOutput = await posthog.environmentsLogsAlertsUpdate();
|
|
187
|
+
|
|
188
|
+
// Result shape (from schema): { id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### `posthog.environmentsLogsAlertsDestinationsCreate`
|
|
192
|
+
|
|
193
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/alerts/{id}/destinations/`
|
|
194
|
+
- **What it does**: Create a notification destination for this alert. One HogFunction is created per alert event kind (firing, resolved, ...) atomically.
|
|
195
|
+
- **OpenAPI operationId**: `environments_logs_alerts_destinations_create`
|
|
196
|
+
- **Path params**: `id`
|
|
197
|
+
- **Query params**: None
|
|
198
|
+
- **Response codes**: `201`
|
|
199
|
+
- **Transport options**: None
|
|
200
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
201
|
+
|
|
202
|
+
**Inputs**
|
|
203
|
+
|
|
204
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
205
|
+
- Client transport options: None
|
|
206
|
+
|
|
207
|
+
**Outputs**
|
|
208
|
+
|
|
209
|
+
- Client return type: `{ hog_function_ids: (string)[] }`
|
|
210
|
+
- OpenAPI response codes: `201`
|
|
211
|
+
|
|
212
|
+
```ts
|
|
213
|
+
import posthog from "@utdk/posthog";
|
|
214
|
+
|
|
215
|
+
type EnvironmentsLogsAlertsDestinationsCreateInput = Parameters<typeof posthog.environmentsLogsAlertsDestinationsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
216
|
+
type EnvironmentsLogsAlertsDestinationsCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsAlertsDestinationsCreate>>;
|
|
217
|
+
|
|
218
|
+
const result: EnvironmentsLogsAlertsDestinationsCreateOutput = await posthog.environmentsLogsAlertsDestinationsCreate();
|
|
219
|
+
|
|
220
|
+
// Result shape (from schema): { hog_function_ids: (string)[] }
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### `posthog.environmentsLogsAlertsDestinationsDeleteCreate`
|
|
224
|
+
|
|
225
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/alerts/{id}/destinations/delete/`
|
|
226
|
+
- **What it does**: Delete a notification destination by deleting its HogFunction group atomically.
|
|
227
|
+
- **OpenAPI operationId**: `environments_logs_alerts_destinations_delete_create`
|
|
228
|
+
- **Path params**: `id`
|
|
229
|
+
- **Query params**: None
|
|
230
|
+
- **Response codes**: `204`
|
|
231
|
+
- **Transport options**: None
|
|
232
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
233
|
+
|
|
234
|
+
**Inputs**
|
|
235
|
+
|
|
236
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
237
|
+
- Client transport options: None
|
|
238
|
+
|
|
239
|
+
**Outputs**
|
|
240
|
+
|
|
241
|
+
- Client return type: `unknown`
|
|
242
|
+
- OpenAPI response codes: `204`
|
|
243
|
+
|
|
244
|
+
```ts
|
|
245
|
+
import posthog from "@utdk/posthog";
|
|
246
|
+
|
|
247
|
+
type EnvironmentsLogsAlertsDestinationsDeleteCreateInput = Parameters<typeof posthog.environmentsLogsAlertsDestinationsDeleteCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
248
|
+
type EnvironmentsLogsAlertsDestinationsDeleteCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsAlertsDestinationsDeleteCreate>>;
|
|
249
|
+
|
|
250
|
+
const result: EnvironmentsLogsAlertsDestinationsDeleteCreateOutput = await posthog.environmentsLogsAlertsDestinationsDeleteCreate();
|
|
251
|
+
|
|
252
|
+
// Result shape (from schema): unknown
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### `posthog.environmentsLogsAlertsEventsList`
|
|
256
|
+
|
|
257
|
+
- **HTTP**: `GET /api/environments/{environment_id}/logs/alerts/{id}/events/`
|
|
258
|
+
- **What it does**: Paginated event history for this alert, newest first. Returns state transitions, errored checks, and user-initiated control-plane rows (reset, enable/disable, snooze/unsnooze, threshold change) — quiet no-op check rows (where state didn't change and there was no error) are filtered out since only the last 10 are kept and they carry no forensic value. Optional `?kind=...` narrows to a single kind.
|
|
259
|
+
- **OpenAPI operationId**: `environments_logs_alerts_events_list`
|
|
260
|
+
- **Path params**: `id`
|
|
261
|
+
- **Query params**: `limit`, `offset`
|
|
262
|
+
- **Response codes**: `200`
|
|
263
|
+
- **Transport options**: None
|
|
264
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
265
|
+
|
|
266
|
+
**Inputs**
|
|
267
|
+
|
|
268
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
269
|
+
- Client transport options: None
|
|
270
|
+
|
|
271
|
+
**Outputs**
|
|
272
|
+
|
|
273
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; created_at: string; kind: "check" | "reset" | "enable" | "disable" | "snooze" | "unsnooze" | "threshold_change" | "broken_config";...`
|
|
274
|
+
- OpenAPI response codes: `200`
|
|
275
|
+
|
|
276
|
+
```ts
|
|
277
|
+
import posthog from "@utdk/posthog";
|
|
278
|
+
|
|
279
|
+
type EnvironmentsLogsAlertsEventsListInput = Parameters<typeof posthog.environmentsLogsAlertsEventsList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
280
|
+
type EnvironmentsLogsAlertsEventsListOutput = Awaited<ReturnType<typeof posthog.environmentsLogsAlertsEventsList>>;
|
|
281
|
+
|
|
282
|
+
const result: EnvironmentsLogsAlertsEventsListOutput = await posthog.environmentsLogsAlertsEventsList();
|
|
283
|
+
|
|
284
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; created_at: string; kind: "check" | "reset" | "enable" | "disable" | "snooze" | "unsnooze" | "threshold_change" | "broken_config";...
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
### `posthog.environmentsLogsAlertsResetCreate`
|
|
288
|
+
|
|
289
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/alerts/{id}/reset/`
|
|
290
|
+
- **What it does**: Reset a broken alert. Clears the consecutive-failure counter and schedules an immediate recheck.
|
|
291
|
+
- **OpenAPI operationId**: `environments_logs_alerts_reset_create`
|
|
292
|
+
- **Path params**: `id`
|
|
293
|
+
- **Query params**: None
|
|
294
|
+
- **Response codes**: `200`
|
|
295
|
+
- **Transport options**: None
|
|
296
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
297
|
+
|
|
298
|
+
**Inputs**
|
|
299
|
+
|
|
300
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
301
|
+
- Client transport options: None
|
|
302
|
+
|
|
303
|
+
**Outputs**
|
|
304
|
+
|
|
305
|
+
- Client return type: `{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...`
|
|
306
|
+
- OpenAPI response codes: `200`
|
|
307
|
+
|
|
308
|
+
```ts
|
|
309
|
+
import posthog from "@utdk/posthog";
|
|
310
|
+
|
|
311
|
+
type EnvironmentsLogsAlertsResetCreateInput = Parameters<typeof posthog.environmentsLogsAlertsResetCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
312
|
+
type EnvironmentsLogsAlertsResetCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsAlertsResetCreate>>;
|
|
313
|
+
|
|
314
|
+
const result: EnvironmentsLogsAlertsResetCreateOutput = await posthog.environmentsLogsAlertsResetCreate();
|
|
315
|
+
|
|
316
|
+
// Result shape (from schema): { id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
### `posthog.environmentsLogsAlertsSimulateCreate`
|
|
320
|
+
|
|
321
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/alerts/simulate/`
|
|
322
|
+
- **What it does**: Simulate a logs alert on historical data using the full state machine. Read-only — no alert check records are created.
|
|
323
|
+
- **OpenAPI operationId**: `environments_logs_alerts_simulate_create`
|
|
324
|
+
- **Path params**: None
|
|
325
|
+
- **Query params**: None
|
|
326
|
+
- **Response codes**: `200`
|
|
327
|
+
- **Transport options**: None
|
|
328
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
329
|
+
|
|
330
|
+
**Inputs**
|
|
331
|
+
|
|
332
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
333
|
+
- Client transport options: None
|
|
334
|
+
|
|
335
|
+
**Outputs**
|
|
336
|
+
|
|
337
|
+
- Client return type: `{ buckets: ({ timestamp: string; count: number; threshold_breached: boolean; state: string; notification: string; reason: string })[]; fire_count: number; resolve_count: number; total_buckets: number; threshold_count: n...`
|
|
338
|
+
- OpenAPI response codes: `200`
|
|
339
|
+
|
|
340
|
+
```ts
|
|
341
|
+
import posthog from "@utdk/posthog";
|
|
342
|
+
|
|
343
|
+
type EnvironmentsLogsAlertsSimulateCreateInput = Parameters<typeof posthog.environmentsLogsAlertsSimulateCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
344
|
+
type EnvironmentsLogsAlertsSimulateCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsAlertsSimulateCreate>>;
|
|
345
|
+
|
|
346
|
+
const result: EnvironmentsLogsAlertsSimulateCreateOutput = await posthog.environmentsLogsAlertsSimulateCreate();
|
|
347
|
+
|
|
348
|
+
// Result shape (from schema): { buckets: ({ timestamp: string; count: number; threshold_breached: boolean; state: string; notification: string; reason: string })[]; fire_count: number; resolve_count: number; total_buckets: number; threshold_count: n...
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
### `posthog.environmentsLogsAttributesRetrieve`
|
|
352
|
+
|
|
353
|
+
- **HTTP**: `GET /api/environments/{environment_id}/logs/attributes/`
|
|
354
|
+
- **OpenAPI operationId**: `environments_logs_attributes_retrieve`
|
|
355
|
+
- **Path params**: None
|
|
356
|
+
- **Query params**: `attribute_type`, `dateRange`, `filterGroup`, `limit`, `offset`, `search`, `search_values`, `serviceNames`
|
|
357
|
+
- **Response codes**: `200`
|
|
358
|
+
- **Transport options**: None
|
|
359
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
360
|
+
|
|
361
|
+
**Inputs**
|
|
362
|
+
|
|
363
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
364
|
+
- Client transport options: None
|
|
365
|
+
|
|
366
|
+
**Outputs**
|
|
367
|
+
|
|
368
|
+
- Client return type: `{ results: ({ name: string; propertyFilterType: string; matchedOn: "key" | "value"; matchedValue?: string | null })[]; count: number }`
|
|
369
|
+
- OpenAPI response codes: `200`
|
|
370
|
+
|
|
371
|
+
```ts
|
|
372
|
+
import posthog from "@utdk/posthog";
|
|
373
|
+
|
|
374
|
+
type EnvironmentsLogsAttributesRetrieveInput = Parameters<typeof posthog.environmentsLogsAttributesRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
375
|
+
type EnvironmentsLogsAttributesRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsLogsAttributesRetrieve>>;
|
|
376
|
+
|
|
377
|
+
const result: EnvironmentsLogsAttributesRetrieveOutput = await posthog.environmentsLogsAttributesRetrieve();
|
|
378
|
+
|
|
379
|
+
// Result shape (from schema): { results: ({ name: string; propertyFilterType: string; matchedOn: "key" | "value"; matchedValue?: string | null })[]; count: number }
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
### `posthog.environmentsLogsCountRangesCreate`
|
|
383
|
+
|
|
384
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/count-ranges/`
|
|
385
|
+
- **OpenAPI operationId**: `environments_logs_count_ranges_create`
|
|
386
|
+
- **Path params**: None
|
|
387
|
+
- **Query params**: None
|
|
388
|
+
- **Response codes**: `200`
|
|
389
|
+
- **Transport options**: None
|
|
390
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
391
|
+
|
|
392
|
+
**Inputs**
|
|
393
|
+
|
|
394
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
395
|
+
- Client transport options: None
|
|
396
|
+
|
|
397
|
+
**Outputs**
|
|
398
|
+
|
|
399
|
+
- Client return type: `{ ranges: ({ date_from: string; date_to: string; count: number })[]; interval: string }`
|
|
400
|
+
- OpenAPI response codes: `200`
|
|
401
|
+
|
|
402
|
+
```ts
|
|
403
|
+
import posthog from "@utdk/posthog";
|
|
404
|
+
|
|
405
|
+
type EnvironmentsLogsCountRangesCreateInput = Parameters<typeof posthog.environmentsLogsCountRangesCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
406
|
+
type EnvironmentsLogsCountRangesCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsCountRangesCreate>>;
|
|
407
|
+
|
|
408
|
+
const result: EnvironmentsLogsCountRangesCreateOutput = await posthog.environmentsLogsCountRangesCreate();
|
|
409
|
+
|
|
410
|
+
// Result shape (from schema): { ranges: ({ date_from: string; date_to: string; count: number })[]; interval: string }
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
### `posthog.environmentsLogsCountCreate`
|
|
414
|
+
|
|
415
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/count/`
|
|
416
|
+
- **OpenAPI operationId**: `environments_logs_count_create`
|
|
417
|
+
- **Path params**: None
|
|
418
|
+
- **Query params**: None
|
|
419
|
+
- **Response codes**: `200`
|
|
420
|
+
- **Transport options**: None
|
|
421
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
422
|
+
|
|
423
|
+
**Inputs**
|
|
424
|
+
|
|
425
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
426
|
+
- Client transport options: None
|
|
427
|
+
|
|
428
|
+
**Outputs**
|
|
429
|
+
|
|
430
|
+
- Client return type: `{ count: number }`
|
|
431
|
+
- OpenAPI response codes: `200`
|
|
432
|
+
|
|
433
|
+
```ts
|
|
434
|
+
import posthog from "@utdk/posthog";
|
|
435
|
+
|
|
436
|
+
type EnvironmentsLogsCountCreateInput = Parameters<typeof posthog.environmentsLogsCountCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
437
|
+
type EnvironmentsLogsCountCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsCountCreate>>;
|
|
438
|
+
|
|
439
|
+
const result: EnvironmentsLogsCountCreateOutput = await posthog.environmentsLogsCountCreate();
|
|
440
|
+
|
|
441
|
+
// Result shape (from schema): { count: number }
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
### `posthog.environmentsLogsExplainLogWithAiCreate`
|
|
445
|
+
|
|
446
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/explainLogWithAI/`
|
|
447
|
+
- **What it does**: Explain a log entry using AI.
|
|
448
|
+
|
|
449
|
+
POST /api/environments/:id/logs/explainLogWithAI/
|
|
450
|
+
- **OpenAPI operationId**: `environments_logs_explainLogWithAI_create`
|
|
451
|
+
- **Path params**: None
|
|
452
|
+
- **Query params**: None
|
|
453
|
+
- **Response codes**: `201`
|
|
454
|
+
- **Transport options**: None
|
|
455
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
456
|
+
|
|
457
|
+
**Inputs**
|
|
458
|
+
|
|
459
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
460
|
+
- Client transport options: None
|
|
461
|
+
|
|
462
|
+
**Outputs**
|
|
463
|
+
|
|
464
|
+
- Client return type: `{ uuid: string; timestamp: string; force_refresh?: boolean }`
|
|
465
|
+
- OpenAPI response codes: `201`
|
|
466
|
+
|
|
467
|
+
```ts
|
|
468
|
+
import posthog from "@utdk/posthog";
|
|
469
|
+
|
|
470
|
+
type EnvironmentsLogsExplainLogWithAiCreateInput = Parameters<typeof posthog.environmentsLogsExplainLogWithAiCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
471
|
+
type EnvironmentsLogsExplainLogWithAiCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsExplainLogWithAiCreate>>;
|
|
472
|
+
|
|
473
|
+
const result: EnvironmentsLogsExplainLogWithAiCreateOutput = await posthog.environmentsLogsExplainLogWithAiCreate();
|
|
474
|
+
|
|
475
|
+
// Result shape (from schema): { uuid: string; timestamp: string; force_refresh?: boolean }
|
|
476
|
+
```
|
|
477
|
+
|
|
478
|
+
### `posthog.environmentsLogsExportCreate`
|
|
479
|
+
|
|
480
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/export/`
|
|
481
|
+
- **OpenAPI operationId**: `environments_logs_export_create`
|
|
482
|
+
- **Path params**: None
|
|
483
|
+
- **Query params**: None
|
|
484
|
+
- **Response codes**: `201`
|
|
485
|
+
- **Transport options**: None
|
|
486
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
487
|
+
|
|
488
|
+
**Inputs**
|
|
489
|
+
|
|
490
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
491
|
+
- Client transport options: None
|
|
492
|
+
|
|
493
|
+
**Outputs**
|
|
494
|
+
|
|
495
|
+
- Client return type: `{ [key: string]: unknown }`
|
|
496
|
+
- OpenAPI response codes: `201`
|
|
497
|
+
|
|
498
|
+
```ts
|
|
499
|
+
import posthog from "@utdk/posthog";
|
|
500
|
+
|
|
501
|
+
type EnvironmentsLogsExportCreateInput = Parameters<typeof posthog.environmentsLogsExportCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
502
|
+
type EnvironmentsLogsExportCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsExportCreate>>;
|
|
503
|
+
|
|
504
|
+
const result: EnvironmentsLogsExportCreateOutput = await posthog.environmentsLogsExportCreate();
|
|
505
|
+
|
|
506
|
+
// Result shape (from schema): { [key: string]: unknown }
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
### `posthog.environmentsLogsFacetValuesCreate`
|
|
510
|
+
|
|
511
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/facet_values/`
|
|
512
|
+
- **OpenAPI operationId**: `environments_logs_facet_values_create`
|
|
513
|
+
- **Path params**: None
|
|
514
|
+
- **Query params**: None
|
|
515
|
+
- **Response codes**: `200`
|
|
516
|
+
- **Transport options**: None
|
|
517
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
518
|
+
|
|
519
|
+
**Inputs**
|
|
520
|
+
|
|
521
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
522
|
+
- Client transport options: None
|
|
523
|
+
|
|
524
|
+
**Outputs**
|
|
525
|
+
|
|
526
|
+
- Client return type: `{ results: ({ value: string; count: number })[] }`
|
|
527
|
+
- OpenAPI response codes: `200`
|
|
528
|
+
|
|
529
|
+
```ts
|
|
530
|
+
import posthog from "@utdk/posthog";
|
|
531
|
+
|
|
532
|
+
type EnvironmentsLogsFacetValuesCreateInput = Parameters<typeof posthog.environmentsLogsFacetValuesCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
533
|
+
type EnvironmentsLogsFacetValuesCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsFacetValuesCreate>>;
|
|
534
|
+
|
|
535
|
+
const result: EnvironmentsLogsFacetValuesCreateOutput = await posthog.environmentsLogsFacetValuesCreate();
|
|
536
|
+
|
|
537
|
+
// Result shape (from schema): { results: ({ value: string; count: number })[] }
|
|
538
|
+
```
|
|
539
|
+
|
|
540
|
+
### `posthog.environmentsLogsGroupByCreate`
|
|
541
|
+
|
|
542
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/group-by/`
|
|
543
|
+
- **OpenAPI operationId**: `environments_logs_group_by_create`
|
|
544
|
+
- **Path params**: None
|
|
545
|
+
- **Query params**: None
|
|
546
|
+
- **Response codes**: `200`
|
|
547
|
+
- **Transport options**: None
|
|
548
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
549
|
+
|
|
550
|
+
**Inputs**
|
|
551
|
+
|
|
552
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
553
|
+
- Client transport options: None
|
|
554
|
+
|
|
555
|
+
**Outputs**
|
|
556
|
+
|
|
557
|
+
- Client return type: `{ groups: ({ value: string; log_count: number; error_count: number; last_seen: string })[]; total_groups: number; total_logs: number; truncated: boolean }`
|
|
558
|
+
- OpenAPI response codes: `200`
|
|
559
|
+
|
|
560
|
+
```ts
|
|
561
|
+
import posthog from "@utdk/posthog";
|
|
562
|
+
|
|
563
|
+
type EnvironmentsLogsGroupByCreateInput = Parameters<typeof posthog.environmentsLogsGroupByCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
564
|
+
type EnvironmentsLogsGroupByCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsGroupByCreate>>;
|
|
565
|
+
|
|
566
|
+
const result: EnvironmentsLogsGroupByCreateOutput = await posthog.environmentsLogsGroupByCreate();
|
|
567
|
+
|
|
568
|
+
// Result shape (from schema): { groups: ({ value: string; log_count: number; error_count: number; last_seen: string })[]; total_groups: number; total_logs: number; truncated: boolean }
|
|
569
|
+
```
|
|
570
|
+
|
|
571
|
+
### `posthog.environmentsLogsHasLogsRetrieve`
|
|
572
|
+
|
|
573
|
+
- **HTTP**: `GET /api/environments/{environment_id}/logs/has_logs/`
|
|
574
|
+
- **OpenAPI operationId**: `environments_logs_has_logs_retrieve`
|
|
575
|
+
- **Path params**: None
|
|
576
|
+
- **Query params**: None
|
|
577
|
+
- **Response codes**: `200`
|
|
578
|
+
- **Transport options**: None
|
|
579
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
580
|
+
|
|
581
|
+
**Inputs**
|
|
582
|
+
|
|
583
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
584
|
+
- Client transport options: None
|
|
585
|
+
|
|
586
|
+
**Outputs**
|
|
587
|
+
|
|
588
|
+
- Client return type: `{ [key: string]: unknown }`
|
|
589
|
+
- OpenAPI response codes: `200`
|
|
590
|
+
|
|
591
|
+
```ts
|
|
592
|
+
import posthog from "@utdk/posthog";
|
|
593
|
+
|
|
594
|
+
type EnvironmentsLogsHasLogsRetrieveInput = Parameters<typeof posthog.environmentsLogsHasLogsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
595
|
+
type EnvironmentsLogsHasLogsRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsLogsHasLogsRetrieve>>;
|
|
596
|
+
|
|
597
|
+
const result: EnvironmentsLogsHasLogsRetrieveOutput = await posthog.environmentsLogsHasLogsRetrieve();
|
|
598
|
+
|
|
599
|
+
// Result shape (from schema): { [key: string]: unknown }
|
|
600
|
+
```
|
|
601
|
+
|
|
602
|
+
### `posthog.environmentsLogsPatternsDiffCreate`
|
|
603
|
+
|
|
604
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/patterns_diff/`
|
|
605
|
+
- **OpenAPI operationId**: `environments_logs_patterns_diff_create`
|
|
606
|
+
- **Path params**: None
|
|
607
|
+
- **Query params**: None
|
|
608
|
+
- **Response codes**: `200`
|
|
609
|
+
- **Transport options**: None
|
|
610
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
611
|
+
|
|
612
|
+
**Inputs**
|
|
613
|
+
|
|
614
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
615
|
+
- Client transport options: None
|
|
616
|
+
|
|
617
|
+
**Outputs**
|
|
618
|
+
|
|
619
|
+
- Client return type: `{ entries: ({ classification: "new" | "rate_shift" | "gone" | "unchanged"; rate_ratio: number | null; pattern: { pattern: string; count: number; estimated_count: number; volume_share_pct: number; error_count: number; es...`
|
|
620
|
+
- OpenAPI response codes: `200`
|
|
621
|
+
|
|
622
|
+
```ts
|
|
623
|
+
import posthog from "@utdk/posthog";
|
|
624
|
+
|
|
625
|
+
type EnvironmentsLogsPatternsDiffCreateInput = Parameters<typeof posthog.environmentsLogsPatternsDiffCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
626
|
+
type EnvironmentsLogsPatternsDiffCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsPatternsDiffCreate>>;
|
|
627
|
+
|
|
628
|
+
const result: EnvironmentsLogsPatternsDiffCreateOutput = await posthog.environmentsLogsPatternsDiffCreate();
|
|
629
|
+
|
|
630
|
+
// Result shape (from schema): { entries: ({ classification: "new" | "rate_shift" | "gone" | "unchanged"; rate_ratio: number | null; pattern: { pattern: string; count: number; estimated_count: number; volume_share_pct: number; error_count: number; es...
|
|
631
|
+
```
|
|
632
|
+
|
|
633
|
+
### `posthog.environmentsLogsPatternsCreate`
|
|
634
|
+
|
|
635
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/patterns/`
|
|
636
|
+
- **OpenAPI operationId**: `environments_logs_patterns_create`
|
|
637
|
+
- **Path params**: None
|
|
638
|
+
- **Query params**: None
|
|
639
|
+
- **Response codes**: `200`
|
|
640
|
+
- **Transport options**: None
|
|
641
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
642
|
+
|
|
643
|
+
**Inputs**
|
|
644
|
+
|
|
645
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
646
|
+
- Client transport options: None
|
|
647
|
+
|
|
648
|
+
**Outputs**
|
|
649
|
+
|
|
650
|
+
- Client return type: `{ patterns: ({ pattern: string; count: number; estimated_count: number; volume_share_pct: number; error_count: number; estimated_error_count: number; first_seen: string; last_seen: string; examples: ({ body: string; sev...`
|
|
651
|
+
- OpenAPI response codes: `200`
|
|
652
|
+
|
|
653
|
+
```ts
|
|
654
|
+
import posthog from "@utdk/posthog";
|
|
655
|
+
|
|
656
|
+
type EnvironmentsLogsPatternsCreateInput = Parameters<typeof posthog.environmentsLogsPatternsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
657
|
+
type EnvironmentsLogsPatternsCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsPatternsCreate>>;
|
|
658
|
+
|
|
659
|
+
const result: EnvironmentsLogsPatternsCreateOutput = await posthog.environmentsLogsPatternsCreate();
|
|
660
|
+
|
|
661
|
+
// Result shape (from schema): { patterns: ({ pattern: string; count: number; estimated_count: number; volume_share_pct: number; error_count: number; estimated_error_count: number; first_seen: string; last_seen: string; examples: ({ body: string; sev...
|
|
662
|
+
```
|
|
663
|
+
|
|
664
|
+
### `posthog.environmentsLogsQueryCreate`
|
|
665
|
+
|
|
666
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/query/`
|
|
667
|
+
- **OpenAPI operationId**: `environments_logs_query_create`
|
|
668
|
+
- **Path params**: None
|
|
669
|
+
- **Query params**: None
|
|
670
|
+
- **Response codes**: `200`
|
|
671
|
+
- **Transport options**: None
|
|
672
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
673
|
+
|
|
674
|
+
**Inputs**
|
|
675
|
+
|
|
676
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
677
|
+
- Client transport options: None
|
|
678
|
+
|
|
679
|
+
**Outputs**
|
|
680
|
+
|
|
681
|
+
- Client return type: `{ query: { [key: string]: unknown }; results: ({ uuid: string; timestamp: string; observed_timestamp: string; body: string; severity_text: string; severity_number: number; level: string; trace_id: string; span_id: strin...`
|
|
682
|
+
- OpenAPI response codes: `200`
|
|
683
|
+
|
|
684
|
+
```ts
|
|
685
|
+
import posthog from "@utdk/posthog";
|
|
686
|
+
|
|
687
|
+
type EnvironmentsLogsQueryCreateInput = Parameters<typeof posthog.environmentsLogsQueryCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
688
|
+
type EnvironmentsLogsQueryCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsQueryCreate>>;
|
|
689
|
+
|
|
690
|
+
const result: EnvironmentsLogsQueryCreateOutput = await posthog.environmentsLogsQueryCreate();
|
|
691
|
+
|
|
692
|
+
// Result shape (from schema): { query: { [key: string]: unknown }; results: ({ uuid: string; timestamp: string; observed_timestamp: string; body: string; severity_text: string; severity_number: number; level: string; trace_id: string; span_id: strin...
|
|
693
|
+
```
|
|
694
|
+
|
|
695
|
+
### `posthog.environmentsLogsSamplingRulesList`
|
|
696
|
+
|
|
697
|
+
- **HTTP**: `GET /api/environments/{environment_id}/logs/sampling_rules/`
|
|
698
|
+
- **OpenAPI operationId**: `environments_logs_sampling_rules_list`
|
|
699
|
+
- **Path params**: None
|
|
700
|
+
- **Query params**: `limit`, `offset`
|
|
701
|
+
- **Response codes**: `200`
|
|
702
|
+
- **Transport options**: None
|
|
703
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
704
|
+
|
|
705
|
+
**Inputs**
|
|
706
|
+
|
|
707
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
708
|
+
- Client transport options: None
|
|
709
|
+
|
|
710
|
+
**Outputs**
|
|
711
|
+
|
|
712
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_serv...`
|
|
713
|
+
- OpenAPI response codes: `200`
|
|
714
|
+
|
|
715
|
+
```ts
|
|
716
|
+
import posthog from "@utdk/posthog";
|
|
717
|
+
|
|
718
|
+
type EnvironmentsLogsSamplingRulesListInput = Parameters<typeof posthog.environmentsLogsSamplingRulesList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
719
|
+
type EnvironmentsLogsSamplingRulesListOutput = Awaited<ReturnType<typeof posthog.environmentsLogsSamplingRulesList>>;
|
|
720
|
+
|
|
721
|
+
const result: EnvironmentsLogsSamplingRulesListOutput = await posthog.environmentsLogsSamplingRulesList();
|
|
722
|
+
|
|
723
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_serv...
|
|
724
|
+
```
|
|
725
|
+
|
|
726
|
+
### `posthog.environmentsLogsSamplingRulesCreate`
|
|
727
|
+
|
|
728
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/sampling_rules/`
|
|
729
|
+
- **OpenAPI operationId**: `environments_logs_sampling_rules_create`
|
|
730
|
+
- **Path params**: None
|
|
731
|
+
- **Query params**: None
|
|
732
|
+
- **Response codes**: `201`
|
|
733
|
+
- **Transport options**: None
|
|
734
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
735
|
+
|
|
736
|
+
**Inputs**
|
|
737
|
+
|
|
738
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
739
|
+
- Client transport options: None
|
|
740
|
+
|
|
741
|
+
**Outputs**
|
|
742
|
+
|
|
743
|
+
- Client return type: `{ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_fi...`
|
|
744
|
+
- OpenAPI response codes: `201`
|
|
745
|
+
|
|
746
|
+
```ts
|
|
747
|
+
import posthog from "@utdk/posthog";
|
|
748
|
+
|
|
749
|
+
type EnvironmentsLogsSamplingRulesCreateInput = Parameters<typeof posthog.environmentsLogsSamplingRulesCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
750
|
+
type EnvironmentsLogsSamplingRulesCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsSamplingRulesCreate>>;
|
|
751
|
+
|
|
752
|
+
const result: EnvironmentsLogsSamplingRulesCreateOutput = await posthog.environmentsLogsSamplingRulesCreate();
|
|
753
|
+
|
|
754
|
+
// Result shape (from schema): { id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_fi...
|
|
755
|
+
```
|
|
756
|
+
|
|
757
|
+
### `posthog.environmentsLogsSamplingRulesDestroy`
|
|
758
|
+
|
|
759
|
+
- **HTTP**: `DELETE /api/environments/{environment_id}/logs/sampling_rules/{id}/`
|
|
760
|
+
- **OpenAPI operationId**: `environments_logs_sampling_rules_destroy`
|
|
761
|
+
- **Path params**: `id`
|
|
762
|
+
- **Query params**: None
|
|
763
|
+
- **Response codes**: `204`
|
|
764
|
+
- **Transport options**: None
|
|
765
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
766
|
+
|
|
767
|
+
**Inputs**
|
|
768
|
+
|
|
769
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
770
|
+
- Client transport options: None
|
|
771
|
+
|
|
772
|
+
**Outputs**
|
|
773
|
+
|
|
774
|
+
- Client return type: `unknown`
|
|
775
|
+
- OpenAPI response codes: `204`
|
|
776
|
+
|
|
777
|
+
```ts
|
|
778
|
+
import posthog from "@utdk/posthog";
|
|
779
|
+
|
|
780
|
+
type EnvironmentsLogsSamplingRulesDestroyInput = Parameters<typeof posthog.environmentsLogsSamplingRulesDestroy> extends [infer T, ...unknown[]] ? T : undefined;
|
|
781
|
+
type EnvironmentsLogsSamplingRulesDestroyOutput = Awaited<ReturnType<typeof posthog.environmentsLogsSamplingRulesDestroy>>;
|
|
782
|
+
|
|
783
|
+
const result: EnvironmentsLogsSamplingRulesDestroyOutput = await posthog.environmentsLogsSamplingRulesDestroy();
|
|
784
|
+
|
|
785
|
+
// Result shape (from schema): unknown
|
|
786
|
+
```
|
|
787
|
+
|
|
788
|
+
### `posthog.environmentsLogsSamplingRulesRetrieve`
|
|
789
|
+
|
|
790
|
+
- **HTTP**: `GET /api/environments/{environment_id}/logs/sampling_rules/{id}/`
|
|
791
|
+
- **OpenAPI operationId**: `environments_logs_sampling_rules_retrieve`
|
|
792
|
+
- **Path params**: `id`
|
|
793
|
+
- **Query params**: None
|
|
794
|
+
- **Response codes**: `200`
|
|
795
|
+
- **Transport options**: None
|
|
796
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
797
|
+
|
|
798
|
+
**Inputs**
|
|
799
|
+
|
|
800
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
801
|
+
- Client transport options: None
|
|
802
|
+
|
|
803
|
+
**Outputs**
|
|
804
|
+
|
|
805
|
+
- Client return type: `{ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_fi...`
|
|
806
|
+
- OpenAPI response codes: `200`
|
|
807
|
+
|
|
808
|
+
```ts
|
|
809
|
+
import posthog from "@utdk/posthog";
|
|
810
|
+
|
|
811
|
+
type EnvironmentsLogsSamplingRulesRetrieveInput = Parameters<typeof posthog.environmentsLogsSamplingRulesRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
812
|
+
type EnvironmentsLogsSamplingRulesRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsLogsSamplingRulesRetrieve>>;
|
|
813
|
+
|
|
814
|
+
const result: EnvironmentsLogsSamplingRulesRetrieveOutput = await posthog.environmentsLogsSamplingRulesRetrieve();
|
|
815
|
+
|
|
816
|
+
// Result shape (from schema): { id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_fi...
|
|
817
|
+
```
|
|
818
|
+
|
|
819
|
+
### `posthog.environmentsLogsSamplingRulesPartialUpdate`
|
|
820
|
+
|
|
821
|
+
- **HTTP**: `PATCH /api/environments/{environment_id}/logs/sampling_rules/{id}/`
|
|
822
|
+
- **OpenAPI operationId**: `environments_logs_sampling_rules_partial_update`
|
|
823
|
+
- **Path params**: `id`
|
|
824
|
+
- **Query params**: None
|
|
825
|
+
- **Response codes**: `200`
|
|
826
|
+
- **Transport options**: None
|
|
827
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
828
|
+
|
|
829
|
+
**Inputs**
|
|
830
|
+
|
|
831
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
832
|
+
- Client transport options: None
|
|
833
|
+
|
|
834
|
+
**Outputs**
|
|
835
|
+
|
|
836
|
+
- Client return type: `{ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_fi...`
|
|
837
|
+
- OpenAPI response codes: `200`
|
|
838
|
+
|
|
839
|
+
```ts
|
|
840
|
+
import posthog from "@utdk/posthog";
|
|
841
|
+
|
|
842
|
+
type EnvironmentsLogsSamplingRulesPartialUpdateInput = Parameters<typeof posthog.environmentsLogsSamplingRulesPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
843
|
+
type EnvironmentsLogsSamplingRulesPartialUpdateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsSamplingRulesPartialUpdate>>;
|
|
844
|
+
|
|
845
|
+
const result: EnvironmentsLogsSamplingRulesPartialUpdateOutput = await posthog.environmentsLogsSamplingRulesPartialUpdate();
|
|
846
|
+
|
|
847
|
+
// Result shape (from schema): { id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_fi...
|
|
848
|
+
```
|
|
849
|
+
|
|
850
|
+
### `posthog.environmentsLogsSamplingRulesUpdate`
|
|
851
|
+
|
|
852
|
+
- **HTTP**: `PUT /api/environments/{environment_id}/logs/sampling_rules/{id}/`
|
|
853
|
+
- **OpenAPI operationId**: `environments_logs_sampling_rules_update`
|
|
854
|
+
- **Path params**: `id`
|
|
855
|
+
- **Query params**: None
|
|
856
|
+
- **Response codes**: `200`
|
|
857
|
+
- **Transport options**: None
|
|
858
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
859
|
+
|
|
860
|
+
**Inputs**
|
|
861
|
+
|
|
862
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
863
|
+
- Client transport options: None
|
|
864
|
+
|
|
865
|
+
**Outputs**
|
|
866
|
+
|
|
867
|
+
- Client return type: `{ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_fi...`
|
|
868
|
+
- OpenAPI response codes: `200`
|
|
869
|
+
|
|
870
|
+
```ts
|
|
871
|
+
import posthog from "@utdk/posthog";
|
|
872
|
+
|
|
873
|
+
type EnvironmentsLogsSamplingRulesUpdateInput = Parameters<typeof posthog.environmentsLogsSamplingRulesUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
874
|
+
type EnvironmentsLogsSamplingRulesUpdateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsSamplingRulesUpdate>>;
|
|
875
|
+
|
|
876
|
+
const result: EnvironmentsLogsSamplingRulesUpdateOutput = await posthog.environmentsLogsSamplingRulesUpdate();
|
|
877
|
+
|
|
878
|
+
// Result shape (from schema): { id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_fi...
|
|
879
|
+
```
|
|
880
|
+
|
|
881
|
+
### `posthog.environmentsLogsSamplingRulesSimulateCreate`
|
|
882
|
+
|
|
883
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/sampling_rules/{id}/simulate/`
|
|
884
|
+
- **What it does**: Dry-run estimate for how much volume this rule would remove (placeholder response until CH-backed simulation is wired).
|
|
885
|
+
- **OpenAPI operationId**: `environments_logs_sampling_rules_simulate_create`
|
|
886
|
+
- **Path params**: `id`
|
|
887
|
+
- **Query params**: None
|
|
888
|
+
- **Response codes**: `200`
|
|
889
|
+
- **Transport options**: None
|
|
890
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
891
|
+
|
|
892
|
+
**Inputs**
|
|
893
|
+
|
|
894
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
895
|
+
- Client transport options: None
|
|
896
|
+
|
|
897
|
+
**Outputs**
|
|
898
|
+
|
|
899
|
+
- Client return type: `{ estimated_reduction_pct: number; notes: string }`
|
|
900
|
+
- OpenAPI response codes: `200`
|
|
901
|
+
|
|
902
|
+
```ts
|
|
903
|
+
import posthog from "@utdk/posthog";
|
|
904
|
+
|
|
905
|
+
type EnvironmentsLogsSamplingRulesSimulateCreateInput = Parameters<typeof posthog.environmentsLogsSamplingRulesSimulateCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
906
|
+
type EnvironmentsLogsSamplingRulesSimulateCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsSamplingRulesSimulateCreate>>;
|
|
907
|
+
|
|
908
|
+
const result: EnvironmentsLogsSamplingRulesSimulateCreateOutput = await posthog.environmentsLogsSamplingRulesSimulateCreate();
|
|
909
|
+
|
|
910
|
+
// Result shape (from schema): { estimated_reduction_pct: number; notes: string }
|
|
911
|
+
```
|
|
912
|
+
|
|
913
|
+
### `posthog.environmentsLogsSamplingRulesReorderCreate`
|
|
914
|
+
|
|
915
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/sampling_rules/reorder/`
|
|
916
|
+
- **What it does**: Atomically reassign priorities so the given ID order maps to ascending priorities (0..n-1).
|
|
917
|
+
- **OpenAPI operationId**: `environments_logs_sampling_rules_reorder_create`
|
|
918
|
+
- **Path params**: None
|
|
919
|
+
- **Query params**: `limit`, `offset`
|
|
920
|
+
- **Response codes**: `200`
|
|
921
|
+
- **Transport options**: None
|
|
922
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
923
|
+
|
|
924
|
+
**Inputs**
|
|
925
|
+
|
|
926
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
927
|
+
- Client transport options: None
|
|
928
|
+
|
|
929
|
+
**Outputs**
|
|
930
|
+
|
|
931
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_serv...`
|
|
932
|
+
- OpenAPI response codes: `200`
|
|
933
|
+
|
|
934
|
+
```ts
|
|
935
|
+
import posthog from "@utdk/posthog";
|
|
936
|
+
|
|
937
|
+
type EnvironmentsLogsSamplingRulesReorderCreateInput = Parameters<typeof posthog.environmentsLogsSamplingRulesReorderCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
938
|
+
type EnvironmentsLogsSamplingRulesReorderCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsSamplingRulesReorderCreate>>;
|
|
939
|
+
|
|
940
|
+
const result: EnvironmentsLogsSamplingRulesReorderCreateOutput = await posthog.environmentsLogsSamplingRulesReorderCreate();
|
|
941
|
+
|
|
942
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_serv...
|
|
943
|
+
```
|
|
944
|
+
|
|
945
|
+
### `posthog.environmentsLogsServicesCreate`
|
|
946
|
+
|
|
947
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/services/`
|
|
948
|
+
- **OpenAPI operationId**: `environments_logs_services_create`
|
|
949
|
+
- **Path params**: None
|
|
950
|
+
- **Query params**: None
|
|
951
|
+
- **Response codes**: `200`
|
|
952
|
+
- **Transport options**: None
|
|
953
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
954
|
+
|
|
955
|
+
**Inputs**
|
|
956
|
+
|
|
957
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
958
|
+
- Client transport options: None
|
|
959
|
+
|
|
960
|
+
**Outputs**
|
|
961
|
+
|
|
962
|
+
- Client return type: `{ services: ({ service_name: string; log_count: number; error_count: number; error_rate: number; volume_share_pct?: number; severity_breakdown?: { debug: number; info: number; warn: number; error: number }; active_rules...`
|
|
963
|
+
- OpenAPI response codes: `200`
|
|
964
|
+
|
|
965
|
+
```ts
|
|
966
|
+
import posthog from "@utdk/posthog";
|
|
967
|
+
|
|
968
|
+
type EnvironmentsLogsServicesCreateInput = Parameters<typeof posthog.environmentsLogsServicesCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
969
|
+
type EnvironmentsLogsServicesCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsServicesCreate>>;
|
|
970
|
+
|
|
971
|
+
const result: EnvironmentsLogsServicesCreateOutput = await posthog.environmentsLogsServicesCreate();
|
|
972
|
+
|
|
973
|
+
// Result shape (from schema): { services: ({ service_name: string; log_count: number; error_count: number; error_rate: number; volume_share_pct?: number; severity_breakdown?: { debug: number; info: number; warn: number; error: number }; active_rules...
|
|
974
|
+
```
|
|
975
|
+
|
|
976
|
+
### `posthog.environmentsLogsSparklineCreate`
|
|
977
|
+
|
|
978
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/sparkline/`
|
|
979
|
+
- **OpenAPI operationId**: `environments_logs_sparkline_create`
|
|
980
|
+
- **Path params**: None
|
|
981
|
+
- **Query params**: None
|
|
982
|
+
- **Response codes**: `200`
|
|
983
|
+
- **Transport options**: None
|
|
984
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
985
|
+
|
|
986
|
+
**Inputs**
|
|
987
|
+
|
|
988
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
989
|
+
- Client transport options: None
|
|
990
|
+
|
|
991
|
+
**Outputs**
|
|
992
|
+
|
|
993
|
+
- Client return type: `{ results: ({ time: string; severity?: string; service?: string; count: number; bytes_uncompressed?: number })[] }`
|
|
994
|
+
- OpenAPI response codes: `200`
|
|
995
|
+
|
|
996
|
+
```ts
|
|
997
|
+
import posthog from "@utdk/posthog";
|
|
998
|
+
|
|
999
|
+
type EnvironmentsLogsSparklineCreateInput = Parameters<typeof posthog.environmentsLogsSparklineCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1000
|
+
type EnvironmentsLogsSparklineCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsSparklineCreate>>;
|
|
1001
|
+
|
|
1002
|
+
const result: EnvironmentsLogsSparklineCreateOutput = await posthog.environmentsLogsSparklineCreate();
|
|
1003
|
+
|
|
1004
|
+
// Result shape (from schema): { results: ({ time: string; severity?: string; service?: string; count: number; bytes_uncompressed?: number })[] }
|
|
1005
|
+
```
|
|
1006
|
+
|
|
1007
|
+
### `posthog.environmentsLogsValuesRetrieve`
|
|
1008
|
+
|
|
1009
|
+
- **HTTP**: `GET /api/environments/{environment_id}/logs/values/`
|
|
1010
|
+
- **OpenAPI operationId**: `environments_logs_values_retrieve`
|
|
1011
|
+
- **Path params**: None
|
|
1012
|
+
- **Query params**: `attribute_type`, `dateRange`, `filterGroup`, `key`, `serviceNames`, `value`
|
|
1013
|
+
- **Response codes**: `200`
|
|
1014
|
+
- **Transport options**: None
|
|
1015
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1016
|
+
|
|
1017
|
+
**Inputs**
|
|
1018
|
+
|
|
1019
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1020
|
+
- Client transport options: None
|
|
1021
|
+
|
|
1022
|
+
**Outputs**
|
|
1023
|
+
|
|
1024
|
+
- Client return type: `{ results: ({ id: string; name: string; count?: number })[]; refreshing: boolean }`
|
|
1025
|
+
- OpenAPI response codes: `200`
|
|
1026
|
+
|
|
1027
|
+
```ts
|
|
1028
|
+
import posthog from "@utdk/posthog";
|
|
1029
|
+
|
|
1030
|
+
type EnvironmentsLogsValuesRetrieveInput = Parameters<typeof posthog.environmentsLogsValuesRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1031
|
+
type EnvironmentsLogsValuesRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsLogsValuesRetrieve>>;
|
|
1032
|
+
|
|
1033
|
+
const result: EnvironmentsLogsValuesRetrieveOutput = await posthog.environmentsLogsValuesRetrieve();
|
|
1034
|
+
|
|
1035
|
+
// Result shape (from schema): { results: ({ id: string; name: string; count?: number })[]; refreshing: boolean }
|
|
1036
|
+
```
|
|
1037
|
+
|
|
1038
|
+
### `posthog.environmentsLogsViewsList`
|
|
1039
|
+
|
|
1040
|
+
- **HTTP**: `GET /api/environments/{environment_id}/logs/views/`
|
|
1041
|
+
- **OpenAPI operationId**: `environments_logs_views_list`
|
|
1042
|
+
- **Path params**: None
|
|
1043
|
+
- **Query params**: `limit`, `offset`
|
|
1044
|
+
- **Response codes**: `200`
|
|
1045
|
+
- **Transport options**: None
|
|
1046
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1047
|
+
|
|
1048
|
+
**Inputs**
|
|
1049
|
+
|
|
1050
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1051
|
+
- Client transport options: None
|
|
1052
|
+
|
|
1053
|
+
**Outputs**
|
|
1054
|
+
|
|
1055
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: numb...`
|
|
1056
|
+
- OpenAPI response codes: `200`
|
|
1057
|
+
|
|
1058
|
+
```ts
|
|
1059
|
+
import posthog from "@utdk/posthog";
|
|
1060
|
+
|
|
1061
|
+
type EnvironmentsLogsViewsListInput = Parameters<typeof posthog.environmentsLogsViewsList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1062
|
+
type EnvironmentsLogsViewsListOutput = Awaited<ReturnType<typeof posthog.environmentsLogsViewsList>>;
|
|
1063
|
+
|
|
1064
|
+
const result: EnvironmentsLogsViewsListOutput = await posthog.environmentsLogsViewsList();
|
|
1065
|
+
|
|
1066
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: numb...
|
|
1067
|
+
```
|
|
1068
|
+
|
|
1069
|
+
### `posthog.environmentsLogsViewsCreate`
|
|
1070
|
+
|
|
1071
|
+
- **HTTP**: `POST /api/environments/{environment_id}/logs/views/`
|
|
1072
|
+
- **OpenAPI operationId**: `environments_logs_views_create`
|
|
1073
|
+
- **Path params**: None
|
|
1074
|
+
- **Query params**: None
|
|
1075
|
+
- **Response codes**: `201`
|
|
1076
|
+
- **Transport options**: None
|
|
1077
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1078
|
+
|
|
1079
|
+
**Inputs**
|
|
1080
|
+
|
|
1081
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1082
|
+
- Client transport options: None
|
|
1083
|
+
|
|
1084
|
+
**Outputs**
|
|
1085
|
+
|
|
1086
|
+
- Client return type: `{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
|
|
1087
|
+
- OpenAPI response codes: `201`
|
|
1088
|
+
|
|
1089
|
+
```ts
|
|
1090
|
+
import posthog from "@utdk/posthog";
|
|
1091
|
+
|
|
1092
|
+
type EnvironmentsLogsViewsCreateInput = Parameters<typeof posthog.environmentsLogsViewsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1093
|
+
type EnvironmentsLogsViewsCreateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsViewsCreate>>;
|
|
1094
|
+
|
|
1095
|
+
const result: EnvironmentsLogsViewsCreateOutput = await posthog.environmentsLogsViewsCreate();
|
|
1096
|
+
|
|
1097
|
+
// Result shape (from schema): { id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
|
|
1098
|
+
```
|
|
1099
|
+
|
|
1100
|
+
### `posthog.environmentsLogsViewsDestroy`
|
|
1101
|
+
|
|
1102
|
+
- **HTTP**: `DELETE /api/environments/{environment_id}/logs/views/{short_id}/`
|
|
1103
|
+
- **OpenAPI operationId**: `environments_logs_views_destroy`
|
|
1104
|
+
- **Path params**: `short_id`
|
|
1105
|
+
- **Query params**: None
|
|
1106
|
+
- **Response codes**: `204`
|
|
1107
|
+
- **Transport options**: None
|
|
1108
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1109
|
+
|
|
1110
|
+
**Inputs**
|
|
1111
|
+
|
|
1112
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1113
|
+
- Client transport options: None
|
|
1114
|
+
|
|
1115
|
+
**Outputs**
|
|
1116
|
+
|
|
1117
|
+
- Client return type: `unknown`
|
|
1118
|
+
- OpenAPI response codes: `204`
|
|
1119
|
+
|
|
1120
|
+
```ts
|
|
1121
|
+
import posthog from "@utdk/posthog";
|
|
1122
|
+
|
|
1123
|
+
type EnvironmentsLogsViewsDestroyInput = Parameters<typeof posthog.environmentsLogsViewsDestroy> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1124
|
+
type EnvironmentsLogsViewsDestroyOutput = Awaited<ReturnType<typeof posthog.environmentsLogsViewsDestroy>>;
|
|
1125
|
+
|
|
1126
|
+
const result: EnvironmentsLogsViewsDestroyOutput = await posthog.environmentsLogsViewsDestroy();
|
|
1127
|
+
|
|
1128
|
+
// Result shape (from schema): unknown
|
|
1129
|
+
```
|
|
1130
|
+
|
|
1131
|
+
### `posthog.environmentsLogsViewsRetrieve`
|
|
1132
|
+
|
|
1133
|
+
- **HTTP**: `GET /api/environments/{environment_id}/logs/views/{short_id}/`
|
|
1134
|
+
- **OpenAPI operationId**: `environments_logs_views_retrieve`
|
|
1135
|
+
- **Path params**: `short_id`
|
|
1136
|
+
- **Query params**: None
|
|
1137
|
+
- **Response codes**: `200`
|
|
1138
|
+
- **Transport options**: None
|
|
1139
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1140
|
+
|
|
1141
|
+
**Inputs**
|
|
1142
|
+
|
|
1143
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1144
|
+
- Client transport options: None
|
|
1145
|
+
|
|
1146
|
+
**Outputs**
|
|
1147
|
+
|
|
1148
|
+
- Client return type: `{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
|
|
1149
|
+
- OpenAPI response codes: `200`
|
|
1150
|
+
|
|
1151
|
+
```ts
|
|
1152
|
+
import posthog from "@utdk/posthog";
|
|
1153
|
+
|
|
1154
|
+
type EnvironmentsLogsViewsRetrieveInput = Parameters<typeof posthog.environmentsLogsViewsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1155
|
+
type EnvironmentsLogsViewsRetrieveOutput = Awaited<ReturnType<typeof posthog.environmentsLogsViewsRetrieve>>;
|
|
1156
|
+
|
|
1157
|
+
const result: EnvironmentsLogsViewsRetrieveOutput = await posthog.environmentsLogsViewsRetrieve();
|
|
1158
|
+
|
|
1159
|
+
// Result shape (from schema): { id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
|
|
1160
|
+
```
|
|
1161
|
+
|
|
1162
|
+
### `posthog.environmentsLogsViewsPartialUpdate`
|
|
1163
|
+
|
|
1164
|
+
- **HTTP**: `PATCH /api/environments/{environment_id}/logs/views/{short_id}/`
|
|
1165
|
+
- **OpenAPI operationId**: `environments_logs_views_partial_update`
|
|
1166
|
+
- **Path params**: `short_id`
|
|
1167
|
+
- **Query params**: None
|
|
1168
|
+
- **Response codes**: `200`
|
|
1169
|
+
- **Transport options**: None
|
|
1170
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1171
|
+
|
|
1172
|
+
**Inputs**
|
|
1173
|
+
|
|
1174
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1175
|
+
- Client transport options: None
|
|
1176
|
+
|
|
1177
|
+
**Outputs**
|
|
1178
|
+
|
|
1179
|
+
- Client return type: `{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
|
|
1180
|
+
- OpenAPI response codes: `200`
|
|
1181
|
+
|
|
1182
|
+
```ts
|
|
1183
|
+
import posthog from "@utdk/posthog";
|
|
1184
|
+
|
|
1185
|
+
type EnvironmentsLogsViewsPartialUpdateInput = Parameters<typeof posthog.environmentsLogsViewsPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1186
|
+
type EnvironmentsLogsViewsPartialUpdateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsViewsPartialUpdate>>;
|
|
1187
|
+
|
|
1188
|
+
const result: EnvironmentsLogsViewsPartialUpdateOutput = await posthog.environmentsLogsViewsPartialUpdate();
|
|
1189
|
+
|
|
1190
|
+
// Result shape (from schema): { id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
|
|
1191
|
+
```
|
|
1192
|
+
|
|
1193
|
+
### `posthog.environmentsLogsViewsUpdate`
|
|
1194
|
+
|
|
1195
|
+
- **HTTP**: `PUT /api/environments/{environment_id}/logs/views/{short_id}/`
|
|
1196
|
+
- **OpenAPI operationId**: `environments_logs_views_update`
|
|
1197
|
+
- **Path params**: `short_id`
|
|
1198
|
+
- **Query params**: None
|
|
1199
|
+
- **Response codes**: `200`
|
|
1200
|
+
- **Transport options**: None
|
|
1201
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1202
|
+
|
|
1203
|
+
**Inputs**
|
|
1204
|
+
|
|
1205
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1206
|
+
- Client transport options: None
|
|
1207
|
+
|
|
1208
|
+
**Outputs**
|
|
1209
|
+
|
|
1210
|
+
- Client return type: `{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
|
|
1211
|
+
- OpenAPI response codes: `200`
|
|
1212
|
+
|
|
1213
|
+
```ts
|
|
1214
|
+
import posthog from "@utdk/posthog";
|
|
1215
|
+
|
|
1216
|
+
type EnvironmentsLogsViewsUpdateInput = Parameters<typeof posthog.environmentsLogsViewsUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1217
|
+
type EnvironmentsLogsViewsUpdateOutput = Awaited<ReturnType<typeof posthog.environmentsLogsViewsUpdate>>;
|
|
1218
|
+
|
|
1219
|
+
const result: EnvironmentsLogsViewsUpdateOutput = await posthog.environmentsLogsViewsUpdate();
|
|
1220
|
+
|
|
1221
|
+
// Result shape (from schema): { id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
|
|
1222
|
+
```
|
|
1223
|
+
|
|
1224
|
+
### `posthog.logsAlertsList`
|
|
1225
|
+
|
|
1226
|
+
- **HTTP**: `GET /api/projects/{project_id}/logs/alerts/`
|
|
1227
|
+
- **OpenAPI operationId**: `logs_alerts_list`
|
|
1228
|
+
- **Path params**: None
|
|
1229
|
+
- **Query params**: `limit`, `offset`
|
|
1230
|
+
- **Response codes**: `200`
|
|
1231
|
+
- **Transport options**: None
|
|
1232
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1233
|
+
|
|
1234
|
+
**Inputs**
|
|
1235
|
+
|
|
1236
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1237
|
+
- Client transport options: None
|
|
1238
|
+
|
|
1239
|
+
**Outputs**
|
|
1240
|
+
|
|
1241
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: ...`
|
|
1242
|
+
- OpenAPI response codes: `200`
|
|
1243
|
+
|
|
1244
|
+
```ts
|
|
1245
|
+
import posthog from "@utdk/posthog";
|
|
1246
|
+
|
|
1247
|
+
type LogsAlertsListInput = Parameters<typeof posthog.logsAlertsList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1248
|
+
type LogsAlertsListOutput = Awaited<ReturnType<typeof posthog.logsAlertsList>>;
|
|
1249
|
+
|
|
1250
|
+
const result: LogsAlertsListOutput = await posthog.logsAlertsList();
|
|
1251
|
+
|
|
1252
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: ...
|
|
1253
|
+
```
|
|
1254
|
+
|
|
1255
|
+
### `posthog.logsAlertsCreate`
|
|
1256
|
+
|
|
1257
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/alerts/`
|
|
1258
|
+
- **OpenAPI operationId**: `logs_alerts_create`
|
|
1259
|
+
- **Path params**: None
|
|
1260
|
+
- **Query params**: None
|
|
1261
|
+
- **Response codes**: `201`
|
|
1262
|
+
- **Transport options**: None
|
|
1263
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1264
|
+
|
|
1265
|
+
**Inputs**
|
|
1266
|
+
|
|
1267
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1268
|
+
- Client transport options: None
|
|
1269
|
+
|
|
1270
|
+
**Outputs**
|
|
1271
|
+
|
|
1272
|
+
- Client return type: `{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...`
|
|
1273
|
+
- OpenAPI response codes: `201`
|
|
1274
|
+
|
|
1275
|
+
```ts
|
|
1276
|
+
import posthog from "@utdk/posthog";
|
|
1277
|
+
|
|
1278
|
+
type LogsAlertsCreateInput = Parameters<typeof posthog.logsAlertsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1279
|
+
type LogsAlertsCreateOutput = Awaited<ReturnType<typeof posthog.logsAlertsCreate>>;
|
|
1280
|
+
|
|
1281
|
+
const result: LogsAlertsCreateOutput = await posthog.logsAlertsCreate();
|
|
1282
|
+
|
|
1283
|
+
// Result shape (from schema): { id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...
|
|
1284
|
+
```
|
|
1285
|
+
|
|
1286
|
+
### `posthog.logsAlertsDestroy`
|
|
1287
|
+
|
|
1288
|
+
- **HTTP**: `DELETE /api/projects/{project_id}/logs/alerts/{id}/`
|
|
1289
|
+
- **OpenAPI operationId**: `logs_alerts_destroy`
|
|
1290
|
+
- **Path params**: `id`
|
|
1291
|
+
- **Query params**: None
|
|
1292
|
+
- **Response codes**: `204`
|
|
1293
|
+
- **Transport options**: None
|
|
1294
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1295
|
+
|
|
1296
|
+
**Inputs**
|
|
1297
|
+
|
|
1298
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1299
|
+
- Client transport options: None
|
|
1300
|
+
|
|
1301
|
+
**Outputs**
|
|
1302
|
+
|
|
1303
|
+
- Client return type: `unknown`
|
|
1304
|
+
- OpenAPI response codes: `204`
|
|
1305
|
+
|
|
1306
|
+
```ts
|
|
1307
|
+
import posthog from "@utdk/posthog";
|
|
1308
|
+
|
|
1309
|
+
type LogsAlertsDestroyInput = Parameters<typeof posthog.logsAlertsDestroy> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1310
|
+
type LogsAlertsDestroyOutput = Awaited<ReturnType<typeof posthog.logsAlertsDestroy>>;
|
|
1311
|
+
|
|
1312
|
+
const result: LogsAlertsDestroyOutput = await posthog.logsAlertsDestroy();
|
|
1313
|
+
|
|
1314
|
+
// Result shape (from schema): unknown
|
|
1315
|
+
```
|
|
1316
|
+
|
|
1317
|
+
### `posthog.logsAlertsRetrieve`
|
|
1318
|
+
|
|
1319
|
+
- **HTTP**: `GET /api/projects/{project_id}/logs/alerts/{id}/`
|
|
1320
|
+
- **OpenAPI operationId**: `logs_alerts_retrieve`
|
|
1321
|
+
- **Path params**: `id`
|
|
1322
|
+
- **Query params**: None
|
|
1323
|
+
- **Response codes**: `200`
|
|
1324
|
+
- **Transport options**: None
|
|
1325
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1326
|
+
|
|
1327
|
+
**Inputs**
|
|
1328
|
+
|
|
1329
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1330
|
+
- Client transport options: None
|
|
1331
|
+
|
|
1332
|
+
**Outputs**
|
|
1333
|
+
|
|
1334
|
+
- Client return type: `{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...`
|
|
1335
|
+
- OpenAPI response codes: `200`
|
|
1336
|
+
|
|
1337
|
+
```ts
|
|
1338
|
+
import posthog from "@utdk/posthog";
|
|
1339
|
+
|
|
1340
|
+
type LogsAlertsRetrieveInput = Parameters<typeof posthog.logsAlertsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1341
|
+
type LogsAlertsRetrieveOutput = Awaited<ReturnType<typeof posthog.logsAlertsRetrieve>>;
|
|
1342
|
+
|
|
1343
|
+
const result: LogsAlertsRetrieveOutput = await posthog.logsAlertsRetrieve();
|
|
1344
|
+
|
|
1345
|
+
// Result shape (from schema): { id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...
|
|
1346
|
+
```
|
|
1347
|
+
|
|
1348
|
+
### `posthog.logsAlertsPartialUpdate`
|
|
1349
|
+
|
|
1350
|
+
- **HTTP**: `PATCH /api/projects/{project_id}/logs/alerts/{id}/`
|
|
1351
|
+
- **OpenAPI operationId**: `logs_alerts_partial_update`
|
|
1352
|
+
- **Path params**: `id`
|
|
1353
|
+
- **Query params**: None
|
|
1354
|
+
- **Response codes**: `200`
|
|
1355
|
+
- **Transport options**: None
|
|
1356
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1357
|
+
|
|
1358
|
+
**Inputs**
|
|
1359
|
+
|
|
1360
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1361
|
+
- Client transport options: None
|
|
1362
|
+
|
|
1363
|
+
**Outputs**
|
|
1364
|
+
|
|
1365
|
+
- Client return type: `{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...`
|
|
1366
|
+
- OpenAPI response codes: `200`
|
|
1367
|
+
|
|
1368
|
+
```ts
|
|
1369
|
+
import posthog from "@utdk/posthog";
|
|
1370
|
+
|
|
1371
|
+
type LogsAlertsPartialUpdateInput = Parameters<typeof posthog.logsAlertsPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1372
|
+
type LogsAlertsPartialUpdateOutput = Awaited<ReturnType<typeof posthog.logsAlertsPartialUpdate>>;
|
|
1373
|
+
|
|
1374
|
+
const result: LogsAlertsPartialUpdateOutput = await posthog.logsAlertsPartialUpdate();
|
|
1375
|
+
|
|
1376
|
+
// Result shape (from schema): { id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...
|
|
1377
|
+
```
|
|
1378
|
+
|
|
1379
|
+
### `posthog.logsAlertsUpdate`
|
|
1380
|
+
|
|
1381
|
+
- **HTTP**: `PUT /api/projects/{project_id}/logs/alerts/{id}/`
|
|
1382
|
+
- **OpenAPI operationId**: `logs_alerts_update`
|
|
1383
|
+
- **Path params**: `id`
|
|
1384
|
+
- **Query params**: None
|
|
1385
|
+
- **Response codes**: `200`
|
|
1386
|
+
- **Transport options**: None
|
|
1387
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1388
|
+
|
|
1389
|
+
**Inputs**
|
|
1390
|
+
|
|
1391
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1392
|
+
- Client transport options: None
|
|
1393
|
+
|
|
1394
|
+
**Outputs**
|
|
1395
|
+
|
|
1396
|
+
- Client return type: `{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...`
|
|
1397
|
+
- OpenAPI response codes: `200`
|
|
1398
|
+
|
|
1399
|
+
```ts
|
|
1400
|
+
import posthog from "@utdk/posthog";
|
|
1401
|
+
|
|
1402
|
+
type LogsAlertsUpdateInput = Parameters<typeof posthog.logsAlertsUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1403
|
+
type LogsAlertsUpdateOutput = Awaited<ReturnType<typeof posthog.logsAlertsUpdate>>;
|
|
1404
|
+
|
|
1405
|
+
const result: LogsAlertsUpdateOutput = await posthog.logsAlertsUpdate();
|
|
1406
|
+
|
|
1407
|
+
// Result shape (from schema): { id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...
|
|
1408
|
+
```
|
|
1409
|
+
|
|
1410
|
+
### `posthog.logsAlertsDestinationsCreate`
|
|
1411
|
+
|
|
1412
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/alerts/{id}/destinations/`
|
|
1413
|
+
- **What it does**: Create a notification destination for this alert. One HogFunction is created per alert event kind (firing, resolved, ...) atomically.
|
|
1414
|
+
- **OpenAPI operationId**: `logs_alerts_destinations_create`
|
|
1415
|
+
- **Path params**: `id`
|
|
1416
|
+
- **Query params**: None
|
|
1417
|
+
- **Response codes**: `201`
|
|
1418
|
+
- **Transport options**: None
|
|
1419
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1420
|
+
|
|
1421
|
+
**Inputs**
|
|
1422
|
+
|
|
1423
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1424
|
+
- Client transport options: None
|
|
1425
|
+
|
|
1426
|
+
**Outputs**
|
|
1427
|
+
|
|
1428
|
+
- Client return type: `{ hog_function_ids: (string)[] }`
|
|
1429
|
+
- OpenAPI response codes: `201`
|
|
1430
|
+
|
|
1431
|
+
```ts
|
|
1432
|
+
import posthog from "@utdk/posthog";
|
|
1433
|
+
|
|
1434
|
+
type LogsAlertsDestinationsCreateInput = Parameters<typeof posthog.logsAlertsDestinationsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1435
|
+
type LogsAlertsDestinationsCreateOutput = Awaited<ReturnType<typeof posthog.logsAlertsDestinationsCreate>>;
|
|
1436
|
+
|
|
1437
|
+
const result: LogsAlertsDestinationsCreateOutput = await posthog.logsAlertsDestinationsCreate();
|
|
1438
|
+
|
|
1439
|
+
// Result shape (from schema): { hog_function_ids: (string)[] }
|
|
1440
|
+
```
|
|
1441
|
+
|
|
1442
|
+
### `posthog.logsAlertsDestinationsDeleteCreate`
|
|
1443
|
+
|
|
1444
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/alerts/{id}/destinations/delete/`
|
|
1445
|
+
- **What it does**: Delete a notification destination by deleting its HogFunction group atomically.
|
|
1446
|
+
- **OpenAPI operationId**: `logs_alerts_destinations_delete_create`
|
|
1447
|
+
- **Path params**: `id`
|
|
1448
|
+
- **Query params**: None
|
|
1449
|
+
- **Response codes**: `204`
|
|
1450
|
+
- **Transport options**: None
|
|
1451
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1452
|
+
|
|
1453
|
+
**Inputs**
|
|
1454
|
+
|
|
1455
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1456
|
+
- Client transport options: None
|
|
1457
|
+
|
|
1458
|
+
**Outputs**
|
|
1459
|
+
|
|
1460
|
+
- Client return type: `unknown`
|
|
1461
|
+
- OpenAPI response codes: `204`
|
|
1462
|
+
|
|
1463
|
+
```ts
|
|
1464
|
+
import posthog from "@utdk/posthog";
|
|
1465
|
+
|
|
1466
|
+
type LogsAlertsDestinationsDeleteCreateInput = Parameters<typeof posthog.logsAlertsDestinationsDeleteCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1467
|
+
type LogsAlertsDestinationsDeleteCreateOutput = Awaited<ReturnType<typeof posthog.logsAlertsDestinationsDeleteCreate>>;
|
|
1468
|
+
|
|
1469
|
+
const result: LogsAlertsDestinationsDeleteCreateOutput = await posthog.logsAlertsDestinationsDeleteCreate();
|
|
1470
|
+
|
|
1471
|
+
// Result shape (from schema): unknown
|
|
1472
|
+
```
|
|
1473
|
+
|
|
1474
|
+
### `posthog.logsAlertsEventsList`
|
|
1475
|
+
|
|
1476
|
+
- **HTTP**: `GET /api/projects/{project_id}/logs/alerts/{id}/events/`
|
|
1477
|
+
- **What it does**: Paginated event history for this alert, newest first. Returns state transitions, errored checks, and user-initiated control-plane rows (reset, enable/disable, snooze/unsnooze, threshold change) — quiet no-op check rows (where state didn't change and there was no error) are filtered out since only the last 10 are kept and they carry no forensic value. Optional `?kind=...` narrows to a single kind.
|
|
1478
|
+
- **OpenAPI operationId**: `logs_alerts_events_list`
|
|
1479
|
+
- **Path params**: `id`
|
|
1480
|
+
- **Query params**: `limit`, `offset`
|
|
1481
|
+
- **Response codes**: `200`
|
|
1482
|
+
- **Transport options**: None
|
|
1483
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1484
|
+
|
|
1485
|
+
**Inputs**
|
|
1486
|
+
|
|
1487
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1488
|
+
- Client transport options: None
|
|
1489
|
+
|
|
1490
|
+
**Outputs**
|
|
1491
|
+
|
|
1492
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; created_at: string; kind: "check" | "reset" | "enable" | "disable" | "snooze" | "unsnooze" | "threshold_change" | "broken_config";...`
|
|
1493
|
+
- OpenAPI response codes: `200`
|
|
1494
|
+
|
|
1495
|
+
```ts
|
|
1496
|
+
import posthog from "@utdk/posthog";
|
|
1497
|
+
|
|
1498
|
+
type LogsAlertsEventsListInput = Parameters<typeof posthog.logsAlertsEventsList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1499
|
+
type LogsAlertsEventsListOutput = Awaited<ReturnType<typeof posthog.logsAlertsEventsList>>;
|
|
1500
|
+
|
|
1501
|
+
const result: LogsAlertsEventsListOutput = await posthog.logsAlertsEventsList();
|
|
1502
|
+
|
|
1503
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; created_at: string; kind: "check" | "reset" | "enable" | "disable" | "snooze" | "unsnooze" | "threshold_change" | "broken_config";...
|
|
1504
|
+
```
|
|
1505
|
+
|
|
1506
|
+
### `posthog.logsAlertsResetCreate`
|
|
1507
|
+
|
|
1508
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/alerts/{id}/reset/`
|
|
1509
|
+
- **What it does**: Reset a broken alert. Clears the consecutive-failure counter and schedules an immediate recheck.
|
|
1510
|
+
- **OpenAPI operationId**: `logs_alerts_reset_create`
|
|
1511
|
+
- **Path params**: `id`
|
|
1512
|
+
- **Query params**: None
|
|
1513
|
+
- **Response codes**: `200`
|
|
1514
|
+
- **Transport options**: None
|
|
1515
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1516
|
+
|
|
1517
|
+
**Inputs**
|
|
1518
|
+
|
|
1519
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1520
|
+
- Client transport options: None
|
|
1521
|
+
|
|
1522
|
+
**Outputs**
|
|
1523
|
+
|
|
1524
|
+
- Client return type: `{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...`
|
|
1525
|
+
- OpenAPI response codes: `200`
|
|
1526
|
+
|
|
1527
|
+
```ts
|
|
1528
|
+
import posthog from "@utdk/posthog";
|
|
1529
|
+
|
|
1530
|
+
type LogsAlertsResetCreateInput = Parameters<typeof posthog.logsAlertsResetCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1531
|
+
type LogsAlertsResetCreateOutput = Awaited<ReturnType<typeof posthog.logsAlertsResetCreate>>;
|
|
1532
|
+
|
|
1533
|
+
const result: LogsAlertsResetCreateOutput = await posthog.logsAlertsResetCreate();
|
|
1534
|
+
|
|
1535
|
+
// Result shape (from schema): { id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?...
|
|
1536
|
+
```
|
|
1537
|
+
|
|
1538
|
+
### `posthog.logsAlertsSimulateCreate`
|
|
1539
|
+
|
|
1540
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/alerts/simulate/`
|
|
1541
|
+
- **What it does**: Simulate a logs alert on historical data using the full state machine. Read-only — no alert check records are created.
|
|
1542
|
+
- **OpenAPI operationId**: `logs_alerts_simulate_create`
|
|
1543
|
+
- **Path params**: None
|
|
1544
|
+
- **Query params**: None
|
|
1545
|
+
- **Response codes**: `200`
|
|
1546
|
+
- **Transport options**: None
|
|
1547
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1548
|
+
|
|
1549
|
+
**Inputs**
|
|
1550
|
+
|
|
1551
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1552
|
+
- Client transport options: None
|
|
1553
|
+
|
|
1554
|
+
**Outputs**
|
|
1555
|
+
|
|
1556
|
+
- Client return type: `{ buckets: ({ timestamp: string; count: number; threshold_breached: boolean; state: string; notification: string; reason: string })[]; fire_count: number; resolve_count: number; total_buckets: number; threshold_count: n...`
|
|
1557
|
+
- OpenAPI response codes: `200`
|
|
1558
|
+
|
|
1559
|
+
```ts
|
|
1560
|
+
import posthog from "@utdk/posthog";
|
|
1561
|
+
|
|
1562
|
+
type LogsAlertsSimulateCreateInput = Parameters<typeof posthog.logsAlertsSimulateCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1563
|
+
type LogsAlertsSimulateCreateOutput = Awaited<ReturnType<typeof posthog.logsAlertsSimulateCreate>>;
|
|
1564
|
+
|
|
1565
|
+
const result: LogsAlertsSimulateCreateOutput = await posthog.logsAlertsSimulateCreate();
|
|
1566
|
+
|
|
1567
|
+
// Result shape (from schema): { buckets: ({ timestamp: string; count: number; threshold_breached: boolean; state: string; notification: string; reason: string })[]; fire_count: number; resolve_count: number; total_buckets: number; threshold_count: n...
|
|
1568
|
+
```
|
|
1569
|
+
|
|
1570
|
+
### `posthog.logsAttributesRetrieve`
|
|
1571
|
+
|
|
1572
|
+
- **HTTP**: `GET /api/projects/{project_id}/logs/attributes/`
|
|
1573
|
+
- **OpenAPI operationId**: `logs_attributes_retrieve`
|
|
1574
|
+
- **Path params**: None
|
|
1575
|
+
- **Query params**: `attribute_type`, `dateRange`, `filterGroup`, `limit`, `offset`, `search`, `search_values`, `serviceNames`
|
|
1576
|
+
- **Response codes**: `200`
|
|
1577
|
+
- **Transport options**: None
|
|
1578
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1579
|
+
|
|
1580
|
+
**Inputs**
|
|
1581
|
+
|
|
1582
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1583
|
+
- Client transport options: None
|
|
1584
|
+
|
|
1585
|
+
**Outputs**
|
|
1586
|
+
|
|
1587
|
+
- Client return type: `{ results: ({ name: string; propertyFilterType: string; matchedOn: "key" | "value"; matchedValue?: string | null })[]; count: number }`
|
|
1588
|
+
- OpenAPI response codes: `200`
|
|
1589
|
+
|
|
1590
|
+
```ts
|
|
1591
|
+
import posthog from "@utdk/posthog";
|
|
1592
|
+
|
|
1593
|
+
type LogsAttributesRetrieveInput = Parameters<typeof posthog.logsAttributesRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1594
|
+
type LogsAttributesRetrieveOutput = Awaited<ReturnType<typeof posthog.logsAttributesRetrieve>>;
|
|
1595
|
+
|
|
1596
|
+
const result: LogsAttributesRetrieveOutput = await posthog.logsAttributesRetrieve();
|
|
1597
|
+
|
|
1598
|
+
// Result shape (from schema): { results: ({ name: string; propertyFilterType: string; matchedOn: "key" | "value"; matchedValue?: string | null })[]; count: number }
|
|
1599
|
+
```
|
|
1600
|
+
|
|
1601
|
+
### `posthog.logsCountRangesCreate`
|
|
1602
|
+
|
|
1603
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/count-ranges/`
|
|
1604
|
+
- **OpenAPI operationId**: `logs_count_ranges_create`
|
|
1605
|
+
- **Path params**: None
|
|
1606
|
+
- **Query params**: None
|
|
1607
|
+
- **Response codes**: `200`
|
|
1608
|
+
- **Transport options**: None
|
|
1609
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1610
|
+
|
|
1611
|
+
**Inputs**
|
|
1612
|
+
|
|
1613
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1614
|
+
- Client transport options: None
|
|
1615
|
+
|
|
1616
|
+
**Outputs**
|
|
1617
|
+
|
|
1618
|
+
- Client return type: `{ ranges: ({ date_from: string; date_to: string; count: number })[]; interval: string }`
|
|
1619
|
+
- OpenAPI response codes: `200`
|
|
1620
|
+
|
|
1621
|
+
```ts
|
|
1622
|
+
import posthog from "@utdk/posthog";
|
|
1623
|
+
|
|
1624
|
+
type LogsCountRangesCreateInput = Parameters<typeof posthog.logsCountRangesCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1625
|
+
type LogsCountRangesCreateOutput = Awaited<ReturnType<typeof posthog.logsCountRangesCreate>>;
|
|
1626
|
+
|
|
1627
|
+
const result: LogsCountRangesCreateOutput = await posthog.logsCountRangesCreate();
|
|
1628
|
+
|
|
1629
|
+
// Result shape (from schema): { ranges: ({ date_from: string; date_to: string; count: number })[]; interval: string }
|
|
1630
|
+
```
|
|
1631
|
+
|
|
1632
|
+
### `posthog.logsCountCreate`
|
|
1633
|
+
|
|
1634
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/count/`
|
|
1635
|
+
- **OpenAPI operationId**: `logs_count_create`
|
|
1636
|
+
- **Path params**: None
|
|
1637
|
+
- **Query params**: None
|
|
1638
|
+
- **Response codes**: `200`
|
|
1639
|
+
- **Transport options**: None
|
|
1640
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1641
|
+
|
|
1642
|
+
**Inputs**
|
|
1643
|
+
|
|
1644
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1645
|
+
- Client transport options: None
|
|
1646
|
+
|
|
1647
|
+
**Outputs**
|
|
1648
|
+
|
|
1649
|
+
- Client return type: `{ count: number }`
|
|
1650
|
+
- OpenAPI response codes: `200`
|
|
1651
|
+
|
|
1652
|
+
```ts
|
|
1653
|
+
import posthog from "@utdk/posthog";
|
|
1654
|
+
|
|
1655
|
+
type LogsCountCreateInput = Parameters<typeof posthog.logsCountCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1656
|
+
type LogsCountCreateOutput = Awaited<ReturnType<typeof posthog.logsCountCreate>>;
|
|
1657
|
+
|
|
1658
|
+
const result: LogsCountCreateOutput = await posthog.logsCountCreate();
|
|
1659
|
+
|
|
1660
|
+
// Result shape (from schema): { count: number }
|
|
1661
|
+
```
|
|
1662
|
+
|
|
1663
|
+
### `posthog.logsExplainLogWithAiCreate`
|
|
1664
|
+
|
|
1665
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/explainLogWithAI/`
|
|
1666
|
+
- **What it does**: Explain a log entry using AI.
|
|
1667
|
+
|
|
1668
|
+
POST /api/environments/:id/logs/explainLogWithAI/
|
|
1669
|
+
- **OpenAPI operationId**: `logs_explainLogWithAI_create`
|
|
1670
|
+
- **Path params**: None
|
|
1671
|
+
- **Query params**: None
|
|
1672
|
+
- **Response codes**: `201`
|
|
1673
|
+
- **Transport options**: None
|
|
1674
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1675
|
+
|
|
1676
|
+
**Inputs**
|
|
1677
|
+
|
|
1678
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1679
|
+
- Client transport options: None
|
|
1680
|
+
|
|
1681
|
+
**Outputs**
|
|
1682
|
+
|
|
1683
|
+
- Client return type: `{ uuid: string; timestamp: string; force_refresh?: boolean }`
|
|
1684
|
+
- OpenAPI response codes: `201`
|
|
1685
|
+
|
|
1686
|
+
```ts
|
|
1687
|
+
import posthog from "@utdk/posthog";
|
|
1688
|
+
|
|
1689
|
+
type LogsExplainLogWithAiCreateInput = Parameters<typeof posthog.logsExplainLogWithAiCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1690
|
+
type LogsExplainLogWithAiCreateOutput = Awaited<ReturnType<typeof posthog.logsExplainLogWithAiCreate>>;
|
|
1691
|
+
|
|
1692
|
+
const result: LogsExplainLogWithAiCreateOutput = await posthog.logsExplainLogWithAiCreate();
|
|
1693
|
+
|
|
1694
|
+
// Result shape (from schema): { uuid: string; timestamp: string; force_refresh?: boolean }
|
|
1695
|
+
```
|
|
1696
|
+
|
|
1697
|
+
### `posthog.logsExportCreate`
|
|
1698
|
+
|
|
1699
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/export/`
|
|
1700
|
+
- **OpenAPI operationId**: `logs_export_create`
|
|
1701
|
+
- **Path params**: None
|
|
1702
|
+
- **Query params**: None
|
|
1703
|
+
- **Response codes**: `201`
|
|
1704
|
+
- **Transport options**: None
|
|
1705
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1706
|
+
|
|
1707
|
+
**Inputs**
|
|
1708
|
+
|
|
1709
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1710
|
+
- Client transport options: None
|
|
1711
|
+
|
|
1712
|
+
**Outputs**
|
|
1713
|
+
|
|
1714
|
+
- Client return type: `{ [key: string]: unknown }`
|
|
1715
|
+
- OpenAPI response codes: `201`
|
|
1716
|
+
|
|
1717
|
+
```ts
|
|
1718
|
+
import posthog from "@utdk/posthog";
|
|
1719
|
+
|
|
1720
|
+
type LogsExportCreateInput = Parameters<typeof posthog.logsExportCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1721
|
+
type LogsExportCreateOutput = Awaited<ReturnType<typeof posthog.logsExportCreate>>;
|
|
1722
|
+
|
|
1723
|
+
const result: LogsExportCreateOutput = await posthog.logsExportCreate();
|
|
1724
|
+
|
|
1725
|
+
// Result shape (from schema): { [key: string]: unknown }
|
|
1726
|
+
```
|
|
1727
|
+
|
|
1728
|
+
### `posthog.logsFacetValuesCreate`
|
|
1729
|
+
|
|
1730
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/facet_values/`
|
|
1731
|
+
- **OpenAPI operationId**: `logs_facet_values_create`
|
|
1732
|
+
- **Path params**: None
|
|
1733
|
+
- **Query params**: None
|
|
1734
|
+
- **Response codes**: `200`
|
|
1735
|
+
- **Transport options**: None
|
|
1736
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1737
|
+
|
|
1738
|
+
**Inputs**
|
|
1739
|
+
|
|
1740
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1741
|
+
- Client transport options: None
|
|
1742
|
+
|
|
1743
|
+
**Outputs**
|
|
1744
|
+
|
|
1745
|
+
- Client return type: `{ results: ({ value: string; count: number })[] }`
|
|
1746
|
+
- OpenAPI response codes: `200`
|
|
1747
|
+
|
|
1748
|
+
```ts
|
|
1749
|
+
import posthog from "@utdk/posthog";
|
|
1750
|
+
|
|
1751
|
+
type LogsFacetValuesCreateInput = Parameters<typeof posthog.logsFacetValuesCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1752
|
+
type LogsFacetValuesCreateOutput = Awaited<ReturnType<typeof posthog.logsFacetValuesCreate>>;
|
|
1753
|
+
|
|
1754
|
+
const result: LogsFacetValuesCreateOutput = await posthog.logsFacetValuesCreate();
|
|
1755
|
+
|
|
1756
|
+
// Result shape (from schema): { results: ({ value: string; count: number })[] }
|
|
1757
|
+
```
|
|
1758
|
+
|
|
1759
|
+
### `posthog.logsGroupByCreate`
|
|
1760
|
+
|
|
1761
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/group-by/`
|
|
1762
|
+
- **OpenAPI operationId**: `logs_group_by_create`
|
|
1763
|
+
- **Path params**: None
|
|
1764
|
+
- **Query params**: None
|
|
1765
|
+
- **Response codes**: `200`
|
|
1766
|
+
- **Transport options**: None
|
|
1767
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1768
|
+
|
|
1769
|
+
**Inputs**
|
|
1770
|
+
|
|
1771
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1772
|
+
- Client transport options: None
|
|
1773
|
+
|
|
1774
|
+
**Outputs**
|
|
1775
|
+
|
|
1776
|
+
- Client return type: `{ groups: ({ value: string; log_count: number; error_count: number; last_seen: string })[]; total_groups: number; total_logs: number; truncated: boolean }`
|
|
1777
|
+
- OpenAPI response codes: `200`
|
|
1778
|
+
|
|
1779
|
+
```ts
|
|
1780
|
+
import posthog from "@utdk/posthog";
|
|
1781
|
+
|
|
1782
|
+
type LogsGroupByCreateInput = Parameters<typeof posthog.logsGroupByCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1783
|
+
type LogsGroupByCreateOutput = Awaited<ReturnType<typeof posthog.logsGroupByCreate>>;
|
|
1784
|
+
|
|
1785
|
+
const result: LogsGroupByCreateOutput = await posthog.logsGroupByCreate();
|
|
1786
|
+
|
|
1787
|
+
// Result shape (from schema): { groups: ({ value: string; log_count: number; error_count: number; last_seen: string })[]; total_groups: number; total_logs: number; truncated: boolean }
|
|
1788
|
+
```
|
|
1789
|
+
|
|
1790
|
+
### `posthog.logsHasLogsRetrieve`
|
|
1791
|
+
|
|
1792
|
+
- **HTTP**: `GET /api/projects/{project_id}/logs/has_logs/`
|
|
1793
|
+
- **OpenAPI operationId**: `logs_has_logs_retrieve`
|
|
1794
|
+
- **Path params**: None
|
|
1795
|
+
- **Query params**: None
|
|
1796
|
+
- **Response codes**: `200`
|
|
1797
|
+
- **Transport options**: None
|
|
1798
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1799
|
+
|
|
1800
|
+
**Inputs**
|
|
1801
|
+
|
|
1802
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1803
|
+
- Client transport options: None
|
|
1804
|
+
|
|
1805
|
+
**Outputs**
|
|
1806
|
+
|
|
1807
|
+
- Client return type: `{ [key: string]: unknown }`
|
|
1808
|
+
- OpenAPI response codes: `200`
|
|
1809
|
+
|
|
1810
|
+
```ts
|
|
1811
|
+
import posthog from "@utdk/posthog";
|
|
1812
|
+
|
|
1813
|
+
type LogsHasLogsRetrieveInput = Parameters<typeof posthog.logsHasLogsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1814
|
+
type LogsHasLogsRetrieveOutput = Awaited<ReturnType<typeof posthog.logsHasLogsRetrieve>>;
|
|
1815
|
+
|
|
1816
|
+
const result: LogsHasLogsRetrieveOutput = await posthog.logsHasLogsRetrieve();
|
|
1817
|
+
|
|
1818
|
+
// Result shape (from schema): { [key: string]: unknown }
|
|
1819
|
+
```
|
|
1820
|
+
|
|
1821
|
+
### `posthog.logsPatternsDiffCreate`
|
|
1822
|
+
|
|
1823
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/patterns_diff/`
|
|
1824
|
+
- **OpenAPI operationId**: `logs_patterns_diff_create`
|
|
1825
|
+
- **Path params**: None
|
|
1826
|
+
- **Query params**: None
|
|
1827
|
+
- **Response codes**: `200`
|
|
1828
|
+
- **Transport options**: None
|
|
1829
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1830
|
+
|
|
1831
|
+
**Inputs**
|
|
1832
|
+
|
|
1833
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1834
|
+
- Client transport options: None
|
|
1835
|
+
|
|
1836
|
+
**Outputs**
|
|
1837
|
+
|
|
1838
|
+
- Client return type: `{ entries: ({ classification: "new" | "rate_shift" | "gone" | "unchanged"; rate_ratio: number | null; pattern: { pattern: string; count: number; estimated_count: number; volume_share_pct: number; error_count: number; es...`
|
|
1839
|
+
- OpenAPI response codes: `200`
|
|
1840
|
+
|
|
1841
|
+
```ts
|
|
1842
|
+
import posthog from "@utdk/posthog";
|
|
1843
|
+
|
|
1844
|
+
type LogsPatternsDiffCreateInput = Parameters<typeof posthog.logsPatternsDiffCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1845
|
+
type LogsPatternsDiffCreateOutput = Awaited<ReturnType<typeof posthog.logsPatternsDiffCreate>>;
|
|
1846
|
+
|
|
1847
|
+
const result: LogsPatternsDiffCreateOutput = await posthog.logsPatternsDiffCreate();
|
|
1848
|
+
|
|
1849
|
+
// Result shape (from schema): { entries: ({ classification: "new" | "rate_shift" | "gone" | "unchanged"; rate_ratio: number | null; pattern: { pattern: string; count: number; estimated_count: number; volume_share_pct: number; error_count: number; es...
|
|
1850
|
+
```
|
|
1851
|
+
|
|
1852
|
+
### `posthog.logsPatternsCreate`
|
|
1853
|
+
|
|
1854
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/patterns/`
|
|
1855
|
+
- **OpenAPI operationId**: `logs_patterns_create`
|
|
1856
|
+
- **Path params**: None
|
|
1857
|
+
- **Query params**: None
|
|
1858
|
+
- **Response codes**: `200`
|
|
1859
|
+
- **Transport options**: None
|
|
1860
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1861
|
+
|
|
1862
|
+
**Inputs**
|
|
1863
|
+
|
|
1864
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1865
|
+
- Client transport options: None
|
|
1866
|
+
|
|
1867
|
+
**Outputs**
|
|
1868
|
+
|
|
1869
|
+
- Client return type: `{ patterns: ({ pattern: string; count: number; estimated_count: number; volume_share_pct: number; error_count: number; estimated_error_count: number; first_seen: string; last_seen: string; examples: ({ body: string; sev...`
|
|
1870
|
+
- OpenAPI response codes: `200`
|
|
1871
|
+
|
|
1872
|
+
```ts
|
|
1873
|
+
import posthog from "@utdk/posthog";
|
|
1874
|
+
|
|
1875
|
+
type LogsPatternsCreateInput = Parameters<typeof posthog.logsPatternsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1876
|
+
type LogsPatternsCreateOutput = Awaited<ReturnType<typeof posthog.logsPatternsCreate>>;
|
|
1877
|
+
|
|
1878
|
+
const result: LogsPatternsCreateOutput = await posthog.logsPatternsCreate();
|
|
1879
|
+
|
|
1880
|
+
// Result shape (from schema): { patterns: ({ pattern: string; count: number; estimated_count: number; volume_share_pct: number; error_count: number; estimated_error_count: number; first_seen: string; last_seen: string; examples: ({ body: string; sev...
|
|
1881
|
+
```
|
|
1882
|
+
|
|
1883
|
+
### `posthog.logsQueryCreate`
|
|
1884
|
+
|
|
1885
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/query/`
|
|
1886
|
+
- **OpenAPI operationId**: `logs_query_create`
|
|
1887
|
+
- **Path params**: None
|
|
1888
|
+
- **Query params**: None
|
|
1889
|
+
- **Response codes**: `200`
|
|
1890
|
+
- **Transport options**: None
|
|
1891
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1892
|
+
|
|
1893
|
+
**Inputs**
|
|
1894
|
+
|
|
1895
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1896
|
+
- Client transport options: None
|
|
1897
|
+
|
|
1898
|
+
**Outputs**
|
|
1899
|
+
|
|
1900
|
+
- Client return type: `{ query: { [key: string]: unknown }; results: ({ uuid: string; timestamp: string; observed_timestamp: string; body: string; severity_text: string; severity_number: number; level: string; trace_id: string; span_id: strin...`
|
|
1901
|
+
- OpenAPI response codes: `200`
|
|
1902
|
+
|
|
1903
|
+
```ts
|
|
1904
|
+
import posthog from "@utdk/posthog";
|
|
1905
|
+
|
|
1906
|
+
type LogsQueryCreateInput = Parameters<typeof posthog.logsQueryCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1907
|
+
type LogsQueryCreateOutput = Awaited<ReturnType<typeof posthog.logsQueryCreate>>;
|
|
1908
|
+
|
|
1909
|
+
const result: LogsQueryCreateOutput = await posthog.logsQueryCreate();
|
|
1910
|
+
|
|
1911
|
+
// Result shape (from schema): { query: { [key: string]: unknown }; results: ({ uuid: string; timestamp: string; observed_timestamp: string; body: string; severity_text: string; severity_number: number; level: string; trace_id: string; span_id: strin...
|
|
1912
|
+
```
|
|
1913
|
+
|
|
1914
|
+
### `posthog.logsSamplingRulesList`
|
|
1915
|
+
|
|
1916
|
+
- **HTTP**: `GET /api/projects/{project_id}/logs/sampling_rules/`
|
|
1917
|
+
- **OpenAPI operationId**: `logs_sampling_rules_list`
|
|
1918
|
+
- **Path params**: None
|
|
1919
|
+
- **Query params**: `limit`, `offset`
|
|
1920
|
+
- **Response codes**: `200`
|
|
1921
|
+
- **Transport options**: None
|
|
1922
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1923
|
+
|
|
1924
|
+
**Inputs**
|
|
1925
|
+
|
|
1926
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1927
|
+
- Client transport options: None
|
|
1928
|
+
|
|
1929
|
+
**Outputs**
|
|
1930
|
+
|
|
1931
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_serv...`
|
|
1932
|
+
- OpenAPI response codes: `200`
|
|
1933
|
+
|
|
1934
|
+
```ts
|
|
1935
|
+
import posthog from "@utdk/posthog";
|
|
1936
|
+
|
|
1937
|
+
type LogsSamplingRulesListInput = Parameters<typeof posthog.logsSamplingRulesList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1938
|
+
type LogsSamplingRulesListOutput = Awaited<ReturnType<typeof posthog.logsSamplingRulesList>>;
|
|
1939
|
+
|
|
1940
|
+
const result: LogsSamplingRulesListOutput = await posthog.logsSamplingRulesList();
|
|
1941
|
+
|
|
1942
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_serv...
|
|
1943
|
+
```
|
|
1944
|
+
|
|
1945
|
+
### `posthog.logsSamplingRulesCreate`
|
|
1946
|
+
|
|
1947
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/sampling_rules/`
|
|
1948
|
+
- **OpenAPI operationId**: `logs_sampling_rules_create`
|
|
1949
|
+
- **Path params**: None
|
|
1950
|
+
- **Query params**: None
|
|
1951
|
+
- **Response codes**: `201`
|
|
1952
|
+
- **Transport options**: None
|
|
1953
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1954
|
+
|
|
1955
|
+
**Inputs**
|
|
1956
|
+
|
|
1957
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1958
|
+
- Client transport options: None
|
|
1959
|
+
|
|
1960
|
+
**Outputs**
|
|
1961
|
+
|
|
1962
|
+
- Client return type: `{ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_fi...`
|
|
1963
|
+
- OpenAPI response codes: `201`
|
|
1964
|
+
|
|
1965
|
+
```ts
|
|
1966
|
+
import posthog from "@utdk/posthog";
|
|
1967
|
+
|
|
1968
|
+
type LogsSamplingRulesCreateInput = Parameters<typeof posthog.logsSamplingRulesCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
1969
|
+
type LogsSamplingRulesCreateOutput = Awaited<ReturnType<typeof posthog.logsSamplingRulesCreate>>;
|
|
1970
|
+
|
|
1971
|
+
const result: LogsSamplingRulesCreateOutput = await posthog.logsSamplingRulesCreate();
|
|
1972
|
+
|
|
1973
|
+
// Result shape (from schema): { id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_fi...
|
|
1974
|
+
```
|
|
1975
|
+
|
|
1976
|
+
### `posthog.logsSamplingRulesDestroy`
|
|
1977
|
+
|
|
1978
|
+
- **HTTP**: `DELETE /api/projects/{project_id}/logs/sampling_rules/{id}/`
|
|
1979
|
+
- **OpenAPI operationId**: `logs_sampling_rules_destroy`
|
|
1980
|
+
- **Path params**: `id`
|
|
1981
|
+
- **Query params**: None
|
|
1982
|
+
- **Response codes**: `204`
|
|
1983
|
+
- **Transport options**: None
|
|
1984
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
1985
|
+
|
|
1986
|
+
**Inputs**
|
|
1987
|
+
|
|
1988
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
1989
|
+
- Client transport options: None
|
|
1990
|
+
|
|
1991
|
+
**Outputs**
|
|
1992
|
+
|
|
1993
|
+
- Client return type: `unknown`
|
|
1994
|
+
- OpenAPI response codes: `204`
|
|
1995
|
+
|
|
1996
|
+
```ts
|
|
1997
|
+
import posthog from "@utdk/posthog";
|
|
1998
|
+
|
|
1999
|
+
type LogsSamplingRulesDestroyInput = Parameters<typeof posthog.logsSamplingRulesDestroy> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2000
|
+
type LogsSamplingRulesDestroyOutput = Awaited<ReturnType<typeof posthog.logsSamplingRulesDestroy>>;
|
|
2001
|
+
|
|
2002
|
+
const result: LogsSamplingRulesDestroyOutput = await posthog.logsSamplingRulesDestroy();
|
|
2003
|
+
|
|
2004
|
+
// Result shape (from schema): unknown
|
|
2005
|
+
```
|
|
2006
|
+
|
|
2007
|
+
### `posthog.logsSamplingRulesRetrieve`
|
|
2008
|
+
|
|
2009
|
+
- **HTTP**: `GET /api/projects/{project_id}/logs/sampling_rules/{id}/`
|
|
2010
|
+
- **OpenAPI operationId**: `logs_sampling_rules_retrieve`
|
|
2011
|
+
- **Path params**: `id`
|
|
2012
|
+
- **Query params**: None
|
|
2013
|
+
- **Response codes**: `200`
|
|
2014
|
+
- **Transport options**: None
|
|
2015
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2016
|
+
|
|
2017
|
+
**Inputs**
|
|
2018
|
+
|
|
2019
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2020
|
+
- Client transport options: None
|
|
2021
|
+
|
|
2022
|
+
**Outputs**
|
|
2023
|
+
|
|
2024
|
+
- Client return type: `{ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_fi...`
|
|
2025
|
+
- OpenAPI response codes: `200`
|
|
2026
|
+
|
|
2027
|
+
```ts
|
|
2028
|
+
import posthog from "@utdk/posthog";
|
|
2029
|
+
|
|
2030
|
+
type LogsSamplingRulesRetrieveInput = Parameters<typeof posthog.logsSamplingRulesRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2031
|
+
type LogsSamplingRulesRetrieveOutput = Awaited<ReturnType<typeof posthog.logsSamplingRulesRetrieve>>;
|
|
2032
|
+
|
|
2033
|
+
const result: LogsSamplingRulesRetrieveOutput = await posthog.logsSamplingRulesRetrieve();
|
|
2034
|
+
|
|
2035
|
+
// Result shape (from schema): { id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_fi...
|
|
2036
|
+
```
|
|
2037
|
+
|
|
2038
|
+
### `posthog.logsSamplingRulesPartialUpdate`
|
|
2039
|
+
|
|
2040
|
+
- **HTTP**: `PATCH /api/projects/{project_id}/logs/sampling_rules/{id}/`
|
|
2041
|
+
- **OpenAPI operationId**: `logs_sampling_rules_partial_update`
|
|
2042
|
+
- **Path params**: `id`
|
|
2043
|
+
- **Query params**: None
|
|
2044
|
+
- **Response codes**: `200`
|
|
2045
|
+
- **Transport options**: None
|
|
2046
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2047
|
+
|
|
2048
|
+
**Inputs**
|
|
2049
|
+
|
|
2050
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2051
|
+
- Client transport options: None
|
|
2052
|
+
|
|
2053
|
+
**Outputs**
|
|
2054
|
+
|
|
2055
|
+
- Client return type: `{ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_fi...`
|
|
2056
|
+
- OpenAPI response codes: `200`
|
|
2057
|
+
|
|
2058
|
+
```ts
|
|
2059
|
+
import posthog from "@utdk/posthog";
|
|
2060
|
+
|
|
2061
|
+
type LogsSamplingRulesPartialUpdateInput = Parameters<typeof posthog.logsSamplingRulesPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2062
|
+
type LogsSamplingRulesPartialUpdateOutput = Awaited<ReturnType<typeof posthog.logsSamplingRulesPartialUpdate>>;
|
|
2063
|
+
|
|
2064
|
+
const result: LogsSamplingRulesPartialUpdateOutput = await posthog.logsSamplingRulesPartialUpdate();
|
|
2065
|
+
|
|
2066
|
+
// Result shape (from schema): { id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_fi...
|
|
2067
|
+
```
|
|
2068
|
+
|
|
2069
|
+
### `posthog.logsSamplingRulesUpdate`
|
|
2070
|
+
|
|
2071
|
+
- **HTTP**: `PUT /api/projects/{project_id}/logs/sampling_rules/{id}/`
|
|
2072
|
+
- **OpenAPI operationId**: `logs_sampling_rules_update`
|
|
2073
|
+
- **Path params**: `id`
|
|
2074
|
+
- **Query params**: None
|
|
2075
|
+
- **Response codes**: `200`
|
|
2076
|
+
- **Transport options**: None
|
|
2077
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2078
|
+
|
|
2079
|
+
**Inputs**
|
|
2080
|
+
|
|
2081
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2082
|
+
- Client transport options: None
|
|
2083
|
+
|
|
2084
|
+
**Outputs**
|
|
2085
|
+
|
|
2086
|
+
- Client return type: `{ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_fi...`
|
|
2087
|
+
- OpenAPI response codes: `200`
|
|
2088
|
+
|
|
2089
|
+
```ts
|
|
2090
|
+
import posthog from "@utdk/posthog";
|
|
2091
|
+
|
|
2092
|
+
type LogsSamplingRulesUpdateInput = Parameters<typeof posthog.logsSamplingRulesUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2093
|
+
type LogsSamplingRulesUpdateOutput = Awaited<ReturnType<typeof posthog.logsSamplingRulesUpdate>>;
|
|
2094
|
+
|
|
2095
|
+
const result: LogsSamplingRulesUpdateOutput = await posthog.logsSamplingRulesUpdate();
|
|
2096
|
+
|
|
2097
|
+
// Result shape (from schema): { id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_fi...
|
|
2098
|
+
```
|
|
2099
|
+
|
|
2100
|
+
### `posthog.logsSamplingRulesSimulateCreate`
|
|
2101
|
+
|
|
2102
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/sampling_rules/{id}/simulate/`
|
|
2103
|
+
- **What it does**: Dry-run estimate for how much volume this rule would remove (placeholder response until CH-backed simulation is wired).
|
|
2104
|
+
- **OpenAPI operationId**: `logs_sampling_rules_simulate_create`
|
|
2105
|
+
- **Path params**: `id`
|
|
2106
|
+
- **Query params**: None
|
|
2107
|
+
- **Response codes**: `200`
|
|
2108
|
+
- **Transport options**: None
|
|
2109
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2110
|
+
|
|
2111
|
+
**Inputs**
|
|
2112
|
+
|
|
2113
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2114
|
+
- Client transport options: None
|
|
2115
|
+
|
|
2116
|
+
**Outputs**
|
|
2117
|
+
|
|
2118
|
+
- Client return type: `{ estimated_reduction_pct: number; notes: string }`
|
|
2119
|
+
- OpenAPI response codes: `200`
|
|
2120
|
+
|
|
2121
|
+
```ts
|
|
2122
|
+
import posthog from "@utdk/posthog";
|
|
2123
|
+
|
|
2124
|
+
type LogsSamplingRulesSimulateCreateInput = Parameters<typeof posthog.logsSamplingRulesSimulateCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2125
|
+
type LogsSamplingRulesSimulateCreateOutput = Awaited<ReturnType<typeof posthog.logsSamplingRulesSimulateCreate>>;
|
|
2126
|
+
|
|
2127
|
+
const result: LogsSamplingRulesSimulateCreateOutput = await posthog.logsSamplingRulesSimulateCreate();
|
|
2128
|
+
|
|
2129
|
+
// Result shape (from schema): { estimated_reduction_pct: number; notes: string }
|
|
2130
|
+
```
|
|
2131
|
+
|
|
2132
|
+
### `posthog.logsSamplingRulesReorderCreate`
|
|
2133
|
+
|
|
2134
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/sampling_rules/reorder/`
|
|
2135
|
+
- **What it does**: Atomically reassign priorities so the given ID order maps to ascending priorities (0..n-1).
|
|
2136
|
+
- **OpenAPI operationId**: `logs_sampling_rules_reorder_create`
|
|
2137
|
+
- **Path params**: None
|
|
2138
|
+
- **Query params**: `limit`, `offset`
|
|
2139
|
+
- **Response codes**: `200`
|
|
2140
|
+
- **Transport options**: None
|
|
2141
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2142
|
+
|
|
2143
|
+
**Inputs**
|
|
2144
|
+
|
|
2145
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2146
|
+
- Client transport options: None
|
|
2147
|
+
|
|
2148
|
+
**Outputs**
|
|
2149
|
+
|
|
2150
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_serv...`
|
|
2151
|
+
- OpenAPI response codes: `200`
|
|
2152
|
+
|
|
2153
|
+
```ts
|
|
2154
|
+
import posthog from "@utdk/posthog";
|
|
2155
|
+
|
|
2156
|
+
type LogsSamplingRulesReorderCreateInput = Parameters<typeof posthog.logsSamplingRulesReorderCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2157
|
+
type LogsSamplingRulesReorderCreateOutput = Awaited<ReturnType<typeof posthog.logsSamplingRulesReorderCreate>>;
|
|
2158
|
+
|
|
2159
|
+
const result: LogsSamplingRulesReorderCreateOutput = await posthog.logsSamplingRulesReorderCreate();
|
|
2160
|
+
|
|
2161
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_serv...
|
|
2162
|
+
```
|
|
2163
|
+
|
|
2164
|
+
### `posthog.logsServicesCreate`
|
|
2165
|
+
|
|
2166
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/services/`
|
|
2167
|
+
- **OpenAPI operationId**: `logs_services_create`
|
|
2168
|
+
- **Path params**: None
|
|
2169
|
+
- **Query params**: None
|
|
2170
|
+
- **Response codes**: `200`
|
|
2171
|
+
- **Transport options**: None
|
|
2172
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2173
|
+
|
|
2174
|
+
**Inputs**
|
|
2175
|
+
|
|
2176
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2177
|
+
- Client transport options: None
|
|
2178
|
+
|
|
2179
|
+
**Outputs**
|
|
2180
|
+
|
|
2181
|
+
- Client return type: `{ services: ({ service_name: string; log_count: number; error_count: number; error_rate: number; volume_share_pct?: number; severity_breakdown?: { debug: number; info: number; warn: number; error: number }; active_rules...`
|
|
2182
|
+
- OpenAPI response codes: `200`
|
|
2183
|
+
|
|
2184
|
+
```ts
|
|
2185
|
+
import posthog from "@utdk/posthog";
|
|
2186
|
+
|
|
2187
|
+
type LogsServicesCreateInput = Parameters<typeof posthog.logsServicesCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2188
|
+
type LogsServicesCreateOutput = Awaited<ReturnType<typeof posthog.logsServicesCreate>>;
|
|
2189
|
+
|
|
2190
|
+
const result: LogsServicesCreateOutput = await posthog.logsServicesCreate();
|
|
2191
|
+
|
|
2192
|
+
// Result shape (from schema): { services: ({ service_name: string; log_count: number; error_count: number; error_rate: number; volume_share_pct?: number; severity_breakdown?: { debug: number; info: number; warn: number; error: number }; active_rules...
|
|
2193
|
+
```
|
|
2194
|
+
|
|
2195
|
+
### `posthog.logsSparklineCreate`
|
|
2196
|
+
|
|
2197
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/sparkline/`
|
|
2198
|
+
- **OpenAPI operationId**: `logs_sparkline_create`
|
|
2199
|
+
- **Path params**: None
|
|
2200
|
+
- **Query params**: None
|
|
2201
|
+
- **Response codes**: `200`
|
|
2202
|
+
- **Transport options**: None
|
|
2203
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2204
|
+
|
|
2205
|
+
**Inputs**
|
|
2206
|
+
|
|
2207
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2208
|
+
- Client transport options: None
|
|
2209
|
+
|
|
2210
|
+
**Outputs**
|
|
2211
|
+
|
|
2212
|
+
- Client return type: `{ results: ({ time: string; severity?: string; service?: string; count: number; bytes_uncompressed?: number })[] }`
|
|
2213
|
+
- OpenAPI response codes: `200`
|
|
2214
|
+
|
|
2215
|
+
```ts
|
|
2216
|
+
import posthog from "@utdk/posthog";
|
|
2217
|
+
|
|
2218
|
+
type LogsSparklineCreateInput = Parameters<typeof posthog.logsSparklineCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2219
|
+
type LogsSparklineCreateOutput = Awaited<ReturnType<typeof posthog.logsSparklineCreate>>;
|
|
2220
|
+
|
|
2221
|
+
const result: LogsSparklineCreateOutput = await posthog.logsSparklineCreate();
|
|
2222
|
+
|
|
2223
|
+
// Result shape (from schema): { results: ({ time: string; severity?: string; service?: string; count: number; bytes_uncompressed?: number })[] }
|
|
2224
|
+
```
|
|
2225
|
+
|
|
2226
|
+
### `posthog.logsValuesRetrieve`
|
|
2227
|
+
|
|
2228
|
+
- **HTTP**: `GET /api/projects/{project_id}/logs/values/`
|
|
2229
|
+
- **OpenAPI operationId**: `logs_values_retrieve`
|
|
2230
|
+
- **Path params**: None
|
|
2231
|
+
- **Query params**: `attribute_type`, `dateRange`, `filterGroup`, `key`, `serviceNames`, `value`
|
|
2232
|
+
- **Response codes**: `200`
|
|
2233
|
+
- **Transport options**: None
|
|
2234
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2235
|
+
|
|
2236
|
+
**Inputs**
|
|
2237
|
+
|
|
2238
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2239
|
+
- Client transport options: None
|
|
2240
|
+
|
|
2241
|
+
**Outputs**
|
|
2242
|
+
|
|
2243
|
+
- Client return type: `{ results: ({ id: string; name: string; count?: number })[]; refreshing: boolean }`
|
|
2244
|
+
- OpenAPI response codes: `200`
|
|
2245
|
+
|
|
2246
|
+
```ts
|
|
2247
|
+
import posthog from "@utdk/posthog";
|
|
2248
|
+
|
|
2249
|
+
type LogsValuesRetrieveInput = Parameters<typeof posthog.logsValuesRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2250
|
+
type LogsValuesRetrieveOutput = Awaited<ReturnType<typeof posthog.logsValuesRetrieve>>;
|
|
2251
|
+
|
|
2252
|
+
const result: LogsValuesRetrieveOutput = await posthog.logsValuesRetrieve();
|
|
2253
|
+
|
|
2254
|
+
// Result shape (from schema): { results: ({ id: string; name: string; count?: number })[]; refreshing: boolean }
|
|
2255
|
+
```
|
|
2256
|
+
|
|
2257
|
+
### `posthog.logsViewsList`
|
|
2258
|
+
|
|
2259
|
+
- **HTTP**: `GET /api/projects/{project_id}/logs/views/`
|
|
2260
|
+
- **OpenAPI operationId**: `logs_views_list`
|
|
2261
|
+
- **Path params**: None
|
|
2262
|
+
- **Query params**: `limit`, `offset`
|
|
2263
|
+
- **Response codes**: `200`
|
|
2264
|
+
- **Transport options**: None
|
|
2265
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2266
|
+
|
|
2267
|
+
**Inputs**
|
|
2268
|
+
|
|
2269
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2270
|
+
- Client transport options: None
|
|
2271
|
+
|
|
2272
|
+
**Outputs**
|
|
2273
|
+
|
|
2274
|
+
- Client return type: `{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: numb...`
|
|
2275
|
+
- OpenAPI response codes: `200`
|
|
2276
|
+
|
|
2277
|
+
```ts
|
|
2278
|
+
import posthog from "@utdk/posthog";
|
|
2279
|
+
|
|
2280
|
+
type LogsViewsListInput = Parameters<typeof posthog.logsViewsList> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2281
|
+
type LogsViewsListOutput = Awaited<ReturnType<typeof posthog.logsViewsList>>;
|
|
2282
|
+
|
|
2283
|
+
const result: LogsViewsListOutput = await posthog.logsViewsList();
|
|
2284
|
+
|
|
2285
|
+
// Result shape (from schema): { count: number; next?: string | null; previous?: string | null; results: ({ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: numb...
|
|
2286
|
+
```
|
|
2287
|
+
|
|
2288
|
+
### `posthog.logsViewsCreate`
|
|
2289
|
+
|
|
2290
|
+
- **HTTP**: `POST /api/projects/{project_id}/logs/views/`
|
|
2291
|
+
- **OpenAPI operationId**: `logs_views_create`
|
|
2292
|
+
- **Path params**: None
|
|
2293
|
+
- **Query params**: None
|
|
2294
|
+
- **Response codes**: `201`
|
|
2295
|
+
- **Transport options**: None
|
|
2296
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2297
|
+
|
|
2298
|
+
**Inputs**
|
|
2299
|
+
|
|
2300
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2301
|
+
- Client transport options: None
|
|
2302
|
+
|
|
2303
|
+
**Outputs**
|
|
2304
|
+
|
|
2305
|
+
- Client return type: `{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
|
|
2306
|
+
- OpenAPI response codes: `201`
|
|
2307
|
+
|
|
2308
|
+
```ts
|
|
2309
|
+
import posthog from "@utdk/posthog";
|
|
2310
|
+
|
|
2311
|
+
type LogsViewsCreateInput = Parameters<typeof posthog.logsViewsCreate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2312
|
+
type LogsViewsCreateOutput = Awaited<ReturnType<typeof posthog.logsViewsCreate>>;
|
|
2313
|
+
|
|
2314
|
+
const result: LogsViewsCreateOutput = await posthog.logsViewsCreate();
|
|
2315
|
+
|
|
2316
|
+
// Result shape (from schema): { id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
|
|
2317
|
+
```
|
|
2318
|
+
|
|
2319
|
+
### `posthog.logsViewsDestroy`
|
|
2320
|
+
|
|
2321
|
+
- **HTTP**: `DELETE /api/projects/{project_id}/logs/views/{short_id}/`
|
|
2322
|
+
- **OpenAPI operationId**: `logs_views_destroy`
|
|
2323
|
+
- **Path params**: `short_id`
|
|
2324
|
+
- **Query params**: None
|
|
2325
|
+
- **Response codes**: `204`
|
|
2326
|
+
- **Transport options**: None
|
|
2327
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2328
|
+
|
|
2329
|
+
**Inputs**
|
|
2330
|
+
|
|
2331
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2332
|
+
- Client transport options: None
|
|
2333
|
+
|
|
2334
|
+
**Outputs**
|
|
2335
|
+
|
|
2336
|
+
- Client return type: `unknown`
|
|
2337
|
+
- OpenAPI response codes: `204`
|
|
2338
|
+
|
|
2339
|
+
```ts
|
|
2340
|
+
import posthog from "@utdk/posthog";
|
|
2341
|
+
|
|
2342
|
+
type LogsViewsDestroyInput = Parameters<typeof posthog.logsViewsDestroy> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2343
|
+
type LogsViewsDestroyOutput = Awaited<ReturnType<typeof posthog.logsViewsDestroy>>;
|
|
2344
|
+
|
|
2345
|
+
const result: LogsViewsDestroyOutput = await posthog.logsViewsDestroy();
|
|
2346
|
+
|
|
2347
|
+
// Result shape (from schema): unknown
|
|
2348
|
+
```
|
|
2349
|
+
|
|
2350
|
+
### `posthog.logsViewsRetrieve`
|
|
2351
|
+
|
|
2352
|
+
- **HTTP**: `GET /api/projects/{project_id}/logs/views/{short_id}/`
|
|
2353
|
+
- **OpenAPI operationId**: `logs_views_retrieve`
|
|
2354
|
+
- **Path params**: `short_id`
|
|
2355
|
+
- **Query params**: None
|
|
2356
|
+
- **Response codes**: `200`
|
|
2357
|
+
- **Transport options**: None
|
|
2358
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2359
|
+
|
|
2360
|
+
**Inputs**
|
|
2361
|
+
|
|
2362
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2363
|
+
- Client transport options: None
|
|
2364
|
+
|
|
2365
|
+
**Outputs**
|
|
2366
|
+
|
|
2367
|
+
- Client return type: `{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
|
|
2368
|
+
- OpenAPI response codes: `200`
|
|
2369
|
+
|
|
2370
|
+
```ts
|
|
2371
|
+
import posthog from "@utdk/posthog";
|
|
2372
|
+
|
|
2373
|
+
type LogsViewsRetrieveInput = Parameters<typeof posthog.logsViewsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2374
|
+
type LogsViewsRetrieveOutput = Awaited<ReturnType<typeof posthog.logsViewsRetrieve>>;
|
|
2375
|
+
|
|
2376
|
+
const result: LogsViewsRetrieveOutput = await posthog.logsViewsRetrieve();
|
|
2377
|
+
|
|
2378
|
+
// Result shape (from schema): { id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
|
|
2379
|
+
```
|
|
2380
|
+
|
|
2381
|
+
### `posthog.logsViewsPartialUpdate`
|
|
2382
|
+
|
|
2383
|
+
- **HTTP**: `PATCH /api/projects/{project_id}/logs/views/{short_id}/`
|
|
2384
|
+
- **OpenAPI operationId**: `logs_views_partial_update`
|
|
2385
|
+
- **Path params**: `short_id`
|
|
2386
|
+
- **Query params**: None
|
|
2387
|
+
- **Response codes**: `200`
|
|
2388
|
+
- **Transport options**: None
|
|
2389
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2390
|
+
|
|
2391
|
+
**Inputs**
|
|
2392
|
+
|
|
2393
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2394
|
+
- Client transport options: None
|
|
2395
|
+
|
|
2396
|
+
**Outputs**
|
|
2397
|
+
|
|
2398
|
+
- Client return type: `{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
|
|
2399
|
+
- OpenAPI response codes: `200`
|
|
2400
|
+
|
|
2401
|
+
```ts
|
|
2402
|
+
import posthog from "@utdk/posthog";
|
|
2403
|
+
|
|
2404
|
+
type LogsViewsPartialUpdateInput = Parameters<typeof posthog.logsViewsPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2405
|
+
type LogsViewsPartialUpdateOutput = Awaited<ReturnType<typeof posthog.logsViewsPartialUpdate>>;
|
|
2406
|
+
|
|
2407
|
+
const result: LogsViewsPartialUpdateOutput = await posthog.logsViewsPartialUpdate();
|
|
2408
|
+
|
|
2409
|
+
// Result shape (from schema): { id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
|
|
2410
|
+
```
|
|
2411
|
+
|
|
2412
|
+
### `posthog.logsViewsUpdate`
|
|
2413
|
+
|
|
2414
|
+
- **HTTP**: `PUT /api/projects/{project_id}/logs/views/{short_id}/`
|
|
2415
|
+
- **OpenAPI operationId**: `logs_views_update`
|
|
2416
|
+
- **Path params**: `short_id`
|
|
2417
|
+
- **Query params**: None
|
|
2418
|
+
- **Response codes**: `200`
|
|
2419
|
+
- **Transport options**: None
|
|
2420
|
+
- **TypeScript**: [Client interface](../types.ts)
|
|
2421
|
+
|
|
2422
|
+
**Inputs**
|
|
2423
|
+
|
|
2424
|
+
- Client input type: `{ [key: string]: unknown }`
|
|
2425
|
+
- Client transport options: None
|
|
2426
|
+
|
|
2427
|
+
**Outputs**
|
|
2428
|
+
|
|
2429
|
+
- Client return type: `{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...`
|
|
2430
|
+
- OpenAPI response codes: `200`
|
|
2431
|
+
|
|
2432
|
+
```ts
|
|
2433
|
+
import posthog from "@utdk/posthog";
|
|
2434
|
+
|
|
2435
|
+
type LogsViewsUpdateInput = Parameters<typeof posthog.logsViewsUpdate> extends [infer T, ...unknown[]] ? T : undefined;
|
|
2436
|
+
type LogsViewsUpdateOutput = Awaited<ReturnType<typeof posthog.logsViewsUpdate>>;
|
|
2437
|
+
|
|
2438
|
+
const result: LogsViewsUpdateOutput = await posthog.logsViewsUpdate();
|
|
2439
|
+
|
|
2440
|
+
// Result shape (from schema): { id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_na...
|
|
2441
|
+
```
|
|
2442
|
+
|
|
2443
|
+
|
|
2444
|
+
<!-- prompt-hash:
|
|
2445
|
+
8c3694991a4c289225f05a4e8f1e098cc74d085a088d7dffd82f00d93797b7f8
|
|
2446
|
+
-->
|