Loading...
Loading...
Compare original and translation side by side
apiClientIdapiClientSecretatlas-streams-discoveratlas-streams-buildatlas-streams-manageatlas-streams-teardownatlas-list-projectsapiClientIdapiClientSecretatlas-streams-discoveratlas-streams-buildatlas-streams-manageatlas-streams-teardownatlas-list-projects| Action | Use when |
|---|---|
| See all workspaces in a project |
| Review workspace config, state, region |
| See all connections in a workspace |
| Check connection state, config, health |
| See all processors in a workspace |
| Check processor state, pipeline, config |
| Full health report: state, stats, errors |
| PrivateLink and VPC peering details. Optional: |
limitpageNumresponseFormat"concise""detailed"| 操作 | 适用场景 |
|---|---|
| 查看项目下的所有工作空间 |
| 查看工作空间的配置、状态、区域信息 |
| 查看工作空间下的所有连接 |
| 检查连接的状态、配置、健康度 |
| 查看工作空间下的所有处理器 |
| 检查处理器的状态、管道、配置 |
| 获取完整健康报告:状态、统计数据、错误信息 |
| 获取PrivateLink和VPC对等连接详情。可选参数: |
limitpageNumresponseFormat"concise""detailed"| Resource | Key parameters |
|---|---|
| |
| |
| |
| |
projectIdworkspaceNamecloudProviderregiontierincludeSampleDataprojectIdworkspaceNameconnectionNameconnectionTypeconnectionConfigprojectIdworkspaceNameprocessorNamepipelinedlqautoStartprojectIdprivateLinkConfigworkspaceName| 资源 | 核心参数 |
|---|---|
| |
| |
| |
| |
projectIdworkspaceNamecloudProviderregiontierincludeSampleDataprojectIdworkspaceNameconnectionNameconnectionTypeconnectionConfigprojectIdworkspaceNameprocessorNamepipelinedlqautoStartprojectIdprivateLinkConfigworkspaceName| Action | Notes |
|---|---|
| Begins billing. Optional |
| Stops billing. Retains state 45 days |
| Processor must be stopped first. Change pipeline, DLQ, or name |
| Change tier or region |
| Update config (networking is immutable — must delete and recreate) |
| VPC peering management |
projectIdworkspaceName"start-processor"resourceNametierresumeFromCheckpointstartAtOperationTime"stop-processor"resourceName"modify-processor"resourceNamepipelinedlqnewName"update-workspace"newRegionnewTier"update-connection"resourceNameconnectionConfig"accept-peering"peeringIdrequesterAccountIdrequesterVpcId"reject-peering"peeringIdstart-processorstop-processormodify-processorCREATEDSTARTEDSTOPPEDFAILED| 操作 | 说明 |
|---|---|
| 开始计费。可选参数: |
| 停止计费。状态保留45天 |
| 必须先停止处理器。可修改管道、DLQ或名称 |
| 修改层级规格或区域 |
| 更新配置(网络配置不可修改,必须删除重建) |
| VPC对等连接管理 |
projectIdworkspaceName"start-processor"resourceNametierresumeFromCheckpointstartAtOperationTime"stop-processor"resourceName"modify-processor"resourceNamepipelinedlqnewName"update-workspace"newRegionnewTier"update-connection"resourceNameconnectionConfig"accept-peering"peeringIdrequesterAccountIdrequesterVpcId"reject-peering"peeringIdstart-processorstop-processormodify-processorCREATEDSTARTEDSTOPPEDFAILED| Resource | Safety behavior |
|---|---|
| Auto-stops before deleting |
| Blocks if referenced by running processor |
| Cascading delete of all connections and processors |
| Remove networking resources |
projectIdresourceresource: "workspace"workspaceNameresource: "connection""processor"workspaceNameresourceNameresource: "privatelink""peering"resourceNameatlas-streams-discoverinspect-workspaceatlas-streams-teardown| 资源 | 安全机制 |
|---|---|
| 删除前自动停止 |
| 如果被运行中的处理器引用则阻止删除 |
| 级联删除所有连接和处理器 |
| 移除网络资源 |
projectIdresourceresource: "workspace"workspaceNameresource: "connection""processor"workspaceNameresourceNameresource: "privatelink""peering"resourceNameatlas-streams-discoverinspect-workspaceatlas-streams-teardownsearch-knowledgeprefixpath$emitdataSources: [{"name": "devcenter"}]example_processors/README.md| Quickstart | Pattern |
|---|---|
| Inline |
| Change stream → tumbling window → |
| Kafka source → tumbling window rollup → |
| Chained processors: rollup → archive to separate collection |
| Real-time Kafka topic monitoring (sinkless, like |
search-knowledge$emitpathprefixdataSources: [{"name": "devcenter"}]| 快速入门文件 | 模式 |
|---|---|
| 内置 |
| 变更流 → 滚动窗口 → |
| Kafka源 → 滚动窗口聚合 → |
| 链式处理器:聚合 → 归档到独立集合 |
| 实时Kafka Topic监控(无sink,类似 |
$$NOW$$ROOT$$CURRENT_stream_meta$$NOW$source$https$sourcetopic$merge$emit$https$externalFunctionsp.process()$emit$externalFunction$emit$validatevalidationAction: "error""dlq"$sourcefullDocument: "updateLookup"$sourcestreamstreamNametopic$emitpartitionKey$emitpathprefix$httpsconnectionNamepathmethodasonError: "dlq"$externalFunctionconnectionNamefunctionNameexecutionasonError: "dlq"$validatevalidator$jsonSchemavalidationAction: "dlq"$lookupparallelismparallelism: 2connectionType"SchemaRegistry""Kafka"avroAVRO$$NOW$$ROOT$$CURRENT_stream_meta$$NOW$source$https$sourcetopic$merge$emit$https$externalFunctionsp.process()$emit$externalFunction$emit$validatevalidationAction: "error""dlq"$sourcefullDocument: "updateLookup"$sourcestreamstreamNametopic$emitpartitionKey$emitpathprefix$httpsconnectionNamepathmethodasonError: "dlq"$externalFunctionconnectionNamefunctionNameexecutionasonError: "dlq"$validate$jsonSchemavalidatorvalidationAction: "dlq"$lookupparallelismparallelism: 2connectionType"SchemaRegistry""Kafka"avroAVRObootstrapServersschemaRegistryUrlsdbRoleToExecute{role: "readWriteAnyDatabase", type: "BUILT_IN"}includeSampleDatatruesample_stream_solarregiondataProcessRegion| Provider | Cloud Region | Streams |
|---|---|---|
| AWS | us-east-1 | |
| AWS | us-east-2 | |
| AWS | eu-west-1 | |
| GCP | us-central1 | |
| GCP | europe-west1 | |
| Azure | eastus | |
| Azure | westeurope | |
atlas-streams-discoverinspect-workspacedataProcessRegion.regionbootstrapServersschemaRegistryUrlsdbRoleToExecute{role: "readWriteAnyDatabase", type: "BUILT_IN"}includeSampleDatatruesample_stream_solarregiondataProcessRegion| 云提供商 | 云区域 | 流处理 |
|---|---|---|
| AWS | us-east-1 | |
| AWS | us-east-2 | |
| AWS | eu-west-1 | |
| GCP | us-central1 | |
| GCP | europe-west1 | |
| Azure | eastus | |
| Azure | westeurope | |
atlas-streams-discoverinspect-workspacedataProcessRegion.region| Connection Type | As Source ($source) | As Sink ($merge / $emit) | Mid-Pipeline | Notes |
|---|---|---|---|---|
| Cluster | ✅ Change streams | ✅ $merge to collections | ✅ $lookup | Change streams monitor insert/update/delete/replace operations |
| Kafka | ✅ Topic consumer | ✅ $emit to topics | ❌ | Source MUST include |
| Sample Stream | ✅ Sample data | ❌ Not valid | ❌ | Testing/demo only |
| S3 | ❌ Not valid | ✅ $emit to buckets | ❌ | Sink only - use |
| Https | ❌ Not valid | ✅ $https as sink | ✅ $https enrichment | Can be used mid-pipeline for enrichment OR as final sink stage |
| AWSLambda | ❌ Not valid | ✅ $externalFunction (async only) | ✅ $externalFunction (sync or async) | Sink: |
| AWS Kinesis | ✅ Stream consumer | ✅ $emit to streams | ❌ | Similar to Kafka pattern |
| SchemaRegistry | ❌ Not valid | ❌ Not valid | ✅ Schema resolution | Metadata only - used by Kafka connections for Avro schemas |
$externalFunctionexecution: "sync"execution: "async"$merge$emit| 连接类型 | 作为源($source) | 作为Sink($merge / $emit) | 管道中间使用 | 说明 |
|---|---|---|---|---|
| Cluster | ✅ 变更流 | ✅ $merge到集合 | ✅ $lookup | 变更流可监控插入/更新/删除/替换操作 |
| Kafka | ✅ Topic消费者 | ✅ $emit到Topic | ❌ | 源必须包含 |
| Sample Stream | ✅ 示例数据 | ❌ 不支持 | ❌ | 仅用于测试/演示 |
| S3 | ❌ 不支持 | ✅ $emit到存储桶 | ❌ | 仅作为Sink,使用 |
| Https | ❌ 不支持 | ✅ $https作为Sink | ✅ $https enrichment | 可用于管道中间enrichment或作为最终Sink阶段 |
| AWSLambda | ❌ 不支持 | ✅ $externalFunction(仅异步) | ✅ $externalFunction(同步或异步) | Sink场景: 必须配置 |
| AWS Kinesis | ✅ 流消费者 | ✅ $emit到流 | ❌ | 与Kafka模式类似 |
| SchemaRegistry | ❌ 不支持 | ❌ 不支持 | ✅ Schema解析 | 仅作为元数据使用,供Kafka连接处理Avro Schema |
$externalFunctionexecution: "sync"execution: "async"$merge$emitatlas-streams-discoverlist-workspacesatlas-streams-buildresource: "workspace"atlas-streams-buildresource: "connection"atlas-streams-discoverlist-connectionsinspect-connectionsearch-knowledgeatlas-streams-buildresource: "processor"atlas-streams-managestart-processoratlas-streams-discoverlist-workspacesatlas-streams-buildresource: "workspace"atlas-streams-buildresource: "connection"atlas-streams-discoverlist-connectionsinspect-connectionsearch-knowledgeatlas-streams-buildresource: "processor"atlas-streams-managestart-processor$source$merge$match$addFields$projectatlas-streams-manageaction: "stop-processor"atlas-streams-manageaction: "modify-processor"atlas-streams-manageaction: "start-processor"atlas-streams-discoverdiagnose-processorpartitionIdleTimeout$source{"size": 30, "unit": "second"}find$source$merge$match$addFields$projectatlas-streams-manageaction: "stop-processor"atlas-streams-manageaction: "modify-processor"atlas-streams-manageaction: "start-processor"atlas-streams-discoverdiagnose-processor$sourcepartitionIdleTimeout{"size": 30, "unit": "second"}find$merge$emit$merge$emitstop-processorsp.process()references/sizing-and-parallelism.mdstop-processorsp.process()references/sizing-and-parallelism.mdatlas-streams-teardownatlas-streams-manageatlas-streams-teardownatlas-streams-discoverresumeFromCheckpoint: falseatlas-streams-teardownatlas-streams-manageatlas-streams-teardownatlas-streams-discoverresumeFromCheckpoint: false| File | Read when... |
|---|---|
| Building or modifying processor pipelines |
| Creating connections (type-specific schemas) |
| Following lifecycle management or debugging decision trees |
| Processor output is unexpected (zero, low, or wrong) |
| Choosing tiers, tuning parallelism, or optimizing cost |
| 文件 | 适用场景 |
|---|---|
| 构建或修改处理器管道时 |
| 创建连接时(不同类型的配置Schema) |
| 遵循生命周期管理或调试决策流程时 |
| 处理器输出不符合预期时(零输出、输出过少或错误) |
| 选择规格、调优并行度或优化成本时 |