Skip to content

Commit

Permalink
Merge pull request #633 from Clarifai/alfrick-branch
Browse files Browse the repository at this point in the history
made updates
  • Loading branch information
Alfrick authored Jan 30, 2025
2 parents d97434e + 16416c6 commit 9e8d329
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 26 deletions.
4 changes: 2 additions & 2 deletions code_snippets/api-guide/audit-log/output-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
}
],
"details": [
"Create model [visual-classifier-one2]"
"Create model 'visual-classifier-one2'"
],
"success": true,
"req_id": "webportal-7f53926068b3479bbc5631109ac64377",
Expand Down Expand Up @@ -164,7 +164,7 @@
}
],
"details": [
"Create model [dogs-vs-cats]"
"Create model 'dogs-vs-cats'"
],
"success": true,
"req_id": "webportal-f488464806a042698840233f070adeec",
Expand Down
8 changes: 4 additions & 4 deletions code_snippets/python-sdk/inference/visual_d_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
USER_ID = "clarifai"
APP_ID = "main"
# Change these to whatever model and video URL you want to use
MODEL_ID = "general-image-recognition"
MODEL_ID = "general-image-detection"
# You can also set a particular model version by specifying the version ID
# eg: MODEL_VERSION_ID = 'aa7f35c01e0642fda5cf400f543e7c40'
# eg: MODEL_VERSION_ID = '1580bb1932594c93b7e2e04456af7c6f'

VIDEO_URL = "https://samples.clarifai.com/beer.mp4"
# Change this to configure the FPS rate (If it's not configured, it defaults to 1 FPS)
Expand All @@ -18,13 +18,13 @@
SAMPLE_MS = 2000

# Model class objects can be inititalised by providing its URL or also by defining respective user_id, app_id and model_id
# eg: model = Model("https://clarifai.com/clarifai/main/models/general-image-recognition")
# eg: model = Model("https://clarifai.com/clarifai/main/models/general-image-detection")


model = Model(user_id="clarifai", app_id="main", model_id=MODEL_ID, pat="YOUR_PAT")
output_config = {"sample_ms": SAMPLE_MS} # Run inference every 2 seconds
model_prediction = model.predict_by_url(
BEER_VIDEO_URL, input_type="video", output_config=output_config
VIDEO_URL, input_type="video", output_config=output_config
)

# The predict API gives flexibility to generate predictions for data provided through filepath, URL and bytes format.
Expand Down
2 changes: 1 addition & 1 deletion docs/portal-guide/clarifai-organizations/members-teams.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ On the dialog box that appears, enter the invitee’s email address and select a
You can assign any of the following roles:

- **Admin** — the invitee will have administrative privileges in the organization.
- **Financial Manager** — the invitee will have access to key financial data, including current spending based on the organization's pricing plan and budget settings, enabling better financial oversight and management.
- **Financial Manager** — the invitee will have access to key financial data, including current spending based on the organization's pricing plan and budget settings, enabling better financial oversight and management. This role is only permitted to access the following tabs within the [Control Center](https://docs.clarifai.com/portal-guide/control-center/): Overview, Usage, and Costs.
- **Organization Contributor (all apps)** — the invitee will be able to contribute to all the apps within the organization, but without some admin privileges..
- **Organization User (all apps)** — the invitee will have access privileges similar to those of an Organization Contributor for all apps, but with view-only permissions.
- **Team Contributor (select apps)** — the invitee will be available to contribute only to some selected applications.
Expand Down
46 changes: 30 additions & 16 deletions docs/portal-guide/control-center/teams-logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description: Gain insights into platform activities with enhanced visibility, security, and governance
pagination_next: null
sidebar_position: 3
draft: true
unlisted: true
---

# Teams & Logs Tab
Expand All @@ -14,48 +14,62 @@ The Teams & Logs tab allows you to monitor platform operations by capturing deta

It provides the ability to assess user actions and resource changes, identify potential security issues, maintain comprehensive logs to meet regulatory requirements, and monitor request origins to troubleshoot failed operations effectively.

