how to add custom markers like "api"?
# ask-community
e
how to add custom markers like "api"?
dagster bot responded by community 1
🤖 1
z
you can add a "kind" tag to the op definition, like this:
Copy code
@op(
    tags={"kind": "api"},
)
def do_processing():
   ...
2
❤️ 1
t
Zach is right for ops! and for assets, you can use the
compute_kind
argument on the asset decorator, like here
Copy code
@asset(
    compute_kind="api",
    required_resource_keys={"data_api"}
)
def users(context) -> pd.DataFrame:
    """A table containing all users data"""
    api = context.resources.data_api
    resp = api.get_users()
    users = pd.read_json(resp.json())
    return users
❤️ 1
e
thanks guys!