usageLog.ts 464 B

123456789101112131415161718
  1. import {UserFixture} from 'sentry-fixture/user';
  2. import type {AuditLog} from 'sentry/types/organization';
  3. export function UsageLogFixture(params: Partial<AuditLog> = {}): AuditLog {
  4. return {
  5. note: 'cancelled plan',
  6. targetObject: 2,
  7. targetUser: null,
  8. data: {},
  9. dateCreated: '2022-06-06T03:04:23.157Z',
  10. ipAddress: '127.0.0.1',
  11. id: '465',
  12. actor: UserFixture({isSuperuser: true}),
  13. event: 'plan.cancelled',
  14. ...params,
  15. };
  16. }