You can use the tab to track the following critical resource operations (_we're planning to support more resources in the future_):

- **Organization and team membership activities** — Includes creating, updating, or deleting organizations and teams, sending invitations, and managing team users and applications.
- **Module activities** — Tracks the creation, updating, and deletion of modules.
- **Model activities** — Tracks actions such as creating, training, publishing, and deleting models.
- **Workflow activities** — Covers the creation, publishing, updating, and deletion of workflows.
- **Application activities** — Includes creating, updating, duplicating, and deleting applications.
- **Collaborator activities** — Includes adding collaborators, editing their scopes, and removing them.

:::note
:::tip

[Click here](https://docs.clarifai.com/api-guide/audit-log/) to learn how to perform audit tracking via the API.

:::

:::info

This feature is currently only available to users on our **Professional** and **Enterprise** subscription [plans](https://www.clarifai.com/pricing).
This feature is currently only available to users on our Professional and Enterprise subscription [plans](https://www.clarifai.com/pricing).

:::

<br/>
## Supported Operations

To access the tab, go to the Control Center and select the Teams & Logs option in the collapsible left sidebar.
You can use the Teams & Logs tab to track the following critical resource operations (_we're planning to support more resources in the future_):

- **Organization and team membership activities** — Includes creating, updating, or deleting organizations and teams, sending invitations, and managing team users and applications.
- **Collaborator activities** — Includes adding collaborators, editing their scopes, and removing them.
- **Application activities** — Includes creating, updating, duplicating, and deleting applications.
- **Model activities** — Tracks actions such as creating, training, publishing, and deleting models.
- **Workflow activities** — Covers the creation, publishing, updating, and deletion of workflows.
- **Module activities** — Tracks the creation, updating, and deletion of modules.


## Audit Log Details

To access the tab, go to the Control Center and select the **Teams & Logs** option in the collapsible left sidebar.

![](/img/community/control-center/teams_logs_1.png)

You can get details of the following activity logs:

- **When** — Timestamp of the operation.
- **Who** — Identity of the user performing the action.
- **What** — Description of the operation.
- **What** — Description of the operation. Note that if you
- **Where** — IP address where the request originated from.
- **Status** — Success or failure results of the operation.

## Filter by Apps

By default, the page displays activities across all your apps. You can customize the view by selecting specific app(s) using the dropdown menu in the upper-right corner.

![](/img/community/control-center/teams_logs_2.png)

Additionally, you can filter and view data for specific time periods using the date range selector in the upper-right corner. If you click the tool, a calendar will drop down, which allows you to specify a date range to narrow down the activity logs.
## Filter by Dates

You can filter and view data for specific time periods using the date range selector in the upper-right corner. If you click the tool, a calendar will drop down, which allows you to specify a date range to narrow down the activity logs. _Note that the current date is not selected by default._

You can learn more about the date range tool [here](https://docs.clarifai.com/portal-guide/control-center/#date-ranges).

![](/img/community/control-center/teams_logs_3.png)

## Collapsible Operation Details

The **Operation** column includes collapsible fields that allow you to expand or collapse details for each logged event. When expanded, the field reveals additional information about the specific action taken and the IDs of the resources impacted.

Conversely, when collapsed, only a summarized description of the operation is visible, helping to maintain a cleaner and more organized view of the logs. You can toggle this view by clicking the small arrow icon next to each operation entry.

![](/img/community/control-center/teams_logs_4.png)
4 changes: 2 additions & 2 deletions docs/sdk/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ You can learn how to use the `run-locally`, `test-locally`, and `upload` command

## Login

To use the Clarifai CLI, you must first log in using a [Personal Access Token](https://docs.clarifai.com/clarifai-basics/authentication/personal-access-tokens) (PAT). This requires creating a YMAL login configuration file to securely store your credentials.
To use the Clarifai CLI, you must first log in using a [Personal Access Token](https://docs.clarifai.com/clarifai-basics/authentication/personal-access-tokens) (PAT). This requires creating a YAML login configuration file to securely store your credentials.

<Tabs>
<TabItem value="yaml" label="YAML">
Expand Down Expand Up @@ -201,7 +201,7 @@ You can make predictions by using the `--model_url` argument, which specifies th

### Predict by a YAML file

You can provide the instructions for generating predictions in a YMAL configuration file.
You can provide the instructions for generating predictions in a YAML configuration file.

Here is an example:

Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/compute-orchestration.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ These flexible capabilities support any compute instance — across various hard

:::info Clarifai CLI

Clarifai provides a user-friendly command line interface (CLI) that simplifies Compute Orchestration tasks. With the CLI, you can easily manage the infrastructure required for deploying and scaling machine learning models, even without extensive MLOps expertise.
Clarifai provides a user-friendly [command line interface](https://docs.clarifai.com/sdk/cli/) (CLI) that simplifies Compute Orchestration tasks. With the CLI, you can easily manage the infrastructure required for deploying and scaling machine learning models, even without extensive MLOps expertise.
This tool makes it easy to set up clusters, configure nodepools, and deploy models directly from the command line. You can follow its step-by-step tutorial provided [here](https://github.com/Clarifai/clarifai-python/blob/master/clarifai/cli/README.md).

:::
Expand Down
Binary file modified static/img/community/control-center/teams_logs_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/community/control-center/teams_logs_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/community/control-center/teams_logs_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9e8d329

Please sign in to comment.