mstrio.distribution_services package

Subpackages

Submodules

mstrio.distribution_services.event module

class mstrio.distribution_services.event.Event(connection: Connection, id: str | None = None, name: str | None = None)

Bases: Entity, DeleteMixin, TranslationMixin

Class representation of MicroStrategy Event object.

connection

A MicroStrategy connection object

name

Event name

id

Event ID

description

Event descriptions

alter(name: str | None = None, description: str | None = None, comments: str | None = None)

Alter the Event’s properties

Parameters:
  • name – New name for the Event

  • description – New description for the Event

  • comments – long description of the Event

classmethod create(connection: Connection, name: str, description: str | None = None) Event

Create an Event

Parameters:
  • connection – MicroStrategy connection object returned by connection.Connection().

  • name – Name of the new Event

  • description – Description of the new Event

trigger()

Trigger the Event

mstrio.distribution_services.event.list_events(connection: Connection, to_dictionary: bool = False, limit: int = None, **filters) list[mstrio.distribution_services.event.Event] | list[dict]

List event objects or event dictionaries. Optionally filter list.

Parameters:
  • connection (object) – MicroStrategy connection object returned by ‘connection.Connection()’

  • to_dictionary (bool, optional) – if True, return event as list of dicts

  • limit (int, optional) – maximum number of Events returned.

  • **filters – Available filter parameters: [‘name’, ‘id’, ‘description’, ‘acg’]

Module contents