-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathjs-atlas-streams.txt
86 lines (55 loc) · 2.17 KB
/
js-atlas-streams.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
.. _doc-stream-methods:
===============================
Atlas Stream Processing Methods
===============================
.. default-domain:: mongodb
.. contents:: On this page
:local:
:backlinks: none
:depth: 1
:class: singlecol
.. note:: ``mongosh`` Methods
.. include:: /includes/fact-mongosh-shell-method-toc.rst
:atlas:`Atlas Stream Processors
</atlas-sp/overview/#mongodb-expression-exp.Stream-Processor>`
let you perform aggregation operations against streams of
continuous data using the same data model and query API that
you use with at-rest data.
Use the following methods to manage Stream Processors
.. important::
The following methods can only be run on deployments hosted on
:atlas:`MongoDB Atlas </>`.
.. include:: /includes/extracts/methods-toc-explanation.rst
.. list-table::
:widths: 30 70
:header-rows: 1
* - Name
- Description
* - :method:`sp.createStreamProcessor()`
- Creates a stream processor.
* - :method:`sp.listStreamProcessors()`
- Lists all existing stream processors on the current stream
processing instance.
* - :method:`sp.process()`
- Creates an ephemeral stream processor.
* - :method:`sp.processor.drop()`
- Deletes an existing stream processor.
* - :method:`sp.processor.sample()`
- Returns an array of sampled results from a currently running stream processor.
* - :method:`sp.processor.start()`
- Starts an existing stream processor.
* - :method:`sp.processor.stats()`
- Returns statistics summarizing an existing stream processor.
* - :method:`sp.processor.stop()`
- Stops a currently running stream processor.
.. toctree::
:titlesonly:
:hidden:
sp.createStreamProcessor </reference/method/sp.createStreamProcessor>
sp.listStreamProcessors </reference/method/sp.listStreamProcessors>
sp.process </reference/method/sp.process>
sp.processor.drop </reference/method/sp.processor.drop>
sp.processor.sample </reference/method/sp.processor.sample>
sp.processor.start </reference/method/sp.processor.start>
sp.processor.stats </reference/method/sp.processor.stats>
sp.processor.stop </reference/method/sp.processor.stop>