Skip to content

Commit a7b5a6d

Browse files
committed
new doc
1 parent 2a50fcd commit a7b5a6d

File tree

9 files changed

+113
-74
lines changed

9 files changed

+113
-74
lines changed

docs/api/python/client/index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,10 @@
169169
</span></code></pre></div> <hr> <p>Get a detection event rule by id.</p> <p><strong>Allowed Roles:</strong></p> <ul> <li>At least <code>PROJECT_VIEW</code> for that project</li> <li><code>COMPANY_OWNER</code></li> <li><code>COMPANY_ADMIN</code></li> </ul> <p><strong>Args</strong></p> <ul> <li><strong>rule_id</strong> : id of the rule</li> </ul> <p><strong>Returns</strong></p> <ul> <li><strong>rule</strong> : <code>DetectionEventRule</code></li> </ul> <p><strong>Raises</strong></p> <p><code>SDKClientException</code></p> <h3 id=create_detection_event_rule>.create_detection_event_rule<a class=headerlink href=#create_detection_event_rule title="Permanent link">&para;</a></h3> <div class="language-python highlight"><pre><span></span><code><span id=__span-49-1><a id=__codelineno-49-1 name=__codelineno-49-1 href=#__codelineno-49-1></a><span class=o>.</span><span class=n>create_detection_event_rule</span><span class=p>(</span>
170170
</span><span id=__span-49-2><a id=__codelineno-49-2 name=__codelineno-49-2 href=#__codelineno-49-2></a> <span class=n>name</span><span class=p>:</span> <span class=nb>str</span><span class=p>,</span> <span class=n>task_id</span><span class=p>:</span> <span class=nb>str</span><span class=p>,</span> <span class=n>severity</span><span class=p>:</span> <span class=n>DetectionEventSeverity</span><span class=p>,</span>
171171
</span><span id=__span-49-3><a id=__codelineno-49-3 name=__codelineno-49-3 href=#__codelineno-49-3></a> <span class=n>detection_event_type</span><span class=p>:</span> <span class=n>DetectionEventType</span><span class=p>,</span> <span class=n>monitoring_target</span><span class=p>:</span> <span class=n>MonitoringTarget</span><span class=p>,</span>
172-
</span><span id=__span-49-4><a id=__codelineno-49-4 name=__codelineno-49-4 href=#__codelineno-49-4></a> <span class=n>actions</span><span class=p>:</span> <span class=nb>list</span><span class=p>[</span><span class=n>DetectionEventAction</span><span class=p>],</span> <span class=n>model_name</span><span class=p>:</span> <span class=p>(</span><span class=nb>str</span><span class=o>|</span><span class=kc>None</span><span class=p>)</span> <span class=o>=</span> <span class=kc>None</span>
173-
</span><span id=__span-49-5><a id=__codelineno-49-5 name=__codelineno-49-5 href=#__codelineno-49-5></a><span class=p>)</span>
174-
</span></code></pre></div> <hr> <p>Create a detection event rule.</p> <p><strong>Allowed Roles:</strong></p> <ul> <li>At least <code>PROJECT_EDIT</code> for that project</li> <li><code>COMPANY_OWNER</code></li> <li><code>COMPANY_ADMIN</code></li> </ul> <p><strong>Args</strong></p> <ul> <li><strong>name</strong> : the name of the rule</li> <li><strong>task_id</strong> : the id of the task to which the rule belongs. The rule will only respond to detection events generated by this task.</li> <li><strong>model_name</strong> : the name of the model, only required if monitoring_target is set to MODEL.</li> <li><strong>detection_event_type</strong> : the type of detection event that this rule should respond to.</li> <li><strong>monitoring_target</strong> : the type of monitoring target that this rule should respond to.</li> <li><strong>severity</strong> : the level of severity of the detection event that this rule should respond to.</li> <li><strong>actions</strong> : the list of actions to execute, in order, when the conditions of the rule are matched.</li> </ul> <p><strong>Returns</strong></p> <ul> <li><strong>rule_id</strong> : <code>str</code></li> </ul> <p><strong>Raises</strong></p> <p><code>CreateDetectionEventRuleException</code></p> <h3 id=update_detection_event_rule>.update_detection_event_rule<a class=headerlink href=#update_detection_event_rule title="Permanent link">&para;</a></h3> <div class="language-python highlight"><pre><span></span><code><span id=__span-50-1><a id=__codelineno-50-1 name=__codelineno-50-1 href=#__codelineno-50-1></a><span class=o>.</span><span class=n>update_detection_event_rule</span><span class=p>(</span>
172+
</span><span id=__span-49-4><a id=__codelineno-49-4 name=__codelineno-49-4 href=#__codelineno-49-4></a> <span class=n>actions</span><span class=p>:</span> <span class=nb>list</span><span class=p>[</span><span class=n>DetectionEventAction</span><span class=p>],</span>
173+
</span><span id=__span-49-5><a id=__codelineno-49-5 name=__codelineno-49-5 href=#__codelineno-49-5></a> <span class=n>monitoring_metric</span><span class=p>:</span> <span class=p>(</span><span class=n>MonitoringMetric</span><span class=o>|</span><span class=kc>None</span><span class=p>)</span> <span class=o>=</span> <span class=kc>None</span><span class=p>,</span> <span class=n>model_name</span><span class=p>:</span> <span class=p>(</span><span class=nb>str</span><span class=o>|</span><span class=kc>None</span><span class=p>)</span> <span class=o>=</span> <span class=kc>None</span>
174+
</span><span id=__span-49-6><a id=__codelineno-49-6 name=__codelineno-49-6 href=#__codelineno-49-6></a><span class=p>)</span>
175+
</span></code></pre></div> <hr> <p>Create a detection event rule.</p> <p><strong>Allowed Roles:</strong></p> <ul> <li>At least <code>PROJECT_EDIT</code> for that project</li> <li><code>COMPANY_OWNER</code></li> <li><code>COMPANY_ADMIN</code></li> </ul> <p><strong>Args</strong></p> <ul> <li><strong>name</strong> : the name of the rule</li> <li><strong>task_id</strong> : the id of the task to which the rule belongs. The rule will only respond to detection events generated by this task.</li> <li><strong>model_name</strong> : the name of the model, only required if monitoring_target is set to MODEL.</li> <li><strong>detection_event_type</strong> : the type of detection event that this rule should respond to.</li> <li><strong>monitoring_target</strong> : the type of monitoring target that this rule should respond to.</li> <li><strong>monitoring_metric</strong> : additional metric extracted from monitoring target that is monitored</li> <li><strong>severity</strong> : the level of severity of the detection event that this rule should respond to.</li> <li><strong>actions</strong> : the list of actions to execute, in order, when the conditions of the rule are matched.</li> </ul> <p><strong>Returns</strong></p> <ul> <li><strong>rule_id</strong> : <code>str</code></li> </ul> <p><strong>Raises</strong></p> <p><code>CreateDetectionEventRuleException</code></p> <h3 id=update_detection_event_rule>.update_detection_event_rule<a class=headerlink href=#update_detection_event_rule title="Permanent link">&para;</a></h3> <div class="language-python highlight"><pre><span></span><code><span id=__span-50-1><a id=__codelineno-50-1 name=__codelineno-50-1 href=#__codelineno-50-1></a><span class=o>.</span><span class=n>update_detection_event_rule</span><span class=p>(</span>
175176
</span><span id=__span-50-2><a id=__codelineno-50-2 name=__codelineno-50-2 href=#__codelineno-50-2></a> <span class=n>rule_id</span><span class=p>:</span> <span class=nb>str</span><span class=p>,</span> <span class=n>name</span><span class=p>:</span> <span class=p>(</span><span class=nb>str</span><span class=o>|</span><span class=kc>None</span><span class=p>)</span> <span class=o>=</span> <span class=kc>None</span><span class=p>,</span> <span class=n>model_name</span><span class=p>:</span> <span class=p>(</span><span class=nb>str</span><span class=o>|</span><span class=kc>None</span><span class=p>)</span> <span class=o>=</span> <span class=kc>None</span><span class=p>,</span>
176177
</span><span id=__span-50-3><a id=__codelineno-50-3 name=__codelineno-50-3 href=#__codelineno-50-3></a> <span class=n>severity</span><span class=p>:</span> <span class=p>(</span><span class=n>DetectionEventSeverity</span><span class=o>|</span><span class=kc>None</span><span class=p>)</span> <span class=o>=</span> <span class=kc>None</span><span class=p>,</span>
177178
</span><span id=__span-50-4><a id=__codelineno-50-4 name=__codelineno-50-4 href=#__codelineno-50-4></a> <span class=n>detection_event_type</span><span class=p>:</span> <span class=p>(</span><span class=n>DetectionEventType</span><span class=o>|</span><span class=kc>None</span><span class=p>)</span> <span class=o>=</span> <span class=kc>None</span><span class=p>,</span>

