mstrio.distribution_services package

Subpackages

Submodules

mstrio.distribution_services.event module

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

Bases: Entity, DeleteMixin

Class representation of MicroStrategy Event object.

connection

A MicroStrategy connection object

name

Event name

id

Event ID

description

Event descriptions

alter(name: Optional[str] = None, description: Optional[str] = None)

Alter the Event’s properties

Parameters:
  • name – New name for the Event

  • description – New description for the Event

classmethod create(connection: Connection, name: str, description: Optional[str] = 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) Union[List[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’]

Module contents