docs/api/python/enums/index.html

Lines changed: 13 additions & 12 deletions
Large diffs are not rendered by default.

docs/api/python/models/index.html

Lines changed: 36 additions & 35 deletions
Large diffs are not rendered by default.

docs/search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/sitemap.xml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,112 +2,112 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://ml-cube.github.io/ml3-platform-docs/</loc>
5-
<lastmod>2024-04-18</lastmod>
5+
<lastmod>2024-05-03</lastmod>
66
<changefreq>daily</changefreq>
77
</url>
88
<url>
99
<loc>https://ml-cube.github.io/ml3-platform-docs/api/</loc>
10-
<lastmod>2024-04-18</lastmod>
10+
<lastmod>2024-05-03</lastmod>
1111
<changefreq>daily</changefreq>
1212
</url>
1313
<url>
1414
<loc>https://ml-cube.github.io/ml3-platform-docs/api/examples/</loc>
15-
<lastmod>2024-04-18</lastmod>
15+
<lastmod>2024-05-03</lastmod>
1616
<changefreq>daily</changefreq>
1717
</url>
1818
<url>
1919
<loc>https://ml-cube.github.io/ml3-platform-docs/api/python/</loc>
20-
<lastmod>2024-04-18</lastmod>
20+
<lastmod>2024-05-03</lastmod>
2121
<changefreq>daily</changefreq>
2222
</url>
2323
<url>
2424
<loc>https://ml-cube.github.io/ml3-platform-docs/api/python/client/</loc>
25-
<lastmod>2024-04-18</lastmod>
25+
<lastmod>2024-05-03</lastmod>
2626
<changefreq>daily</changefreq>
2727
</url>
2828
<url>
2929
<loc>https://ml-cube.github.io/ml3-platform-docs/api/python/enums/</loc>
30-
<lastmod>2024-04-18</lastmod>
30+
<lastmod>2024-05-03</lastmod>
3131
<changefreq>daily</changefreq>
3232
</url>
3333
<url>
3434
<loc>https://ml-cube.github.io/ml3-platform-docs/api/python/exceptions/</loc>
35-
<lastmod>2024-04-18</lastmod>
35+
<lastmod>2024-05-03</lastmod>
3636
<changefreq>daily</changefreq>
3737
</url>
3838
<url>
3939
<loc>https://ml-cube.github.io/ml3-platform-docs/api/python/models/</loc>
40-
<lastmod>2024-04-18</lastmod>
40+
<lastmod>2024-05-03</lastmod>
4141
<changefreq>daily</changefreq>
4242
</url>
4343
<url>
4444
<loc>https://ml-cube.github.io/ml3-platform-docs/api/rest/</loc>
45-
<lastmod>2024-04-18</lastmod>
45+
<lastmod>2024-05-03</lastmod>
4646
<changefreq>daily</changefreq>
4747
</url>
4848
<url>
4949
<loc>https://ml-cube.github.io/ml3-platform-docs/user_guide/</loc>
50-
<lastmod>2024-04-18</lastmod>
50+
<lastmod>2024-05-03</lastmod>
5151
<changefreq>daily</changefreq>
5252
</url>
5353
<url>
5454
<loc>https://ml-cube.github.io/ml3-platform-docs/user_guide/data_schema/</loc>
55-
<lastmod>2024-04-18</lastmod>
55+
<lastmod>2024-05-03</lastmod>
5656
<changefreq>daily</changefreq>
5757
</url>
5858
<url>
5959
<loc>https://ml-cube.github.io/ml3-platform-docs/user_guide/detection_event_rules/</loc>
60-
<lastmod>2024-04-18</lastmod>
60+
<lastmod>2024-05-03</lastmod>
6161
<changefreq>daily</changefreq>
6262
</url>
6363
<url>
6464
<loc>https://ml-cube.github.io/ml3-platform-docs/user_guide/glossary/</loc>
65-
<lastmod>2024-04-18</lastmod>
65+
<lastmod>2024-05-03</lastmod>
6666
<changefreq>daily</changefreq>
6767
</url>
6868
<url>
6969
<loc>https://ml-cube.github.io/ml3-platform-docs/user_guide/rbac/</loc>
70-
<lastmod>2024-04-18</lastmod>
70+
<lastmod>2024-05-03</lastmod>
7171
<changefreq>daily</changefreq>
7272
</url>
7373
<url>
7474
<loc>https://ml-cube.github.io/ml3-platform-docs/user_guide/integrations/</loc>
75-
<lastmod>2024-04-18</lastmod>
75+
<lastmod>2024-05-03</lastmod>
7676
<changefreq>daily</changefreq>
7777
</url>
7878
<url>
7979
<loc>https://ml-cube.github.io/ml3-platform-docs/user_guide/integrations/data_sources/</loc>
80-
<lastmod>2024-04-18</lastmod>
80+
<lastmod>2024-05-03</lastmod>
8181
<changefreq>daily</changefreq>
8282
</url>
8383
<url>
8484
<loc>https://ml-cube.github.io/ml3-platform-docs/user_guide/integrations/retrain_triggers/</loc>
85-
<lastmod>2024-04-18</lastmod>
85+
<lastmod>2024-05-03</lastmod>
8686
<changefreq>daily</changefreq>
8787
</url>
8888
<url>
8989
<loc>https://ml-cube.github.io/ml3-platform-docs/user_guide/modules/</loc>
90-
<lastmod>2024-04-18</lastmod>
90+
<lastmod>2024-05-03</lastmod>
9191
<changefreq>daily</changefreq>
9292
</url>
9393
<url>
9494
<loc>https://ml-cube.github.io/ml3-platform-docs/user_guide/modules/business/</loc>
95-
<lastmod>2024-04-18</lastmod>
95+
<lastmod>2024-05-03</lastmod>
9696
<changefreq>daily</changefreq>
9797
</url>
9898
<url>
9999
<loc>https://ml-cube.github.io/ml3-platform-docs/user_guide/modules/labeling/</loc>
100-
<lastmod>2024-04-18</lastmod>
100+
<lastmod>2024-05-03</lastmod>
101101
<changefreq>daily</changefreq>
102102
</url>
103103
<url>
104104
<loc>https://ml-cube.github.io/ml3-platform-docs/user_guide/modules/monitoring/</loc>
105-
<lastmod>2024-04-18</lastmod>
105+
<lastmod>2024-05-03</lastmod>
106106
<changefreq>daily</changefreq>
107107
</url>
108108
<url>
109109
<loc>https://ml-cube.github.io/ml3-platform-docs/user_guide/modules/retraining/</loc>
110-
<lastmod>2024-04-18</lastmod>
110+
<lastmod>2024-05-03</lastmod>
111111
<changefreq>daily</changefreq>
112112
</url>
113113
</urlset>

docs/sitemap.xml.gz

0 Bytes
Binary file not shown.

md-docs/api/python/client.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,8 @@ Get a detection event rule by id.
14741474
.create_detection_event_rule(
14751475
name: str, task_id: str, severity: DetectionEventSeverity,
14761476
detection_event_type: DetectionEventType, monitoring_target: MonitoringTarget,
1477-
actions: list[DetectionEventAction], model_name: (str|None) = None
1477+
actions: list[DetectionEventAction],
1478+
monitoring_metric: (MonitoringMetric|None) = None, model_name: (str|None) = None
14781479
)
14791480
```
14801481

@@ -1500,6 +1501,8 @@ Create a detection event rule.
15001501
this rule should respond to.
15011502
* **monitoring_target** : the type of monitoring target that
15021503
this rule should respond to.
1504+
* **monitoring_metric** : additional metric extracted from
1505+
monitoring target that is monitored
15031506
* **severity** : the level of severity of the detection event
15041507
that this rule should respond to.
15051508
* **actions** : the list of actions to execute, in order,

md-docs/api/python/enums.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ Represents the typology of the data to send
5757

5858
- TABULAR
5959
- IMAGE
60+
- TEXT
61+
- EMBEDDING
6062

6163
----
6264

@@ -237,6 +239,23 @@ ModelStatus()
237239
----
238240

239241

242+
## MonitoringMetric
243+
```python
244+
MonitoringMetric()
245+
```
246+
247+
248+
---
249+
**Fields:**
250+
251+
- FEATURE
252+
- TEXT_TOXICITY
253+
- TEXT_EMOTION
254+
- TEXT_SENTIMENT
255+
256+
----
257+
258+
240259
## MonitoringTarget
241260
```python
242261
MonitoringTarget()

md-docs/api/python/models.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,20 @@ type = DetectionEventActionType.EMAIL_NOTIFICATION
372372
----
373373

374374

375+
## EmbeddingData
376+
```python
377+
EmbeddingData()
378+
```
379+
380+
381+
---
382+
Embedding data model i.e., a data that can be represented via
383+
DataFrame and is stored in formats like: csv, parquet, json.
384+
There is only one input that has type array_1
385+
386+
----
387+
388+
375389
## GCPCredentials
376390
```python
377391
GCPCredentials()

0 commit comments

Comments
 (0)